{"id":93501,"student_id":10,"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.4.1.min.js\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003ch1 style=\\\"text-align: center;\\\"\u003e翻開0次\u003c/h1\u003e\\n\\n \u003cdiv class=\\\"container\\\"\u003e\\n \u003cbutton id=\\\"0\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton id=\\\"1\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton id=\\\"2\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton id=\\\"3\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton id=\\\"4\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton id=\\\"5\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton id=\\\"6\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton id=\\\"7\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton id=\\\"8\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton id=\\\"9\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton id=\\\"10\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton id=\\\"11\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton id=\\\"12\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton id=\\\"13\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton id=\\\"14\\\"\u003e❓\u003c/button\u003e\\n \u003cbutton id=\\\"15\\\"\u003e❓\u003c/button\u003e\\n \u003c/div\u003e\\n\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"body {\\n width: 100 vw;\\n height: 100 vh;\\n}\\n\\n.container {\\n width: 280px;\\n height: 280px;\\n position: absolute;\\n top: 50%;\\n left: 50%;\\n transform: translate(-50%, -50%);\\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\":\"// 選擇相對圖片放入陣列\\nvar answers = [\\n '🧣', '🎩', '🧢', '👒', '🎓', '⛑', '👑', '👝',\\n '🧣', '🎩', '🧢', '👒', '🎓', '⛑', '👑', '👝'\\n];\\n\\n// 洗牌演算法\\nfor (var i = 0; i \u003c 100; i++) {\\n var rand1 = Math.floor(Math.random()*16);\\n var rand2 = Math.floor(Math.random()*16);\\n var tmp = answers[rand1];\\n answers[rand1] = answers[rand2];\\n answers[rand2] = tmp;\\n}\\n\\nvar firstEl;\\nvar first;\\nvar secondEl;\\nvar second;\\nvar count = 0;\\n\\n\\n// 設定狀態機 first second 版本\\n$('button').click(function () {\\n\\n\\n if (first == undefined) {\\n first = answers[$(this).attr('id')];\\n $(this).text(first);\\n firstEl = $(this);\\n\\n } else if (second == undefined) {\\n second = answers[$(this).attr('id')];\\n $(this).text(second);\\n secondEl = $(this);\\n // 是否相同\\n if (first != second) {\\n setTimeout(function() {\\n firstEl.text('❓');\\n secondEl.text('❓');\\n first = undefined;\\n second = undefined;\\n }, 1000);\\n } else {\\n first = undefined;\\n second = undefined;\\n }\\n\\n }\\n\\n $('h1').text('翻開' + count + '次!');\\n\\n});\\n\"}","created_at":"2019-09-03T15:01:25.526+08:00","updated_at":"2019-11-09T17:52:50.426+08:00","name":"15. emoji 配對大作戰 副本","language":"web","screenshot":{"url":"/uploads/project/screenshot/93501/88ae8ed6f2cb690c60dd7870c8b3d101.jpg"},"parent_id":80441,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":465,"hashid":"npmsyzdq","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":1578552,"file_name":"koding.png","project_id":93501,"asset_id":135431,"created_at":"2019-09-03T15:01:25.533+08:00","updated_at":"2019-09-03T15:01:25.533+08:00"}]
Orange Apple Learning Platform
My Projects
View Project Page
Export
Remix
Import
Delete
Download Android APP (APK)
Screenshot
Open Web Site
繁中
简中
English
日本語
1:1:1
1:1
Full Width
Scan the QRCode below with your phone to install
Or you can
download APK
to this computer
Scan the QRCode below with your phone to install
Or you can
download APK
to this computer