{"id":171521,"student_id":3469,"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\\r\\n.card:hover {\\r\\n background-color: gold;\\r\\n}\\r\\n\\r\\n\\r\\n\\r\\n/* .hide {\\r\\n visibility: hidden;\\r\\n} */\\r\\n\",\"js\":\"var count = 1;\\nvar cards = $('.card');\\nvar startTime = Date.now();\\nvar timeShow = false;\\n// $(cards[1]).text($(cards[0]).text());\\n// $(cards[0]).text(tmp);\\n\\nfor (var i = 0; i \u003c 50; i++) {\\n var rand1 = Math.floor(Math.random() * 24);\\n var rand2 = Math.floor(Math.random() * 24);\\n \\n var tmp = $(cards[rand2]).text();\\n $(cards[rand2]).text($(cards[rand1]).text());\\n $(cards[rand1]).text(tmp);\\n}\\n\\n\\n\\n\\n\\n\\n// console.log($(cards[0]).text())\\n$('.card').click(check);\\n\\nfunction check(){\\n var num = Number($(this).text());\\n // console.log(num);\\n if (num == count \u0026\u0026 num \u003c= 25) {\\n $(this).text(num + 25);\\n \\n count ++;\\n }\\n if (num == count \u0026\u0026 num \u003e 25) {\\n $(this).css('transition', '0s');\\n $(this).css('visibility', 'hidden');\\n count ++;\\n }\\n if (count == 51) {\\n \\n if (timeShow === false) {\\n var time = (Date.now() - startTime) / 1000;\\n }\\n \\n \\n \\n var card13Text = $(cards[12]).text();\\n \\n $('.card').css('visibility', 'hidden');\\n $('.card').css('backgroundColor', 'royalblue');\\n $('.card').css('transition', '2s');\\n $('.card').css('font-size', '20px');\\n $('.card').css('color', 'black');\\n setTimeout(function(){$('.card').css('visibility', 'visible');}, 500);\\n setTimeout(function(){$('.card').css('backgroundColor', 'yellow');}, 500);\\n $('.card').text('');\\n $(cards[11]).text('結果');\\n if (timeShow === false) {\\n $(cards[12]).text(time);\\n timeShow = true;\\n }else{\\n $(cards[12]).text(card13Text);\\n }\\n $(cards[13]).text('秒');\\n \\n }\\n}\"}","created_at":"2020-07-26T13:37:32.915+08:00","updated_at":"2020-07-27T22:57:47.795+08:00","name":"1 to 50_(S) 副本","language":"web","screenshot":{"url":"https://cdn2.koding.school/uploads/project/screenshot/171521/bc229588375a47b7a6c5568a572cf594.jpg"},"parent_id":81216,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":88,"hashid":"wdksygd6","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":2964701,"file_name":"koding.png","project_id":171521,"asset_id":107444,"created_at":"2020-07-26T13:37:32.920+08:00","updated_at":"2020-07-26T13:37:32.920+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦