{"id":574357,"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 id=\\\"joyful\\\" src=\\\"joyful.png\\\"\u003e\\n \u003cimg id=\\\"happy\\\" src=\\\"happy.png\\\"\u003e\\n \u003cimg id=\\\"indifferent\\\" src=\\\"indifferent.png\\\"\u003e\\n \u003cimg id=\\\"angry\\\" src=\\\"angry.png\\\"\u003e\\n \u003cimg src=\\\"fat.png\\\" class=\\\"js-img-fat\\\"/\u003e\\n \u003cimg src=\\\"normal.png\\\" class=\\\"js-img-normal\\\"/\u003e\\n \u003cimg src=\\\"slim.png\\\" class=\\\"js-img-slim\\\"/\u003e\\n \u003ch1 class=\\\"js-result\\\"\u003eBMI 計算結果:\u003c/h1\u003e\\n \u003cinput type=\\\"text\\\" class=\\\"js-input-1\\\" placeholder=\\\"身高(公尺)\\\"\u003e\u003cbr /\u003e\\n \u003cinput type=\\\"text\\\" class=\\\"js-input-2\\\" placeholder=\\\"體重(公斤)\\\"\u003e\u003cbr /\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\\ninput {\\n width: 300px;\\n padding: 10px;\\n font-size: 16px;\\n border: 2px solid #ddd;\\n border-radius: 5px;\\n margin: 5px auto;\\n}\\n\\nbutton {\\n width: 324px;\\n padding: 10px;\\n border-width: 0px;\\n border-radius: 5px;\\n margin: 5px auto;\\n font-size: 16px;\\n color: #fff;\\n background-color: red;\\n}\",\"js\":\"\"}","created_at":"2023-07-23T17:16:30.330+08:00","updated_at":"2023-07-23T17:16:36.690+08:00","name":"【綜合練習】BMI 計算機:實作 1 - 解答","language":"web","screenshot":{"url":null},"parent_id":574356,"plugin":"$('.js-img-fat').hide();\n$('.js-img-slim').hide();\n\n$('.js-start').on('click', function () {\n var h = $('.js-input-1').val();\n var w = $('.js-input-2').val();\n var bmi = Math.floor(w/h/h);\n \n $('img').hide();\n \n var text;\n if (bmi \u003c= 18.5) {\n text = '計算結果 BMI:' + bmi + ' 太輕了!';\n $('.js-img-slim').show();\n } else if (bmi \u003c= 24.9) {\n text = '計算結果 BMI:' + bmi + ' 正常!';\n $('.js-img-normal').show();\n } else {\n text = '計算結果 BMI:' + bmi + ' 過胖哦!';\n $('.js-img-fat').show();\n }\n $('.js-result').text(text);\n});","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":34,"hashid":"yeysqez2r","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":13034188,"file_name":"slim.png","project_id":574357,"asset_id":661578,"created_at":"2023-07-23T17:16:36.664+08:00","updated_at":"2023-07-23T17:16:36.664+08:00"},{"id":13034189,"file_name":"normal.png","project_id":574357,"asset_id":661579,"created_at":"2023-07-23T17:16:36.668+08:00","updated_at":"2023-07-23T17:16:36.668+08:00"},{"id":13034190,"file_name":"fat.png","project_id":574357,"asset_id":661580,"created_at":"2023-07-23T17:16:36.673+08:00","updated_at":"2023-07-23T17:16:36.673+08:00"},{"id":13034191,"file_name":"indifferent.png","project_id":574357,"asset_id":661581,"created_at":"2023-07-23T17:16:36.677+08:00","updated_at":"2023-07-23T17:16:36.677+08:00"},{"id":13034192,"file_name":"joyful.png","project_id":574357,"asset_id":661582,"created_at":"2023-07-23T17:16:36.681+08:00","updated_at":"2023-07-23T17:16:36.681+08:00"},{"id":13034193,"file_name":"angry.png","project_id":574357,"asset_id":661583,"created_at":"2023-07-23T17:16:36.685+08:00","updated_at":"2023-07-23T17:16:36.685+08:00"},{"id":13034194,"file_name":"happy.png","project_id":574357,"asset_id":661584,"created_at":"2023-07-23T17:16:36.689+08:00","updated_at":"2023-07-23T17:16:36.689+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦