{"id":97580,"student_id":234,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n\\t\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\u003e\\n \u003cdiv id=\\\"app\\\" class=\\\"p-5\\\"\u003e\\n\\t\\t\u003ch1\u003eBMI 計算器\u003c/h1\u003e\\n \u003clabel for=\\\"height\\\" class=\\\"alert alert-dark\\\"\u003e身高(cm)\u003c/label\u003e\\n \u003cinput class=\\\"form-control\\\" type=\\\"text\\\" id=\\\"height\\\"\u003e\\n \u003clabel for=\\\"weight\\\" class=\\\"alert alert-dark\\\"\u003e體重(kg)\u003c/label\u003e\\n \u003cinput class=\\\"form-control\\\" type=\\\"text\\\" id=\\\"weight\\\"\u003e\\n\\t\\t\u003cbutton class=\\\"btn btn-primary my-3\\\" id=\\\"submit\\\"\u003e計算\u003c/button\u003e\\n \u003cdiv class=\\\"alert alert-secondary\\\" id=\\\"result\\\"\u003e結果\u003c/div\u003e\\n\\t\u003c/div\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"body {\\n background-image: url(./bg.png);\\n}\\n\\n#app {\\n max-width: 600px;\\n margin: auto;\\n}\\n\\n#submit {\\n stywidth: 100%;\\n}\",\"js\":\"$(\\\"#submit\\\").on(\\\"click\\\", function() {\\n var w = $(\\\"#weight\\\").val();\\n w = parseFloat(w);\\n var h = $(\\\"#height\\\").val();\\n h = parseFloat(h);\\n h = h / 100.0;\\n var bmi = w / (h*h);\\n bmi = bmi.toFixed(2);\\n //alert(bmi);\\n if (bmi \u003c= 18.5) {\\n $(\\\"#result\\\").removeClass();\\n $(\\\"#result\\\").addClass(\\\"alert alert-primary\\\");\\n $(\\\"#result\\\").text(\\\"bmi = \\\" + bmi + \\\" 過輕!\\\");\\n }\\n if (bmi \u003e 18.5 \u0026\u0026 bmi \u003c 25) {\\n $(\\\"#result\\\").removeClass();\\n $(\\\"#result\\\").addClass(\\\"alert alert-success\\\");\\n $(\\\"#result\\\").text(\\\"bmi = \\\" + bmi + \\\" 適中:D\\\");\\n }\\n if (bmi \u003e25 \u0026\u0026 bmi \u003c 30) {\\n $(\\\"#result\\\").removeClass();\\n $(\\\"#result\\\").addClass(\\\"alert alert-warning\\\");\\n $(\\\"#result\\\").text(\\\"bmi = \\\" + bmi + \\\" 過重!\\\");\\n }\\n if (bmi \u003e= 30) {\\n $(\\\"#result\\\").removeClass();\\n $(\\\"#result\\\").addClass(\\\"alert alert-danger\\\");\\n $(\\\"#result\\\").text(\\\"bmi = \\\" + bmi + \\\" 肥胖!!!!!!\\\");\\n }\\n});\"}","created_at":"2019-09-28T10:14:40.266+08:00","updated_at":"2019-10-23T23:35:25.901+08:00","name":"BMI 計算器 副本","language":"web","screenshot":{"url":"https://cdn0.koding.school/uploads/project/screenshot/97580/389dac8cb43617a477c819bd8ae60e53.jpg"},"parent_id":24415,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":100,"hashid":"5j3sezvw","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":1656623,"file_name":"bg.png","project_id":97580,"asset_id":57056,"created_at":"2019-09-28T10:14:40.271+08:00","updated_at":"2019-09-28T10:14:40.271+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦