{"id":124463,"student_id":3232,"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-fat\\\" src=\\\"fat.png\\\"/\u003e\\r\\n \u003cimg id=\\\"img-normal\\\" src=\\\"normal.png\\\"/\u003e\\r\\n \u003cimg id=\\\"img-slim\\\" src=\\\"slim.png\\\"/\u003e\\r\\n \u003ch1 id=\\\"result\\\"\u003eBMI計算結果:\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 text-align: center;\\n padding: 60px;\\n}\\nimg{\\n height: 200px;\\n width: auto;\\n}\\ninput{\\n width: 50vw;\\n font-size: 16px;\\n padding: 10px; \\n margin: 10px;\\n border: 2px solid #ddd;\\n border-radius: 5px;\\n}\\nbutton{\\n width: 50vw;\\n font-size: 16px;\\n padding: 10px; \\n margin: 10px;\\n border: 0;\\n border-radius: 5px;\\n \\n background-color: red;\\n color: #fff;\\n}\",\"js\":\"$(\\\"#img-fat\\\").hide();\\n$(\\\"#img-normal\\\").hide();\\n$(\\\"#img-slim\\\").hide();\\n\\n\\n$(\\\"#btn-start\\\").on(\\\"click\\\", getResult);\\nfunction getResult() {\\n var h = $(\\\"#input1\\\").val();\\n var w = $(\\\"#input2\\\").val();\\n h = parseFloat(h);\\n w = parseFloat(w);\\n var bmi = w/(h*h);\\n\\n if (bmi \u003e= 0) {\\n h = h/100;\\n bmi = w/(h*h);\\n }\\n bmi = bmi.toFixed(2);\\n $(\\\"img\\\").hide();\\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\\n $(\\\"#result\\\").text(\\\"BMI計算結果:\\\" + bmi + text);\\n\\n}\"}","created_at":"2020-02-08T10:04:19.754+08:00","updated_at":"2020-02-08T11:54:31.730+08:00","name":"BMI 計算機 副本","language":"web","screenshot":{"url":"https://cdn3.koding.school/uploads/project/screenshot/124463/35d1341167f956318feb11acb7464d76.jpg"},"parent_id":67776,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":57,"hashid":"9ygs29rm","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":2132492,"file_name":"guess.png","project_id":124463,"asset_id":118674,"created_at":"2020-02-08T10:04:19.763+08:00","updated_at":"2020-02-08T10:04:19.763+08:00"},{"id":2132493,"file_name":"fat.png","project_id":124463,"asset_id":121612,"created_at":"2020-02-08T10:04:19.765+08:00","updated_at":"2020-02-08T10:04:19.765+08:00"},{"id":2132494,"file_name":"normal.png","project_id":124463,"asset_id":121611,"created_at":"2020-02-08T10:04:19.767+08:00","updated_at":"2020-02-08T10:04:19.767+08:00"},{"id":2132495,"file_name":"slim.png","project_id":124463,"asset_id":121610,"created_at":"2020-02-08T10:04:19.768+08:00","updated_at":"2020-02-08T10:04:19.768+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦