{"id":779671,"student_id":58026,"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=\\\"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 \u003cimg src=\\\"indifferent.png\\\" class=\\\"indifferent.png\\\"/\u003e\\n \u003cimg src=\\\"joyful.png\\\" class=\\\"joyful.png\\\"/\u003e\\n \u003cimg src=\\\"angry.png\\\" class=\\\"angry.png\\\"/\u003e\\n \u003cimg src=\\\"happy.png\\\" class=\\\"happy.png\\\"/\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":"2024-06-29T14:44:31.003+08:00","updated_at":"2024-06-29T14:53:13.700+08:00","name":"【綜合練習】BMI 計算機:實作 1 - 問題 副本","language":"web","screenshot":{"url":"https://cdn1.koding.school/uploads/project/screenshot/779671/710e693eb224b4ea9ae80fdc55b73517.jpg"},"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":2,"hashid":"9ygsrq54r","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":17372711,"file_name":"slim.png","project_id":779671,"asset_id":661571,"created_at":"2024-06-29T14:44:31.008+08:00","updated_at":"2024-06-29T14:44:31.008+08:00"},{"id":17372712,"file_name":"normal.png","project_id":779671,"asset_id":661572,"created_at":"2024-06-29T14:44:31.010+08:00","updated_at":"2024-06-29T14:44:31.010+08:00"},{"id":17372713,"file_name":"fat.png","project_id":779671,"asset_id":661573,"created_at":"2024-06-29T14:44:31.011+08:00","updated_at":"2024-06-29T14:44:31.011+08:00"},{"id":17372714,"file_name":"indifferent.png","project_id":779671,"asset_id":661574,"created_at":"2024-06-29T14:44:31.013+08:00","updated_at":"2024-06-29T14:44:31.013+08:00"},{"id":17372715,"file_name":"joyful.png","project_id":779671,"asset_id":661575,"created_at":"2024-06-29T14:44:31.014+08:00","updated_at":"2024-06-29T14:44:31.014+08:00"},{"id":17372716,"file_name":"angry.png","project_id":779671,"asset_id":661576,"created_at":"2024-06-29T14:44:31.015+08:00","updated_at":"2024-06-29T14:44:31.015+08:00"},{"id":17372717,"file_name":"happy.png","project_id":779671,"asset_id":661577,"created_at":"2024-06-29T14:44:31.017+08:00","updated_at":"2024-06-29T14:44:31.017+08:00"}]
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
繁中
简中
English
日本語
1:1:1
1:1
全寬
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦