{"id":116593,"student_id":234,"content":"{\"html\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml\u003e\\n\u003chead\u003e\\n\\t\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.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-4\\\"\u003e\\n \u003ch2 class=\\\"text-center\\\"\u003e高鐵查詢\u003c/h1\u003e\\n \u003clabel for=\\\"origin\\\"\u003e啟程站\u003c/label\u003e\\n \u003cselect class=\\\"form-control mb-2\\\" id=\\\"origin\\\"\u003e\\n \u003c/select\u003e\\n \u003clabel for=\\\"stopping\\\"\u003e到達站\u003c/label\u003e\\n \u003cselect class=\\\"form-control mb-2\\\" id=\\\"stopping\\\"\u003e\\n \u003c/select\u003e\\n \u003clabel for=\\\"date\\\"\u003e日期\u003c/label\u003e\\n \u003cinput class=\\\"form-control\\\" type=\\\"date\\\" id=\\\"date\\\"\u003e\\n \u003cbutton class=\\\"btn btn-danger btn-block my-3\\\" id=\\\"search\\\"\u003e開始查詢\u003c/button\u003e\\n \u003ctable class=\\\"table table-striped bg-light\\\"\u003e\\n \u003cthead\u003e\\n \u003ctr\u003e\\n \u003ctd\u003e#\u003c/td\u003e\\n \u003ctd\u003e車號\u003c/td\u003e\\n \u003ctd\u003e發車時間\u003c/td\u003e\\n \u003ctd\u003e到達時間\u003c/td\u003e\\n \u003c/tr\u003e\\n \u003c/thead\u003e\\n \u003ctbody\u003e\u003c/tbody\u003e\\n \u003c/table\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"css\":\"body {\\n background-image: url(bg.png);\\n}\",\"js\":\"var stations = 'https://us-central1-orangeapple-d1f13.cloudfunctions.net/stations';\\n\\n$.get(stations, function(data) {\\n console.log(data[0].name);\\n console.log(data[0].id);\\n for (var i = 0; i \u003c data.length; i++) {\\n $('#origin').append(`\u003coption value=\\\"${data[i].id}\\\"\u003e${data[i].name}\u003c/option\u003e`);\\n $('#stopping').append(`\u003coption value=\\\"${data[i].id}\\\"\u003e${data[i].name}\u003c/option\u003e`);\\n }\\n});\\n\\n$('#search').click(function() {\\n var originID = $('#origin').val();\\n //console.log(originID);\\n var stoppingID = $('#stopping').val();\\n var dateNow = $('#date').val();\\n var url = `https://us-central1-orangeapple-d1f13.cloudfunctions.net/dailyTimetable?start=${originID}\u0026stop=${stoppingID}\u0026date=${dateNow}`;\\n console.log(url.length);\\n console.log(url);\\n\\n $.get(url, function(data) {\\n console.log(data.length);\\n console.log(data[0].DepartureTime);\\n console.log(data[0].ArrivalTime);\\n for (var i = 0; i \u003c data.length; i++) {\\n $(`tbody`).append(`\\n \u003ctr\u003e\\n \u003ctd\u003e#\u003c/td\u003e\\n \u003ctd\u003e${data[i].TrainNo}\u003c/td\u003e\\n \u003ctd\u003e${data[i].DepartureTime}\u003c/td\u003e\\n \u003ctd\u003e${data[i].ArrivalTime}\u003c/td\u003e\\n \u003c/tr\u003e\\n `);\\n }\\n });\\n\\n});\"}","created_at":"2019-12-28T10:05:02.040+08:00","updated_at":"2019-12-28T11:49:41.613+08:00","name":"高鐵APP 講師完整版 副本","language":"web","screenshot":{"url":"https://cdn2.koding.school/uploads/project/screenshot/116593/1e89d970f20a0607baada476da972829.jpg"},"parent_id":25193,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":71,"hashid":"vngs44jy","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":1997803,"file_name":"bg.png","project_id":116593,"asset_id":61724,"created_at":"2019-12-28T10:05:02.045+08:00","updated_at":"2019-12-28T10:05:02.045+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦