{"id":311937,"student_id":3770,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\r\\n\u003chtml\u003e\\r\\n\u003chead\u003e\\r\\n\\t\u003ctitle\u003eDocument\u003c/title\u003e\\r\\n\\t\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 class=\\\"container\\\"\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e1\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e2\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e3\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e4\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e5\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e6\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e7\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e8\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e9\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e10\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e11\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e12\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e13\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e14\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e15\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e16\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e17\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e18\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e19\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e20\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e21\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e22\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e23\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e24\u003c/div\u003e\\r\\n \u003cdiv class=\\\"card\\\"\u003e25\u003c/div\u003e\\r\\n \u003c/div\u003e\\r\\n\u003c/body\u003e\\r\\n\u003c/html\u003e\\r\\n\",\"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 border-radius: 5px;\\r\\n float: left;\\r\\n line-height: 70px;\\r\\n color: #fff;\\r\\n background-color: royalblue;\\r\\n cursor: pointer;\\r\\n text-shadow: 0px 0px 5px gray;\\r\\n box-shadow: 0px 0px 5px gray;\\r\\n transition: 0.2s;\\r\\n}\\r\\n\\r\\n.card:hover {\\r\\n background-color: gold;\\r\\n}\\r\\n\\r\\n\\r\\n/* .hide {\\r\\n visibility: hidden;\\r\\n} */\\r\\n\",\"js\":\"var cards = $('.card');\\n// console.log($(cards[22]).text());\\nvar cout = 1;\\nvar startTime = Date. now();\\n\\n// var tmp = $(cards[1]).text()\\n// $(cards[1]).text($(cards[0]).text())\\n// $(cards[0]).text(tmp)\\n\\nfor (var i = 0; i \u003c50; i ++){\\n var rand1 = Math.floor (Math.random()*25);\\n var rand2 = Math.floor (Math.random()*25);\\n \\n var tmp = $(cards[rand2]).text()\\n $(cards[rand2]).text($(cards[rand1]).text())\\n $(cards[rand1]).text(tmp)\\n}\\n\\n$('.card').click(check);\\n\\nfunction check() {\\n var num = Number($(this).text());\\n if (count == num \u0026\u0026 num \u003c= 25) {\\n $(this).text(num + 25);\\n count += 1;\\n }\\n\\n if (count == num \u0026\u0026 num \u003c= 25) {\\n\\n // $(this).addClass(\\\"hide\\\");\\n $(this).css('visibility', ' hidden')\\n count ++;\\n }\\n\\n if (count == 51) {\\n $(cards).css('visibility', 'visible');\\n $(cards).css('backgroundColor', 'gold');\\n $(cards).text('');\\n\\n var endTime = Date. now ();\\n var time = (endTime - startTime)/1000;\\n $(cards[11]).text('結果');\\n $(cards[12]).text(time);\\n $(cards[13]).text('秒');\\n }\\n}\"}","created_at":"2021-11-06T14:36:45.342+08:00","updated_at":"2021-11-06T15:19:40.437+08:00","name":"1 to 50_(S) 副本","language":"web","screenshot":{"url":null},"parent_id":81216,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":34,"hashid":"4y3sgeywk","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":6400987,"file_name":"koding.png","project_id":311937,"asset_id":107444,"created_at":"2021-11-06T14:36:45.348+08:00","updated_at":"2021-11-06T14:36:45.348+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦