{"id":54333,"student_id":10,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n\\t\u003ctitle\u003eDocument\u003c/title\u003e\\n\\t\u003cscript\\n src=\\\"https://code.jquery.com/jquery-3.3.1.min.js\\\"\\n integrity=\\\"sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=\\\"\\n crossorigin=\\\"anonymous\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003ch5 class=\\\"best\\\"\u003e最佳紀錄:\u003c/h5\u003e\\n \u003cdiv class=\\\"box\\\"\u003e\\n \u003ch1\u003e點擊頁面開始\u003c/h1\u003e\\n \u003ch4\u003e當顏色從「紅色」轉變為「綠色」時,以你最快的速度點擊頁面!\u003c/h4\u003e\\n \u003c/div\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"body {\\n background-color: royalblue;\\n cursor: pointer;\\n color: #fff;\\n}\\n\\nh1 {\\n font-size: 4rem;\\n}\\n\\nh4 {\\n font-size: 1rem;\\n}\\n\\nh5 {\\n margin: 1rem;\\n}\\n\\n.box {\\n position: fixed;\\n top: 50%;\\n left: 50%;\\n width: 100%;\\n transform: translate(-50%, -50%);\\n text-align: center;\\n}\",\"js\":\"var status = 'blue';\\nvar startTime;\\nvar id;\\nvar best = Infinity;\\n\\n$(document).on('click', function () {\\n if (status === 'blue') start();\\n else if (status === 'red') tooSoon();\\n else if (status === 'green') showResult();\\n});\\n\\nfunction start () {\\n var time = Math.random()*10000;\\n id = setTimeout(function() {\\n startTime = Date.now();\\n status = 'green'; \\n $('h1').text('點擊!');\\n $('body').css('backgroundColor', 'springgreen');\\n }, time);\\n \\n $('h1').text('等待綠色');\\n $('h4').text('');\\n $('body').css('backgroundColor', 'red');\\n status = 'red';\\n};\\n\\nfunction tooSoon () {\\n clearTimeout(id);\\n $('h1').text('太快了!');\\n $('h4').text('點擊頁面再玩一次');\\n $('body').css('backgroundColor', 'royalblue ');\\n status = 'blue';\\n}\\n\\nfunction showResult () {\\n var time = Date.now() - startTime;\\n $('h1').text(time + 'ms');\\n $('h4').text('點擊頁面再玩一次');\\n $('body').css('backgroundColor', 'royalblue ');\\n status = 'blue';\\n \\n if (time \u003c best) {\\n best = time;\\n $('h5').text('最佳紀錄:' + time + 'ms');\\n }\\n}\\n\"}","created_at":"2019-01-18T12:34:42.194+08:00","updated_at":"2019-11-10T01:42:41.170+08:00","name":"反應大考驗","language":"web","screenshot":{"url":"/uploads/project/screenshot/54333/2b2664e23ce441fcd32989c6fa23c13e.jpg"},"parent_id":3,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":557,"hashid":"d5msqd96","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":970389,"file_name":"koding.png","project_id":54333,"asset_id":107444,"created_at":"2019-01-18T12:34:42.223+08:00","updated_at":"2019-01-18T12:34:42.223+08:00"}]
Orange Apple Learning Platform
My Projects
View Project Page
Export
Remix
Import
Delete
Download Android APP (APK)
Screenshot
Open Web Site
繁中
简中
English
日本語
1:1:1
1:1
Full Width
Scan the QRCode below with your phone to install
Or you can
download APK
to this computer
Scan the QRCode below with your phone to install
Or you can
download APK
to this computer