{"id":586206,"student_id":26492,"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 \u003cdiv id=\\\"bar\\\"\u003e\u003c/div\u003e\\r\\n \u003ch2 id=\\\"level\\\"\u003e Level: ? \u003c/h2\u003e\\r\\n \u003ch1 id=\\\"formula\\\"\u003e? + ? = ?\u003c/h1\u003e\\r\\n \u003cbutton id=\\\"btn-yes\\\"\u003eO\u003c/button\u003e\\r\\n \u003cbutton id=\\\"btn-no\\\"\u003eX\u003c/button\u003e\\r\\n \u003ch2 id=\\\"gameover\\\"\u003eGameOver\u003c/h2\u003e\\r\\n\u003c/body\u003e\\r\\n\u003c/html\u003e\\r\\n\\r\\n\",\"css\":\"body {\\r\\n text-align: center;\\r\\n color: #555555;\\r\\n font-family: Arial;\\r\\n}\\r\\n\\r\\nh1 {\\r\\n font-size: 4rem;\\r\\n}\\r\\n\\r\\n#gameover {\\r\\n color: #ec6d67;\\r\\n \\r\\n}\\r\\n\\r\\n#bar {\\r\\n width: 100%;\\r\\n height: 10px;\\r\\n background-color: #f1c40f;\\r\\n margin-bottom: 60px;\\r\\n}\\r\\n\\r\\nbutton {\\r\\n padding: .5rem 1.5rem;\\r\\n font-size: 2rem;\\r\\n font-weight: bold;\\r\\n outline: none;\\r\\n cursor: pointer;\\r\\n}\\r\\n\\r\\n#btn-yes {\\r\\n color: #2cbeff;\\r\\n border: 3px solid #2cbeff;\\r\\n}\\r\\n\\r\\n#btn-yes:hover {\\r\\n color: #fff;\\r\\n background-color: #2cbeff;\\r\\n}\\r\\n\\r\\n#btn-no {\\r\\n color: #ec6d67;\\r\\n border: 3px solid #ec6d67;\\r\\n}\\r\\n\\r\\n#btn-no:hover {\\r\\n color: #fff;\\r\\n background-color: #ec6d67;\\r\\n}\\r\\n\\r\\n\",\"js\":\"var level = 0;\\nvar correct = true;\\nvar timer = 0;\\n\\nstart();\\n\\n// 創造一個函式指令 hello:\\nfunction start () {\\n level++;\\n $('#level').text('level:' + level);\\n \\n var a = Math.floor(Math.random()*10);\\n var b = Math.floor(Math.random()*10);\\n var answer = a + b;\\n \\n correct = Math.random() \u003e 0.5;\\n if(!correct){\\n answer += Math.ceil(Math.random() * 0.5);\\n }\\n $('#formula').text(a + ' + ' + b + ' = ' + answer);\\n \\n timer = 0;\\n}\\n\\n\\nfunction gameOver () {\\n $('button').hide();\\n $('#gameover').show();\\n clearInterval(id);\\n}\\n\\n$('#btn-no').click(function(){\\n\\n if(!correct) {\\n start();\\n } else {\\n gameOver();\\n }\\n});\\n\\n$('#btn-yes').click(function(){\\n\\n if(correct) {\\n start();\\n } else {\\n gameOver();\\n }\\n});\\n\\nvar id = setInterval(function(){\\n timer += 0.1;\\n $(\\\"#bar\\\").css(\\\"width\\\", timer+\\\"%\\\");\\n if(timer \u003e 100){\\n gameOver();\\n }\\n});\\n\\n\\n\\n\\n\\n\\n\\n\\n\"}","created_at":"2023-08-08T19:07:45.036+08:00","updated_at":"2023-08-08T20:59:37.268+08:00","name":"算數炸彈 副本","language":"web","screenshot":{"url":"https://cdn8.koding.school/uploads/project/screenshot/586206/b104dda5d04a8ea9582a03db6860fc6b.jpg"},"parent_id":87375,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":12,"hashid":"wdkswv3pn","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":13249217,"file_name":"koding.png","project_id":586206,"asset_id":107444,"created_at":"2023-08-08T19:07:45.047+08:00","updated_at":"2023-08-08T19:07:45.047+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦