{"id":59239,"student_id":1652,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml lang=\\\"en\\\"\u003e\\n\u003chead\u003e\\n \u003ctitle\u003eDocument\u003c/title\u003e\\n \u003clink rel=\\\"stylesheet\\\" href=\\\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css\\\"\u003e\\n \u003cscript src=\\\"https://code.jquery.com/jquery-3.2.1.min.js\\\"\u003e\u003c/script\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003cdiv id=\\\"box\\\"\u003e\\n \u003ch1\u003eTODO LIST\u003c/h1\u003e\\n \u003cinput type=\\\"text\\\" id=\\\"input\\\" class=\\\"form-control\\\" placeholder=\\\"新增事項...\\\"\u003e\\n \u003cbutton id=\\\"add-btn\\\" class=\\\"btn btn-dark\\\"\u003e新增\u003c/button\u003e\\n \u003col id=\\\"list\\\" class=\\\"list-group\\\"\u003e\\n \u003cli class='list-group-item'\u003e\\n \u003cspan\u003e假資料 1\u003c/span\u003e\\n \u003cbutton class='btn btn-sm btn-danger btn-delete'\u003e刪除\u003c/button\u003e\\n \u003c/li\u003e\\n \u003cli class='list-group-item'\u003e\\n \u003cspan\u003e假資料 2\u003c/span\u003e\\n \u003cbutton class='btn btn-sm btn-danger btn-delete'\u003e刪除\u003c/button\u003e\\n \u003c/li\u003e\\n \u003cli class='list-group-item'\u003e\\n \u003cspan\u003e假資料 3\u003c/span\u003e\\n \u003cbutton class='btn btn-sm btn-danger btn-delete'\u003e刪除\u003c/button\u003e\\n \u003c/li\u003e\\n \u003c/ol\u003e\\n \u003c/div\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"#box {\\n position: fixed;\\n top: 0;\\n left: 0;\\n width: 100vw;\\n height: 100vh;\\n padding: 30px 90px;\\n margin: 0;\\n background-image: url(\\\"bg.jpg\\\");\\n background-position: center;\\n background-size: cover;\\n background-repeat: no-repeat;\\n overflow: scroll;\\n}\\n\\nh1 {\\n text-align: center;\\n text-shadow: 3px 3px #fff;\\n font-size: 4rem;\\n font-weight: 900;\\n}\\n\\n#add-btn {\\n display: block;\\n margin: 5px 0px;\\n width: 100%;\\n}\\n\\n#box li {\\n background-color: rgba(255,255,255,.9);\\n font-weight: bold;\\n font-size: 1.1rem;\\n}\\n\\nli button {\\n float: right;\\n}\",\"js\":\"var todolist = DB.table(\\\"todolist\\\")\\n$(\\\"#add-btn\\\").on(\\\"click\\\", function() {\\n var value = $(\\\"#input\\\").val();\\n alert(value)\\n $(\\\"#input\\\").val('');\\n var item = $(\\\"\u003cli class='list-group-item'\u003e\u003cspan\u003e\\\"+ value + \\\"\u003c/span\u003e\u003cbutton class='btn btn-sm btn-dark btn-delete'\u003e刪除\u003c/button\u003e\u003c/li\u003e\\\")\\n $('ol').append(item)\\n\\n todolist.insert({\\n content: value\\n })\\n});\\n$('.btn-delete').on('click', function() {\\n var parent = $(this).parent();\\n parent.remove();\\n});\\n$(\\\"#list\\\").on(\\\"click\\\", \\\"button\\\", function() {\\n var parent = $(this).parent();\\n parent.remove();\\n\\n var text = $(this).prev().text()\\n todolist.remove({\\n content: text\\n })\\n\\n});\\n\\ntodolist.find({}, function (data) {\\n // console.log(data.length);\\n //console.log(data);\\n for (var i = 0; i \u003c data.length; i++) {\\n var value = data[i].content\\n var item = $(\\\"\u003cli class='list-group-item'\u003e\u003cspan\u003e\\\"+ value + \\\"\u003c/span\u003e\u003cbutton class='btn btn-sm btn-dark btn-delete'\u003e刪除\u003c/button\u003e\u003c/li\u003e\\\")\\n $('ol').append(item)\\n}\\n})\\n\"}","created_at":"2019-03-16T12:44:30.847+08:00","updated_at":"2019-10-05T12:41:37.343+08:00","name":"todolist - 學生版 副本","language":"web","screenshot":{"url":"https://cdn6.koding.school/uploads/project/screenshot/59239/3708931da5068b8f433c089d302f24e7.jpg"},"parent_id":21418,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":57,"hashid":"qmdsg2gn","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":1045392,"file_name":"images.jpg","project_id":59239,"asset_id":100038,"created_at":"2019-03-16T13:58:24.991+08:00","updated_at":"2019-03-16T13:58:31.199+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦