{"id":53233,"student_id":1652,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n \u003ctitle\u003eDocument\u003c/title\u003e\\n \u003clink rel=\\\"stylesheet\\\" href=\\\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css\\\"\u003e\\n \u003cscript src=\\\"https://code.jquery.com/jquery-3.2.1.slim.min.js\\\"\u003e\u003c/script\u003e\\n \u003cscript src=\\\"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js\\\"\u003e\u003c/script\u003e\\n \u003cscript src=\\\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js\\\"\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\\\" id=\\\"height\\\"\u003e\\n \u003clabel for=\\\"weight\\\"\u003e體重(kg)\u003c/label\u003e\\n \u003cinput class = \\\"form-control\\\" id=\\\"weight\\\"\u003e\\n \u003cbutton class='btn btn-primary btn-block my-3 btn btn-dark' id='submit'\u003e送出\u003c/button\u003e\\n \u003cp class = \\\"alert alert-secondary\\\" id = \\\"result\\\"\u003e 結果\u003c/p\u003e\\n \\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"body {\\n background-image: url(images.jpg);\\n \\n}\",\"js\":\"$(\\\"#submit\\\").click(function() {\\n // alert(\\\"我被典籍了\\\")\\n var w = $(\\\"#weight\\\").val();\\n w = parseFloat (w);\\n var h = $(\\\"#height\\\").val();\\n h = parseFloat (h) /100;\\n var bmi = w/(h * h);\\n bmi = Math.round(bmi*100)/100;\\n $('#result').text(\\\"BMI:\\\"+ bmi + '過輕')\\n if(bmi\u003c= 18.5){\\n $('#result').removeClass();\\n $('#result').addClass('alert alert-success')\\n \\n }\\n if( bmi \u003e 18.5 \u0026\u0026 bmi \u003c=24.9 ){\\n $('#result').removeClass();\\n $('#result').addClass('alert alert-warning')\\n .text('BMI:'+ bmi + '健康')\\n }\\n if( bmi \u003e 25 \u0026\u0026 bmi \u003c=29.9){\\n $('#result').removeClass();\\n $('#result').addClass('alert alert-dark')\\n .text('BMI:'+ bmi + '過重')\\n }\\n if(bmi \u003e=30){\\n $('#result').removeClass();\\n $('#result').addClass('alert alert-danger')\\n .text('BMI:'+ bmi + '肥胖')\\n }\\n});\\n\\n\"}","created_at":"2019-01-05T13:39:33.760+08:00","updated_at":"2019-10-27T08:25:14.336+08:00","name":"BMI 計算器 副本","language":"web","screenshot":{"url":"https://cdn1.koding.school/uploads/project/screenshot/53233/dcd07c0f17081b625366de034d27f8ad.jpg"},"parent_id":24415,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":57,"hashid":"p93se86p","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":950850,"file_name":"下載.jpg","project_id":53233,"asset_id":97757,"created_at":"2019-01-05T14:37:53.276+08:00","updated_at":"2019-01-05T14:37:53.276+08:00"},{"id":950851,"file_name":"hqdefault.jpg","project_id":53233,"asset_id":106104,"created_at":"2019-01-05T14:38:36.762+08:00","updated_at":"2019-01-05T14:39:09.933+08:00"},{"id":950880,"file_name":"124663437299.jpg","project_id":53233,"asset_id":106109,"created_at":"2019-01-05T14:41:21.575+08:00","updated_at":"2019-01-05T14:41:21.575+08:00"},{"id":950897,"file_name":"124663437299.jpg","project_id":53233,"asset_id":106112,"created_at":"2019-01-05T14:43:23.625+08:00","updated_at":"2019-01-05T14:43:23.625+08:00"},{"id":950928,"file_name":"124663437299.jpg","project_id":53233,"asset_id":106112,"created_at":"2019-01-05T14:44:03.782+08:00","updated_at":"2019-01-05T14:44:03.782+08:00"},{"id":954330,"file_name":"th.jpg","project_id":53233,"asset_id":106522,"created_at":"2019-01-07T21:44:26.569+08:00","updated_at":"2019-01-07T21:44:34.134+08:00"},{"id":954331,"file_name":"images.jpg","project_id":53233,"asset_id":106523,"created_at":"2019-01-07T21:45:50.538+08:00","updated_at":"2019-01-07T21:45:57.430+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦