{"id":197280,"student_id":12205,"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);\\nconsole.log($(cards[0]));\\n//console.log($(cards[22]).text());\\nvar count = 1;\\n \\n var tmp = $(cards[1]).text();\\n$(cards[1]).text($(cards[0]).text());\\n $(cards[0]).text(tmp);\\n \\n$('.card').click(check);\\n\\nfunction check() {\\n var num = Number($(this).text());\\n \\n if (count == num \u0026\u0026 num \u003c= 25) {\\n $(this).text(num + 25);\\n count += 1;\\n\\n }\\nif (count == num \u0026\u0026 num \u003e 25){\\n \\n $(this).css('visibility','hidden');\\n count++;\\n}\\nif (count == 51){\\n $(cards).css('visibility','visible');\\n $(cards).css('backgroundcolor','gold');\\n $(cards).css('');\\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}\\n \\n \\n \\n}\\n\\n\\n\"}","created_at":"2020-10-23T20:05:23.326+08:00","updated_at":"2021-03-03T20:03:19.823+08:00","name":"1 to 50","language":"web","screenshot":{"url":"https://cdn2.koding.school/uploads/project/screenshot/197280/1a08f80f00186679b5fb84016d6e5db5.jpg"},"parent_id":155593,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":42,"hashid":"p93skdzmz","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3384790,"file_name":"koding.png","project_id":197280,"asset_id":107444,"created_at":"2020-10-23T20:05:23.331+08:00","updated_at":"2020-10-23T20:05:23.331+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦