{"id":455249,"student_id":1444,"content":"{\"html\":\"\u003chtml\u003e\\r\\n\u003chead\u003e\\r\\n \u003ctitle\u003eDocument\u003c/title\u003e\\r\\n \u003cscript src=\\\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js\\\"\u003e\u003c/script\u003e\\r\\n\u003c/head\u003e\\r\\n\u003cbody\u003e\\r\\n \u003cimg id=\\\"img-guess\\\" src=\\\"guess.png\\\"/\u003e\\r\\n \u003cimg id=\\\"img-slim\\\" src=\\\"slim.png\\\"/\u003e\\r\\n \u003cimg id=\\\"img-normal\\\" src=\\\"normal.png\\\"/\u003e\\r\\n \u003cimg id=\\\"img-fat\\\" src=\\\"fat.png\\\"/\u003e\\r\\n \u003ch1 id=\\\"result\\\"\u003eBML計算結果\u003c/h1\u003e\\r\\n \u003cinput id=\\\"input1\\\" type=\\\"number\\\" placeholder=\\\"身高\\\"\u003e\\r\\n \u003cinput id=\\\"input2\\\" type=\\\"number\\\" placeholder=\\\"體重\\\"\u003e\\r\\n \u003cbutton id=\\\"btn-start\\\"\u003e計算\u003c/button\u003e\\r\\n\u003c/body\u003e\\r\\n\u003c/html\u003e\\r\\n\",\"css\":\"body {\\n padding: 60px;\\n text-align: center;\\n\\n}\\nimg {\\n height: 200px;\\n}\\ninput {\\n width: 40vw;\\n font-size: 16px;\\n padding: 10px;\\n margin: 10px;\\n border: 2px solid #ddd;\\n border-radius: 5px;\\n}\\nbutton {\\n width: 40vw;\\n font-size: 16px;\\n padding: 10px;\\n margin: 10px;\\n border: 0px solid #ddd;\\n border-radius: 5px;\\n color: #fff;\\n background: red;\\n}\",\"js\":\"$('#img-slim').hide();\\n$('#img-normal').hide();\\n$('#img-fat').hide();\\n\\n$('#btn-start').on('click', getResult);\\nfunction getResult() {\\n\\n var h = $('#input1').val();\\n var w = $('#input2').val();\\n // alert('h='+h+' w='+w);\\n\\n h = parseFloat(h) /100;\\n w = parseFloat(w);\\n\\n var bmi = w/(h*h);\\n bmi = bmi.toFixed(2)\\n\\n $('img').hide();\\n\\n var text;\\n if (bmi \u003c= 18.5) {\\n text = '太輕了';\\n $('#img-slim').show();\\n } else if (18.5 \u003c bmi \u0026\u0026 bmi \u003c= 24.9) {\\n text = '正常';\\n $('#img-normal').show();\\n } else if (bmi \u003e 24.9) {\\n text = '太重了';\\n $('#img-fat').show();\\n }\\n $('#result').text(\\\"計算結果BMI\\\"+bmi+text);\\n}\"}","created_at":"2022-11-04T14:41:32.121+08:00","updated_at":"2022-11-07T02:51:01.244+08:00","name":"BMI 計算機 副本","language":"web","screenshot":{"url":"https://cdn4.koding.school/uploads/project/screenshot/455249/cc2bf8aefdd85890e3713b642ab12883.jpg"},"parent_id":67776,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":60,"hashid":"jzmskn96p","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":10317566,"file_name":"slim.png","project_id":455249,"asset_id":121610,"created_at":"2022-11-04T14:41:32.128+08:00","updated_at":"2022-11-04T14:41:32.128+08:00"},{"id":10317567,"file_name":"normal.png","project_id":455249,"asset_id":121611,"created_at":"2022-11-04T14:41:32.130+08:00","updated_at":"2022-11-04T14:41:32.130+08:00"},{"id":10317568,"file_name":"fat.png","project_id":455249,"asset_id":121612,"created_at":"2022-11-04T14:41:32.133+08:00","updated_at":"2022-11-04T14:41:32.133+08:00"},{"id":10317569,"file_name":"guess.png","project_id":455249,"asset_id":118674,"created_at":"2022-11-04T14:41:32.134+08:00","updated_at":"2022-11-04T14:41:32.134+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦