{"id":99453,"student_id":1940,"content":"{\"html\":\"\u003chtml\u003e\\n\u003chead\u003e\\n \u003ctitle\u003eDocument\u003c/title\u003e\\n \u003cscript src=\\\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n\\n \u003cimg id=\\\"img_normal\\\" src=\\\"normal.png \\\"\u003e\\n \u003cimg id=\\\"img_slim\\\" src=\\\"slim.png\\\"\u003e\\n \u003cimg id=\\\"img_fat\\\" src=\\\"fat.png\\\"\u003e\\n \u003cimg id=\\\"img_guess\\\" src=\\\"guess.png \\\"\u003e\\n \u003ch1 id=\\\"result\\\"\u003e BMI result\u003c/h1\u003e\\n\\n Height\u003cbr\u003e\\n \u003cinput type=\\\"number\\\" id=\\\"h\\\" name=\\\"Height\\\" placeholder=\\\"HEIGHT(M)\\\"\u003e\u003cbr\u003e\\n Weight\u003cbr\u003e\\n \u003cinput type=\\\"number\\\" id=\\\"w\\\" name=\\\"Weight\\\" placeholder=\\\"WEIGHT(KG)\\\"\u003e\u003cbr\u003e\u003cbr\u003e\\n \u003cinput type=\\\"submit\\\" id=\\\"lolol\\\" value=\\\"Submit\\\"\u003e\\n\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"body{\\n text-align: center;\\n padding: 60px;\\n}\\nimg{\\n height: 200px;\\n}\\n#w{\\n width: 50%;\\n font-size: 16px;\\n padding: 10px;\\n margin: 10px;\\n border: 2px;\\n border-radius: 5px;\\n}\\n#h{\\n width: 50%;\\n font-size: 16px;\\n padding: 10px;\\n margin: 10px;\\n border: 2px;\\n border-radius: 5px;\\n}\\n#lolol{\\n width: 50%;\\n font-size: 16px;\\n padding: 10px;\\n margin: 10px;\\n border: 2px;\\n border-radius: 5px;\\n color: #fff;\\n background-color: red;\\n}\\n\",\"js\":\"$('#img_normal').hide()\\n$('#img_fat').hide()\\n$('#img_slim').hide()\\n$(id=lolol).click(getResult)\\nfunction getResult(){\\n var h = $('#h').val();\\n var w = $('#w').val(); \\n h = parseFloat(h);\\n w = parseFloat(w);\\n var bmi = (w/h/h).toFixed(2);\\n $('#img_guess').hide()\\n $('#img_normal').hide()\\n $('#img_fat').hide()\\n $('#img_slim').hide()\\n var text\\n if(bmi \u003c= 18.5){\\n text = \\\" tooo light\\\"\\n $('#img_slim').show()\\n }else if (bmi \u003e= 18.5 \u0026\u0026 bmi \u003c= 24.9){\\n text = \\\" Good weight\\\"\\n $('#img_normal').show()\\n } else if(bmi \u003e= 24.9 ){\\n text = \\\" TOO FAT\\\"\\n $('#img_fat').show()\\n }\\n $(\\\"#result\\\").text(\\\"BMI is\\\" + bmi + text) \\n \\n}\\n\\n\\n\\n\\n\"}","created_at":"2019-09-29T13:22:13.443+08:00","updated_at":"2019-10-16T02:23:42.157+08:00","name":"BMI 計算機 ","language":"web","screenshot":{"url":"https://cdn6.koding.school/uploads/project/screenshot/99453/1bd622b7ed0da62d85d76270d1739419.jpg"},"parent_id":99448,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":78,"hashid":"p93sn8ng","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":1678365,"file_name":"guess.png","project_id":99453,"asset_id":118674,"created_at":"2019-09-29T13:22:13.447+08:00","updated_at":"2019-09-29T13:22:13.447+08:00"},{"id":1678366,"file_name":"fat.png","project_id":99453,"asset_id":118699,"created_at":"2019-09-29T13:22:13.449+08:00","updated_at":"2019-09-29T13:22:13.449+08:00"},{"id":1678367,"file_name":"slim.png","project_id":99453,"asset_id":118700,"created_at":"2019-09-29T13:22:13.449+08:00","updated_at":"2019-09-29T13:22:13.449+08:00"},{"id":1678368,"file_name":"normal.png","project_id":99453,"asset_id":118701,"created_at":"2019-09-29T13:22:13.450+08:00","updated_at":"2019-09-29T13:22:13.450+08:00"}]
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
繁中
简中
English
日本語
1:1:1
1:1
全寬
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦