Skip to content

Commit

Permalink
feat: 출발 날짜 및 시간 입력
Browse files Browse the repository at this point in the history
  • Loading branch information
hdddhdd committed Nov 12, 2023
1 parent 30c561b commit 3d8da78
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/html/initial.html
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,9 @@ <h1>출발지와 목적지를 입력해주세요.</h1><br>

<label for="startY">도착지 입력</label>
<input type="text" id="startY" name="startY" placeholder="도착지를 입력하세요.">
<br><br>
<label for="startDateTime">출발날짜 및 시간 (ex.202311122121)</label>
<input type="text" id="startDateTime" name="startDateTime" placeholder="출발날짜와 시간을 입력하세요.">


<button onclick="convertAddresses()">Convert Addresses</button>
Expand Down Expand Up @@ -786,6 +789,7 @@ <h1 class="footer-logo">
async function convertAddresses() {
const startX = document.getElementById('startX').value;
const startY = document.getElementById('startY').value;
const startDateTime = document.getElementById('startDateTime').value;

try {
const resultStart = await callTMapAPI(startX);
Expand Down Expand Up @@ -817,6 +821,7 @@ <h1 class="footer-logo">
startY: resultStart.latitude,
endX: resultEnd.longitude,
endY: resultEnd.latitude,
searchDttm: startDateTime,
}),
})
).text();
Expand Down

0 comments on commit 3d8da78

Please sign in to comment.