{"id":22302,"student_id":10,"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\\\" integrity=\\\"sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm\\\" crossorigin=\\\"anonymous\\\"\u003e\\n \u003cscript src=\\\"https://code.jquery.com/jquery-3.2.1.slim.min.js\\\" integrity=\\\"sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN\\\" crossorigin=\\\"anonymous\\\"\u003e\u003c/script\u003e\\n \u003cscript src=\\\"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js\\\" integrity=\\\"sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q\\\" crossorigin=\\\"anonymous\\\"\u003e\u003c/script\u003e\\n \u003cscript src=\\\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js\\\" integrity=\\\"sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl\\\" crossorigin=\\\"anonymous\\\"\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\\\" type=\\\"text\\\" id=\\\"height\\\"\u003e\\n \u003clabel for=\\\"weight\\\"\u003e體重(kg)\u003c/label\u003e\\n \u003cinput class=\\\"form-control\\\" type=\\\"text\\\" id=\\\"weight\\\"\u003e\\n \u003cbutton class=\\\"btn btn-primary btn-block my-3\\\" id=\\\"submit\\\"\u003e計算\u003c/button\u003e\\n \u003cdiv class=\\\"alert alert-secondary\\\" id=\\\"result\\\"\u003e結果\u003c/div\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"body {\\n background-image: url(./bg.png);\\n}\",\"js\":\"$('#submit').click(function(){\\n var w = $('#weight').val();\\n var h = $('#height').val()/100;\\n var bmi = w/(h**2);\\n \\n // bmiText = bmi.toFixed(2);\\n bmi = Math.floor(bmi*100)/100;\\n \\n $('#result').removeClass();\\n if (bmi \u003c= 18.5) {\\n $('#result').addClass('alert alert-danger')\\n .text(\\\"BMI :\\\" + bmi + \\\" 過輕\\\");\\n } else if (18.5 \u003c bmi \u0026\u0026 bmi \u003c= 24.9) {\\n $('#result').addClass('alert alert-success')\\n .text(\\\"BMI:\\\" + bmi + \\\" 正常\\\");\\n } else if (25 \u003c bmi \u0026\u0026 bmi \u003c= 29.9) {\\n $('#result').addClass('alert alert-warning')\\n .text(\\\"BMI:\\\" + bmi + \\\" 過重\\\");\\n } else if (30 \u003c bmi){\\n $('#result').addClass('alert alert-danger')\\n .text(\\\"BMI:\\\" + bmi + \\\" 肥胖\\\");\\n } else {\\n $('#result').addClass('alert alert-danger')\\n .text('輸入內容有誤!');\\n }\\n});\\n\"}","created_at":"2018-02-20T16:25:06.916+08:00","updated_at":"2019-11-07T12:08:38.175+08:00","name":"BMI 計算器","language":"web","screenshot":{"url":"https://cdn3.koding.school/uploads/project/screenshot/22302/f1888184724067cac1b97e91bfc88d31.jpg"},"parent_id":null,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":327,"hashid":"meys6ne4","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":430295,"file_name":"bg.png","project_id":22302,"asset_id":51276,"created_at":"2018-02-20T16:41:25.244+08:00","updated_at":"2018-02-20T16:41:25.244+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦