{"id":218554,"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.4.1.min.js\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003ch1\u003e翻開0次\u003c/h1\u003e\\n \u003cdiv class=\\\"container\\\"\u003e\\n \u003cbutton data-index=\\\"0\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton data-index=\\\"1\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton data-index=\\\"2\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton data-index=\\\"3\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton data-index=\\\"4\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton data-index=\\\"5\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton data-index=\\\"6\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton data-index=\\\"7\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton data-index=\\\"8\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton data-index=\\\"9\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton data-index=\\\"10\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton data-index=\\\"11\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton data-index=\\\"12\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton data-index=\\\"13\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton data-index=\\\"14\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton data-index=\\\"15\\\"\u003e❓\u003c/button\u003e\\n \u003c/div\u003e\\n \\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"body {\\n padding: 15px;\\n height: 100vh;\\n text-align: center;\\n}\\n\\n.container {\\n width: 280px;\\n height: 280px;\\n position: relative;\\n margin: auto;\\n}\\n\\nbutton {\\n width: 70px;\\n height: 70px;\\n display: inline-block;\\n line-height: 50px;\\n font-size: 3rem;\\n float: left;\\n}\\n\",\"js\":\"\"}","created_at":"2021-01-13T15:13:14.577+08:00","updated_at":"2022-10-06T22:04:33.047+08:00","name":"emoji 配對大作戰(試玩版)","language":"web","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/218554/f99e4e3351ee7323d0efa70d905c421a.jpg"},"parent_id":3,"plugin":"var answer = [\n '🧣','🎩','🧢','👒','🎓','⛑','👑','👝',\n '🧣','🎩','🧢','👒','🎓','⛑','👑','👝'\n];\n\nfor (var i=0; i\u003c100; i++) {\n var rand1 = Math.floor(Math.random()*16);\n var rand2 = Math.floor(Math.random()*16);\n var tmp = answer[rand1];\n answer[rand1] = answer[rand2];\n answer[rand2] = tmp;\n}\n\nvar firstEl = undefined;\nvar first = undefined;\nvar secondEl = undefined;\nvar second = undefined;\nvar status = 0;\nvar lock = false;\nvar count = 0;\n\n$('button').click(function () {\n if (lock == false) {\n count++;\n $('h1').text('翻開'+count+'次')\n \n if (first == undefined) {\n first = answer[$(this).data('index')]\n $(this).text(first)\n firstEl = $(this)\n } else if (second == undefined) {\n second = answer[$(this).data('index')]\n $(this).text(second)\n secondEl = $(this)\n \n if (first != second) {\n lock = true;\n setTimeout(function() {\n secondEl.text('❓')\n firstEl.text('❓')\n lock = false;\n }, 1000);\n \n }\n \n first = undefined;\n second = undefined;\n }\n }\n});","description":null,"note":null,"status":"public","like_student_ids":[5135,23839,16868,12460,11532,9254,11806,17411],"is_featured":false,"views":1169,"hashid":"4y3sgzeew","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":3863135,"file_name":"koding.png","project_id":218554,"asset_id":304961,"created_at":"2021-01-13T15:13:23.305+08:00","updated_at":"2021-01-13T15:13:23.305+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦