{"id":54370,"student_id":10,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n\\t\u003ctitle\u003eDocument\u003c/title\u003e\\n\\t\u003cscript src=\\\"https://code.jquery.com/jquery-3.3.1.min.js\\\" integrity=\\\"sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=\\\" crossorigin=\\\"anonymous\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003cimg src=\\\"fat.png\\\" class=\\\"js-img-fat\\\"/\u003e\\n \u003cimg src=\\\"normal.png\\\" class=\\\"js-img-normal\\\"/\u003e\\n \u003cimg src=\\\"slim.png\\\" class=\\\"js-img-slim\\\"/\u003e\\n \u003ch1 class=\\\"js-result\\\"\u003eBMI 計算結果:\u003c/h1\u003e\\n \u003cinput type=\\\"text\\\" class=\\\"js-input-1\\\" placeholder=\\\"身高(公尺)\\\"\u003e\\n \u003cinput type=\\\"text\\\" class=\\\"js-input-2\\\" placeholder=\\\"體重(公斤)\\\"\u003e\\n \u003cbutton class=\\\"js-start\\\"\u003e計算!\u003c/button\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"body {\\n text-align: center;\\n padding: 60px;\\n}\\n\\nimg {\\n height: 200px;\\n}\\n\\ninput {\\n width: 300px;\\n padding: 10px;\\n font-size: 16px;\\n border: 2px solid #ddd;\\n border-radius: 5px;\\n margin: 5px auto;\\n}\\n\\nbutton {\\n width: 324px;\\n padding: 10px;\\n border-width: 0px;\\n border-radius: 5px;\\n margin: 5px auto;\\n font-size: 16px;\\n color: #fff;\\n background-color: red;\\n}\",\"js\":\"$('.js-img-fat').hide();\\n$('.js-img-slim').hide();\\n\\n$('.js-start').on('click', function () {\\n var h = $('.js-input-1').val();\\n var w = $('.js-input-2').val();\\n var bmi = Math.floor(w/h/h);\\n \\n $('img').hide();\\n \\n var text;\\n if (bmi \u003c= 18.5) {\\n text = '計算結果 BMI:' + bmi + ' 太輕了!';\\n $('.js-img-slim').show();\\n } else if (18.5 \u003c bmi \u0026\u0026 bmi \u003c= 24.9) {\\n text = '計算結果 BMI:' + bmi + ' 正常!';\\n $('.js-img-normal').show();\\n } else {\\n text = '計算結果 BMI:' + bmi + ' 過胖哦!';\\n $('.js-img-fat').show();\\n }\\n $('.js-result').text(text);\\n});\"}","created_at":"2019-01-19T12:15:21.404+08:00","updated_at":"2019-10-22T11:51:21.467+08:00","name":"BMI 計算機","language":"web","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/54370/c7d44a4ce617c0c543736fc4080a4fb2.jpg"},"parent_id":54369,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":303,"hashid":"qmds96g8","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":978260,"file_name":"fat.png","project_id":54370,"asset_id":108288,"created_at":"2019-01-26T09:51:52.199+08:00","updated_at":"2019-01-26T09:54:30.421+08:00"},{"id":978261,"file_name":"normal.png","project_id":54370,"asset_id":108289,"created_at":"2019-01-26T09:51:52.200+08:00","updated_at":"2019-01-26T09:52:03.449+08:00"},{"id":978262,"file_name":"slim.png","project_id":54370,"asset_id":108290,"created_at":"2019-01-26T09:51:53.067+08:00","updated_at":"2019-01-26T09:52:52.436+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦