{"id":26648,"student_id":10,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n\\t\u003ctitle\u003eDocument\u003c/title\u003e\\n \u003clink rel=\\\"stylesheet\\\" href=\\\"https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css\\\" integrity=\\\"sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4\\\" crossorigin=\\\"anonymous\\\"\u003e\\n \u003cscript src=\\\"https://code.jquery.com/jquery-3.3.1.slim.min.js\\\" integrity=\\\"sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo\\\" crossorigin=\\\"anonymous\\\"\u003e\u003c/script\u003e\\n\u003cscript src=\\\"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js\\\" integrity=\\\"sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ\\\" crossorigin=\\\"anonymous\\\"\u003e\u003c/script\u003e\\n\u003cscript src=\\\"https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js\\\" integrity=\\\"sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm\\\" crossorigin=\\\"anonymous\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003cdiv class=\\\"rounded m-5 bg-dark text-white p-3 text-center\\\"\u003e\\n \u003cdiv class=\\\"progress\\\"\u003e\\n \u003cdiv class=\\\"progress-bar bg-danger js-bar\\\" style=\\\"width: 100%;\\\"\u003e\u003c/div\u003e\\n \u003c/div\u003e\\n \u003ch3 class=\\\"js-level\\\"\u003e\u003c/h3\u003e\\n \u003ch1 class=\\\"display-1\\\"\u003e\\n \u003cstrong id=\\\"question\\\"\u003e\u003c/strong\u003e\\n \u003c/h1\u003e\\n \u003cbutton class=\\\"btn btn-primary\\\" id=\\\"yes\\\"\u003e正確\u003c/button\u003e\\n \u003cbutton class=\\\"btn btn-warning\\\" id=\\\"no\\\"\u003e錯誤\u003c/button\u003e\\n \u003c/div\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"\",\"js\":\"var life = 100;\\nvar level = 1;\\nvar answer;\\nvar num1;\\nvar num2;\\n\\nfunction nextQ () {\\n num1 = Math.floor(Math.random()*10);\\n num2 = Math.floor(Math.random()*10);\\n if (Math.random() \u003e 0.5) {\\n answer = num1 + num2;\\n } else {\\n answer = Math.floor(Math.random()*20);\\n }\\n $('#question').text(`${num1}+${num2}=${answer}`);\\n}\\n\\n$('#yes').click(function () {\\n if (answer == num1 + num2) {\\n nextQ();\\n life = 100;\\n level++;\\n } else {\\n life -= 50;\\n }\\n});\\n\\n$('#no').click(function () {\\n if (answer != num1 + num2) {\\n nextQ();\\n life = 100;\\n level++;\\n } else {\\n life -= 50;\\n }\\n});\\n\\nvar loopID = setInterval(function () {\\n if (life \u003c= 0) {\\n clearInterval(loopID);\\n }\\n life -= 1;\\n $('.js-level').text('level' + level);\\n $('.js-bar').css('width', life + '%');\\n}, 100);\\n\\nnextQ();\\n\\nalert(\\\"等待完成部分: 網頁介面、遊戲結束特效\\\");\"}","created_at":"2018-04-20T11:26:48.123+08:00","updated_at":"2019-11-10T21:05:09.099+08:00","name":"算術炸彈","language":"web","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/26648/02aadaa5f877ff5dd6a40f6b5c81c9c4.jpg"},"parent_id":null,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":326,"hashid":"rdvs49ge","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦