{"id":139112,"student_id":3232,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n \u003ctitle\u003eDocument\u003c/title\u003e\\n \u003cscript src=\\\"https://code.jquery.com/jquery-3.3.1.min.js\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003cdiv class=\\\"container\\\"\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 1\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 2\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 3\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 4\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 5\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 6\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 7\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 8\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 9\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 10\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 11\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 12\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 13\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 14\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 15\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 16\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 17\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 18\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 19\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 20\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 21\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 22\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 23\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 24\\n \u003c/div\u003e\\n \u003cdiv class=\\\"card\\\"\u003e\\n 25\\n \u003c/div\u003e\\n \u003c/div\u003e\\n\\n \u003cbutton id=again\u003e開始遊戲\u003c/button\u003e\\n\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\".container {\\r\\n text-align: center;\\r\\n top: 50%;\\r\\n left: 50%;\\r\\n width: 400px;\\r\\n height: 400px;\\r\\n position: fixed;\\r\\n transform: translate(-50%, -50%);\\r\\n}\\r\\n\\r\\n.card {\\r\\n font-size: 16px;\\r\\n width: 70px;\\r\\n height: 70px;\\r\\n margin: 5px;\\r\\n \\r\\n float: left;\\r\\n line-height: 70px;\\r\\n color: #fff;\\r\\n background-color: #ff8e2b;\\r\\n cursor: pointer;\\r\\n text-shadow: 0px 0px 5px gray;\\r\\n box-shadow: 2px 2px 5px gray;\\r\\n transition: 0.2s;\\r\\n}\\r\\n\\r\\n.card:hover {\\r\\n background-color: #ffbe85;\\r\\n}\\r\\n\\r\\n#again{\\r\\n \\r\\n background-color: #eb4034;\\r\\n color: #fff;\\r\\n text-align: center;\\r\\n bottom: 3%;\\r\\n left: 50%;\\r\\n width: 100px;\\r\\n height: 40px;\\r\\n position: fixed;\\r\\n transform: translate(-50%, -50%);\\r\\n border-radius: 5px;\\r\\n border: 0px solid;\\r\\n}\\r\\n/* .hide {\\r\\n visibility: hidden;\\r\\n} */\\r\\n\",\"js\":\"var cards = $(\\\".card\\\");\\nvar again;\\nvar count = 1;\\n$(\\\"#again\\\").click(function start() {\\n again = $(\\\"#again\\\").text();\\n if (again == \\\"重新開始\\\") {\\n $(\\\"#again\\\").text(\\\"開始遊戲\\\");\\n\\n $(cards).css(\\\"background-color\\\", \\\"#ffbe85\\\");\\n $(cards).text(\\\"\\\");\\n\\n\\n } else if (again == \\\"開始遊戲\\\") {\\n $(\\\"#again\\\").text(\\\"重新開始\\\");\\n \\n $(cards).css(\\\"background-color\\\", \\\"#ff8e2b\\\");\\n for (var i = 0; i \u003c 25; i++) {\\n $(cards[i]).text(i+1);\\n }\\n count = 1;\\n for (var i = 0; i \u003c 50; i++) {\\n var rand1 = Math.floor(Math.random()*25);\\n var rand2 = Math.floor(Math.random()*25);\\n var tmp = $(cards[rand2]).text();\\n $(cards[rand2]).text($(cards[rand1]).text());\\n $(cards[rand1]).text(tmp);\\n\\n }\\n var startTime = Date.now();\\n\\n $(\\\".card\\\").click(function check() {\\n var num = Number($(this).text());\\n if (count == num \u0026\u0026 num \u003c= 25) {\\n $(this).text(num += 25);\\n count++;\\n\\n }\\n if (count == num \u0026\u0026 num \u003e 25) {\\n $(this).css(\\\"visibility\\\", \\\"hidden\\\");\\n count++;\\n }\\n if (count == 51) {\\n $(cards).css(\\\"visibility\\\", \\\"visible\\\");\\n $(cards).css(\\\"background-color\\\", \\\"#ffbe85\\\");\\n $(cards).text(\\\"\\\");\\n var endTime = Date.now();\\n var Time = (endTime - startTime)/1000;\\n\\n $(cards[11]).text(\\\"結果\\\");\\n $(cards[12]).text(Time);\\n $(cards[13]).text(\\\"秒\\\");\\n }\\n })\\n }\\n\\n})\"}","created_at":"2020-04-11T10:08:49.839+08:00","updated_at":"2020-04-12T16:20:13.171+08:00","name":"1 to 50_(S) 副本","language":"web","screenshot":{"url":"https://cdn4.koding.school/uploads/project/screenshot/139112/da72c9fd6a83e0ddfddd8d3ca05cff09.jpg"},"parent_id":81216,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":52,"hashid":"5j3smn64","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":2399163,"file_name":"koding.png","project_id":139112,"asset_id":107444,"created_at":"2020-04-11T10:08:49.847+08:00","updated_at":"2020-04-11T10:08:49.847+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦