{"id":22309,"student_id":10,"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 STATION_API = 'https://us-central1-orangeapple-d1f13.cloudfunctions.net/stations';\\n\\n$.get(STATION_API, function (data) {\\n for (var i=0; i\u003cdata.length; i++) {\\n $('#origin, #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 var stoppingID = $('#stopping').val();\\n var date = $('#date').val();\\n var url = `https://us-central1-orangeapple-d1f13.cloudfunctions.net/dailyTimetable?start=${originID}\u0026stop=${stoppingID}\u0026date=${date}`;\\n $.get(url, function (data) {\\n console.log(data)\\n $('tbody').html('');\\n for (var i=0; i\u003cdata.length; i++) {\\n $('tbody').append(`\u003ctr\u003e\\n \u003ctd\u003e${i + 1}\u003c/td\u003e\\n \u003ctd\u003e${data[i].TrainNo}\u003c/td\u003e\\n \u003ctd\u003e${data[i].ArrivalTime}\u003c/td\u003e\\n \u003ctd\u003e${data[i].DepartureTime}\u003c/td\u003e\\n \u003c/tr\u003e`);\\n }\\n });\\n});\"}","created_at":"2018-02-20T22:40:21.006+08:00","updated_at":"2020-08-05T10:32:43.864+08:00","name":"高鐵APP 講師完整版","language":"web","screenshot":{"url":"https://cdn7.koding.school/uploads/project/screenshot/22309/8c4331e331c2c8687c831e824e57e785.jpg"},"parent_id":null,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":345,"hashid":"882s4v95","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":471703,"file_name":"bg.png","project_id":22309,"asset_id":46641,"created_at":"2018-03-20T10:18:27.142+08:00","updated_at":"2018-03-20T10:18:27.142+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
前往網站頁面
1:1:1
1:1
full
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦