{"id":57855,"student_id":1404,"content":"{\"html\":\"\\n\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 \u003cscript src=\\\"https://code.jquery.com/jquery-3.2.1.min.js\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody class=\\\"p-3\\\"\u003e\\n \u003cimg src=\\\"tomato.png\\\" class=\\\"tomato-sm\\\"\u003e x\u003cspan class=\\\"js-collect\\\"\u003e0\u003c/span\u003e\\n \u003cdiv class=\\\"center\\\"\u003e\\n \u003cimg src=\\\"tomato.png\\\" class=\\\"tomato-lg js-tomato\\\"\u003e\\n \u003cp class=\\\"timer js-timer\\\"\u003e00:00\u003c/p\u003e\\n \u003cbutton class=\\\"btn btn-danger js-start\\\"\u003erun\u003c/button\u003e\\n \u003c/div\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\\n\",\"css\":\"body {\\n background-color: #f7df56;\\n font-family: Monaco;\\n}\\n\\n.center {\\n text-align: center;\\n position: absolute;\\n top: 50vh;\\n left: 50vw;\\n color: rgba(255,255,255,.7);\\n transform: translate(-50%, -50%);\\n}\\n\\n.timer {\\n font-size: 5em;\\n font-weight: bold;\\n}\\n\\n.tomato-sm {\\n width: 20px;\\n}\\n\\n.tomato-lg:hover {\\n transform: scale(1.3);\\n}\\n\",\"js\":\"var time = 0; //秒數\\nvar collect = 0;\\nvar status = 0; // 0:stop -\u003e 1:working -\u003e 2:stop -\u003e 3:rest\\n\\n$(\\\".js-tomato\\\").hide();\\n\\nsetInterval(function() {\\n if (status == 1 || status == 3) {\\n time -= 1;\\n }\\n if (time == 0) {\\n if (status == 1) {\\n status = 2;\\n }\\n if (status == 3) {\\n status = 0;\\n $(\\\".js-tomato\\\").show();\\n }\\n }\\n var minute = Math.floor(time / 60);\\n var second = time % 60;\\n $(\\\".js-timer\\\").text(minute+\\\":\\\"+second);\\n // $(\\\".js-timer\\\").text(`${minute}:${second}`);\\n\\n}, 1000);\\n\\n$(\\\".js-start\\\").on(\\\"click\\\", function() {\\n if (status == 0) {\\n time = 15;\\n status = 1;\\n }\\n if (status == 2) {\\n time = 5;\\n status = 3;\\n }\\n})\\n\\n$(\\\".js-tomato\\\").on(\\\"click\\\", function(){\\n $(\\\".js-tomato\\\").hide();\\n collect += 1;\\n $(\\\".js-collect\\\").text(collect);\\n})\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n// setInterval(function () {\\n\\n// if (status == 1 || status == 3) {\\n// time--;\\n// }\\n// if (time == 0) {\\n// if (status == 1) {\\n// status = 2;\\n// alert(\\\"時間到囉\\\");\\n// }\\n// if (status == 3) {\\n// status = 0;\\n// alert(\\\"時間到囉\\\");\\n// $(\\\".js-tomato\\\").show();\\n// }\\n// }\\n// var min = Math.floor(time/60);\\n// var sec = time%60;\\n\\n// // 挑戰1\\n// if(min \u003c 10) min = '0' + min;\\n// if(sec \u003c 10) sec = '0' + sec;\\n\\n// $('.js-timer').text(min + ':' + sec);\\n\\n// }, 1000);\\n\\n// $('.js-tomato').on('click', function () {\\n// $(this).hide();\\n// collect += 1;\\n// $('.js-collect').text(collect);\\n// });\\n\\n// $(\\\".js-start\\\").on(\\\"click\\\", function () {\\n// if (status == 0) {\\n// status = 1;\\n// time = 10;\\n// }\\n// if (status == 2) {\\n// status = 3;\\n// time = 3;\\n// }\\n// });\"}","created_at":"2019-03-08T18:17:58.508+08:00","updated_at":"2019-11-09T17:33:47.237+08:00","name":"番茄時鐘 副本","language":"web","screenshot":{"url":"https://cdn5.koding.school/uploads/project/screenshot/57855/d8a128c22c9f71fe9986b7942acc8492.jpg"},"parent_id":22503,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":77,"hashid":"kdmsgwyz","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":1017934,"file_name":"tomato.png","project_id":57855,"asset_id":51614,"created_at":"2019-03-08T18:17:58.513+08:00","updated_at":"2019-03-08T18:17:58.513+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦