{"id":142831,"student_id":3232,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\r\\n\u003chtml\u003e\\r\\n\u003chead\u003e\\r\\n \u003ctitle\u003eDocument\u003c/title\u003e\\r\\n \u003cscript src=\\\"https://code.jquery.com/jquery-3.3.1.min.js\\\"\u003e\u003c/script\u003e\\r\\n\u003c/head\u003e\\r\\n\u003cbody\u003e\\r\\n \u003ch3 class=\\\"best\\\"\u003e最佳紀錄:\u003c/h3\u003e\\r\\n \u003cdiv class=\\\"box\\\"\u003e\\r\\n \u003ch1\u003e點擊頁面開始\u003c/h1\u003e\\r\\n \u003ch2\u003e當顏色從「紅色」轉變為「藍色」時,以你最快的速度點擊頁面!\u003c/h2\u003e\\r\\n \u003c/div\u003e\\r\\n\u003c/body\u003e\\r\\n\u003c/html\u003e\\r\\n\",\"css\":\"body {\\r\\n background-color: #ffa459;\\r\\n cursor: pointer;\\r\\n color: #fff;\\r\\n \\r\\n}\\r\\n\\r\\nh1 {\\r\\n font-size: 50px;\\r\\n}\\r\\n\\r\\n.box {\\r\\n position: fixed;\\r\\n top: 50%;\\r\\n left: 50%;\\r\\n width: 100%;\\r\\n transform: translate(-50%, -50%);\\r\\n text-align: center;\\r\\n \\r\\n}\\r\\n\\r\\n\",\"js\":\"var status = \\\"orange\\\";\\nvar id;\\nvar startTime;\\nvar best = Infinity;\\n$(\\\"body\\\").on(\\\"click\\\", function(){\\n if(status == \\\"orange\\\"){\\n start();\\n }else if(status == \\\"red\\\"){\\n tooSoon();\\n }else{\\n result();\\n }\\n})\\n\\n\\n\\n\\nfunction start(){\\n $(\\\"h1\\\").text(\\\"等待藍色\\\");\\n $(\\\"h2\\\").text(\\\"\\\");\\n $(\\\"body\\\").css(\\\"background-color\\\", \\\"#ff5233\\\");\\n status = \\\"red\\\";\\n \\n var time = Math.random()*10000;\\n id = setTimeout(timeOut, time);\\n \\n}\\nfunction timeOut(){\\n startTime = Date.now();\\n $(\\\"h1\\\").text(\\\"點擊\\\");\\n $(\\\"h2\\\").text(\\\"\\\");\\n $(\\\"body\\\").css(\\\"background-color\\\", \\\"#2bd1ff\\\");\\n status = \\\"blue\\\";\\n}\\nfunction tooSoon(){\\n $(\\\"h1\\\").text(\\\"太快了!\\\");\\n $(\\\"h2\\\").text(\\\"點擊頁面在玩一次\\\");\\n $(\\\"body\\\").css(\\\"background-color\\\", \\\"#ffa459\\\");\\n clearTimeout(id);\\n status = \\\"orange\\\";\\n}\\nfunction result(){\\n $(\\\"h2\\\").text(\\\"點擊頁面在玩一次\\\");\\n $(\\\"body\\\").css(\\\"background-color\\\", \\\"#ffa459\\\");\\n status = \\\"orange\\\";\\n \\n var time = Date.now() - startTime;\\n $(\\\"h1\\\").text(time + \\\"ms\\\");\\n if(time \u003c best){\\n $(\\\"h3\\\").text(\\\"最佳紀錄:\\\" + time + \\\"ms\\\");\\n best = time;\\n }\\n \\n \\n \\n}\\n\\n\\n\"}","created_at":"2020-04-25T10:07:03.243+08:00","updated_at":"2020-04-25T11:40:20.683+08:00","name":"反應大考驗 副本","language":"web","screenshot":{"url":"https://cdn2.koding.school/uploads/project/screenshot/142831/3f9be94bb10294308bfe93d6f2c61c45.jpg"},"parent_id":85023,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":49,"hashid":"ej9smk3p","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":2469836,"file_name":"koding.png","project_id":142831,"asset_id":107444,"created_at":"2020-04-25T10:07:03.252+08:00","updated_at":"2020-04-25T10:07:03.252+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦