{"id":574345,"student_id":2589,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n\\t\u003ctitle\u003eDocument\u003c/title\u003e\\n \u003cscript src=\\\"https://code.jquery.com/jquery-3.2.1.min.js\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003cdiv\u003e\\n \u003ch1 class=\\\"js-result\\\"\u003e???\u003c/h1\u003e\\n \u003cbutton class=\\\"js-btn\\\"\u003e我是誰?\u003c/button\u003e\\n \u003c/div\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"body {\\n width: 100vw;\\n height: 100vh;\\n background-color: #ddd;\\n background-image: url(bg.jpg);\\n background-repeat: no-repeat;\\n background-size: cover;\\n background-position: center;\\n}\\ndiv {\\n position: fixed;\\n top: 50vh;\\n left: 50vw;\\n width: 400px;\\n transform: translate(-50%, -50%);\\n}\\n\\nh1 {\\n font-size: 60px;\\n color: #fff;\\n text-align: center;\\n}\\n\\nbutton {\\n width: 100%;\\n padding: 10px;\\n border: 0px;\\n border-radius: 5px;\\n color: #fff;\\n font-size: 30px;\\n background-color: #dc3545;\\n}\",\"js\":\"var fish = [\\\"鮭魚\\\", \\\"鱈魚\\\", \\\"吳郭魚\\\", \\\"鮪魚\\\", \\\"鯛魚\\\", \\\"比目魚\\\"]\\n\\n$(\\\".js-btn\\\").click(food)\\n\\nfunction food(){\\n var rand = Math.floor(Math.random ()*fish.length)\\n console.log(f[rand])\\n}\"}","created_at":"2023-07-23T17:01:46.765+08:00","updated_at":"2023-07-23T17:01:52.081+08:00","name":"【綜合練習】我是誰產生器:實作 3 - 解答","language":"web","screenshot":{"url":null},"parent_id":574343,"plugin":"var places = ['士林','北投','木柵','三重','南港','淡水','新店','蘆洲','古亭','中壢','池上','汐止','三峽'];\nvar stars = ['金城武','劉德華','周杰倫','蔡依林','新垣結依','宋仲基','鄭容和','蕭敬騰','五月天','池昌旭','魔力紅'];\n\nfunction makeStar(){\n var rand1 = Math.floor(Math.random()*places.length);\n var rand2 = Math.floor(Math.random()*stars.length);\n var place = places[rand1];\n var star = stars[rand2];\n $('.js-result').text(place + star);\n}\n\n$('.js-btn').click(makeStar);","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":34,"hashid":"ej9s9jdwz","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":13034129,"file_name":"bg.jpg","project_id":574345,"asset_id":661563,"created_at":"2023-07-23T17:01:52.074+08:00","updated_at":"2023-07-23T17:01:52.074+08:00"},{"id":13034130,"file_name":"dog.jpg","project_id":574345,"asset_id":661564,"created_at":"2023-07-23T17:01:52.080+08:00","updated_at":"2023-07-23T17:01:52.080+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦