{"id":52400,"student_id":1658,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n \u003ctitle\u003eDocument\u003c/title\u003e\\n \u003clink rel=\\\"stylesheet\\\" href=\\\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css\\\"\u003e\\n \u003cscript src=\\\"https://code.jquery.com/jquery-3.2.1.slim.min.js\\\"\u003e\u003c/script\u003e\\n \u003cscript src=\\\"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js\\\"\u003e\u003c/script\u003e\\n \u003cscript src=\\\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody class=\\\"p-5\\\"\u003e\\n \u003ch1\u003eBMI計算機\u003c/h1\u003e\\n \u003clabel for=\\\"height \\\"\u003e身高(cm)\u003c/label\u003e\\n \u003cinput class=\\\"form-control\\\" id=\\\"height\\\"\u003e\\n \u003clabel for=\\\"weight\\\"\u003e體重(kg)\u003c/label\u003e\\n \u003cinput class=\\\"form-control\\\" id=\\\"weight\\\"\u003e\\n \u003cbutton type=\\\"button\\\" class=\\\"btn btn-primary btn-block\\\" id='submit'\u003e計算\u003c/button\u003e\\n \u003cp class=\\\"alert alert-secondary\\\" id=\\\"result\\\"\u003e\\n 結果\\n \u003c/p\u003e\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"body {\\n background-image: url(5b059765-60d5-4440-8107-7c794b0c0437.jpg);\\n}\",\"js\":\"$(\\\"#submit\\\").click(function () {\\n var w = $('#weight').val();\\n w = parseFloat(w)\\n var h = $('#height').val();\\n h = parseFloat(h) / 100\\n var bmi = w/(h * h)\\n bmi = Math.round(bmi*100)/100;\\n if (bmi \u003c= 18.5) {\\n $('#result').text(\\\"BMI :\\\" + bmi + '過輕')\\n $('#result').removeClass();\\n $('#result').addClass(\\\"alert alert-danger\\\")\\n }\\n if (18.5 \u003c bmi \u0026\u0026 bmi \u003c 25) {\\n $('#result').text(\\\"BMI :\\\" + bmi + '適中')\\n $('#result').removeClass();\\n $('#result').addClass(\\\"alert alert-success\\\")\\n }\\n if (25.1 \u003c bmi \u0026\u0026 bmi \u003c 29.9) {\\n $('#result').text(\\\"BMI :\\\" + bmi + '過重')\\n $('#result').removeClass();\\n $('#result').addClass(\\\"alert alert-danger\\\")\\n }\\n if (bmi\u003e30) {\\n $('#result').text(\\\"BMI :\\\" + bmi + '肥胖')\\n $('#result').removeClass();\\n $('#result').addClass(\\\"alert alert-danger\\\")\\n }\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n});\"}","created_at":"2018-12-15T13:37:57.853+08:00","updated_at":"2019-10-27T07:23:29.593+08:00","name":"BMI 計算器 副本","language":"web","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/52400/90e196d205f11e8c7f8f5b7389f42e75.jpg"},"parent_id":24415,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":80,"hashid":"meysg2pg","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":934570,"file_name":"bg.png","project_id":52400,"asset_id":57056,"created_at":"2018-12-15T13:37:57.862+08:00","updated_at":"2018-12-15T13:37:57.862+08:00"},{"id":964299,"file_name":"5b059765-60d5-4440-8107-7c794b0c0437.jpg","project_id":52400,"asset_id":79291,"created_at":"2019-01-12T13:47:55.990+08:00","updated_at":"2019-01-12T13:47:55.990+08:00"}]
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
繁中
简中
English
日本語
1:1:1
1:1
全寬
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦