{"id":574387,"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.3.1.min.js\\\" integrity=\\\"sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=\\\" crossorigin=\\\"anonymous\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003cimg src=\\\"ok.png\\\" class=\\\"js-img-ok\\\"/\u003e\\n \u003cimg src=\\\"shake.gif\\\" class=\\\"js-img-shake\\\"/\u003e\\n \u003ch1 class=\\\"js-result\\\"\u003e抽籤抽獎神器\u003c/h1\u003e\\n \u003ctextarea class=\\\"js-textarea\\\"\u003e\u003c/textarea\u003e\\n \u003cbutton class=\\\"js-start\\\"\u003e開抽!\u003c/button\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"body {\\n text-align: center;\\n padding: 60px;\\n}\\n\\nimg {\\n height: 200px;\\n}\\n\\ntextarea {\\n width: 300px;\\n padding: 10px;\\n font-size: 16px;\\n border: 5px dotted #ffddaa;\\n border-radius: 5px;\\n margin: 5px auto;\\n display: block;\\n}\\n\\n\\nbutton {\\n display: block;\\n width: 324px;\\n padding: 10px;\\n border-width: 0px;\\n border-radius: 5px;\\n margin: 5px auto;\\n font-size: 16px;\\n background-color: #dc3545;\\n color: #fff;\\n cursor: pointer;\\n}\\n\\nbutton:hover {\\n background-color: #a02732;\\n}\\n\\nbutton:active {\\n background-color: #dc3545;\\n}\",\"js\":\"\"}","created_at":"2023-07-23T19:36:36.506+08:00","updated_at":"2023-07-23T19:36:40.978+08:00","name":"【綜合練習】抽獎抽籤神器:實作 2 - 解答","language":"web","screenshot":{"url":null},"parent_id":574386,"plugin":"$('.js-img-shake').hide();\n\n$('.js-start').on('click', function () {\n var options = $('.js-textarea').val().split('\\n');\n var rand = Math.floor(Math.random()*options.length);\n\n $('.js-img-shake').show();\n $('.js-img-ok').hide();\n $('.js-result').text('等待開將結果...');\n setTimeout(function() {\n $('.js-img-shake').hide();\n $('.js-img-ok').show();\n $('.js-result').text('開獎結果:' + options[rand]);\n }, 3000);\n});","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":30,"hashid":"jzmskqyd8","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":13034601,"file_name":"shake.gif","project_id":574387,"asset_id":661645,"created_at":"2023-07-23T19:36:40.971+08:00","updated_at":"2023-07-23T19:36:40.971+08:00"},{"id":13034602,"file_name":"ok.png","project_id":574387,"asset_id":661646,"created_at":"2023-07-23T19:36:40.976+08:00","updated_at":"2023-07-23T19:36:40.976+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦