{"id":574361,"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=\\\"happy\\\" src=\\\"happy.png\\\"\u003e\\n \u003cimg id=\\\"indifferent\\\" src=\\\"indifferent.png\\\"\u003e\\n \u003cimg id=\\\"angry\\\" src=\\\"angry.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: 50px;\\n width: 50px;\\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\":\"$('#indifferent').hide();\\n$('#angry').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 $('#indifferent').show();\\n } else if (bmi \u003c= 24.9) {\\n text = '計算結果 BMI:' + bmi + ' 正常!';\\n $('#happy').show();\\n } else {\\n text = '計算結果 BMI:' + bmi + ' 過胖哦!';\\n $('#angry').show();\\n }\\n $('.js-result').text(text);\\n});\"}","created_at":"2023-07-23T17:18:08.412+08:00","updated_at":"2023-07-23T17:18:15.636+08:00","name":"【綜合練習】BMI 計算機:實作 3 - 解答","language":"web","screenshot":{"url":null},"parent_id":574360,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":33,"hashid":"d5msymw2k","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":13034244,"file_name":"slim.png","project_id":574361,"asset_id":661606,"created_at":"2023-07-23T17:18:15.609+08:00","updated_at":"2023-07-23T17:18:15.609+08:00"},{"id":13034245,"file_name":"normal.png","project_id":574361,"asset_id":661607,"created_at":"2023-07-23T17:18:15.615+08:00","updated_at":"2023-07-23T17:18:15.615+08:00"},{"id":13034246,"file_name":"fat.png","project_id":574361,"asset_id":661608,"created_at":"2023-07-23T17:18:15.620+08:00","updated_at":"2023-07-23T17:18:15.620+08:00"},{"id":13034247,"file_name":"indifferent.png","project_id":574361,"asset_id":661609,"created_at":"2023-07-23T17:18:15.624+08:00","updated_at":"2023-07-23T17:18:15.624+08:00"},{"id":13034248,"file_name":"joyful.png","project_id":574361,"asset_id":661610,"created_at":"2023-07-23T17:18:15.627+08:00","updated_at":"2023-07-23T17:18:15.627+08:00"},{"id":13034249,"file_name":"angry.png","project_id":574361,"asset_id":661611,"created_at":"2023-07-23T17:18:15.631+08:00","updated_at":"2023-07-23T17:18:15.631+08:00"},{"id":13034250,"file_name":"happy.png","project_id":574361,"asset_id":661612,"created_at":"2023-07-23T17:18:15.635+08:00","updated_at":"2023-07-23T17:18:15.635+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦