{"id":574413,"student_id":2589,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n\\t\u003ctitle\u003eDocument\u003c/title\u003e\\n\\t\u003cscript src=\\\"https://code.jquery.com/jquery-3.3.1.min.js\\\" integrity=\\\"sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=\\\" crossorigin=\\\"anonymous\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003cdiv class=\\\"container\\\"\u003e\\n \u003cdiv\u003e1\u003c/div\u003e\\n \u003cdiv\u003e2\u003c/div\u003e\\n \u003cdiv\u003e3\u003c/div\u003e\\n \u003cdiv\u003e4\u003c/div\u003e\\n \u003cdiv\u003e5\u003c/div\u003e\\n \u003cdiv\u003e6\u003c/div\u003e\\n \u003cdiv\u003e7\u003c/div\u003e\\n \u003cdiv\u003e8\u003c/div\u003e\\n \u003cdiv\u003e9\u003c/div\u003e\\n \u003cdiv\u003e10\u003c/div\u003e\\n \u003cdiv\u003e11\u003c/div\u003e\\n \u003cdiv\u003e12\u003c/div\u003e\\n \u003cdiv\u003e13\u003c/div\u003e\\n \u003cdiv\u003e14\u003c/div\u003e\\n \u003cdiv\u003e15\u003c/div\u003e\\n \u003cdiv\u003e16\u003c/div\u003e\\n \u003cdiv\u003e17\u003c/div\u003e\\n \u003cdiv\u003e18\u003c/div\u003e\\n \u003cdiv\u003e19\u003c/div\u003e\\n \u003cdiv\u003e20\u003c/div\u003e\\n \u003cdiv\u003e21\u003c/div\u003e\\n \u003cdiv\u003e22\u003c/div\u003e\\n \u003cdiv\u003e23\u003c/div\u003e\\n \u003cdiv\u003e24\u003c/div\u003e\\n \u003cdiv\u003e25\u003c/div\u003e\\n \u003c/div\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\".container {\\n text-align: center;\\n top: 50%;\\n left: 50%;\\n width: 400px;\\n height: 400px;\\n position: fixed;\\n transform: translate(-50%, -50%);\\n}\\n\\n.container \u003e div {\\n float: left;\\n width: 70px;\\n height: 70px;\\n margin: 5px;\\n border-radius: 5px;\\n text-align: center;\\n line-height: 60px;\\n color: #fff;\\n background-color: royalblue;\\n cursor: pointer;\\n transition: background-color 0.2s;\\n text-shadow: 0px 0px 5px gray;\\n box-shadow: 0px 0px 5px gray;\\n border: 5px solid #5666f0;\\n box-sizing: border-box;\\n}\\n\\n.container \u003e div:hover {\\n background-color: gold;\\n}\",\"js\":\"\"}","created_at":"2023-07-23T20:02:43.807+08:00","updated_at":"2023-07-23T20:03:07.570+08:00","name":"【綜合練習】1 to 50:實作 2 - 解答","language":"web","screenshot":{"url":null},"parent_id":574410,"plugin":"var startTime = Date.now();\nvar count = 1;\nvar blocks = $('.container \u003e div');\n\nfor (var i=0; i\u003c100; i++) {\n var rand1 = Math.floor(Math.random()*25);\n var rand2 = Math.floor(Math.random()*25);\n var a = $(blocks[rand1]).text();\n var b = $(blocks[rand2]).text();\n $(blocks[rand1]).text(b);\n $(blocks[rand2]).text(a);\n}\n\n$('.container \u003e div').on('click', function () {\n var num = Number($(this).text());\n if (count == num \u0026\u0026 num \u003c= 25) {\n $(this).text(num + 25);\n count++;\n }\n if (count == num \u0026\u0026 num \u003e 25) {\n $(this).css('visibility', 'hidden');\n count++;\n }\n if (count == 51) {\n var time = (Date.now() - startTime)/1000;\n $(blocks).text('');\n $(blocks).css('visibility', 'visible');\n $(blocks).css('backgroundColor', 'gold');\n $(blocks[11]).text('結果');\n $(blocks[12]).text(time);\n $(blocks[13]).text('秒');\n }\n});","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":26,"hashid":"882s4zy2y","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":13034622,"file_name":"koding.png","project_id":574413,"asset_id":661659,"created_at":"2023-07-23T20:03:07.568+08:00","updated_at":"2023-07-23T20:03:07.568+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦