From 04421a592bfae3be8033a6a8a9845e18c400bbf1 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Thu, 3 Nov 2022 14:47:38 -0500 Subject: [PATCH] Change order of display for long and short url --- src/main/resources/public/index.html | 2 +- src/main/resources/public/js/main.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/resources/public/index.html b/src/main/resources/public/index.html index bacd5ab..2e68f00 100644 --- a/src/main/resources/public/index.html +++ b/src/main/resources/public/index.html @@ -52,8 +52,8 @@ - + diff --git a/src/main/resources/public/js/main.js b/src/main/resources/public/js/main.js index 473ecad..729ca93 100644 --- a/src/main/resources/public/js/main.js +++ b/src/main/resources/public/js/main.js @@ -25,8 +25,8 @@ const TR = (row) => { const shortTD = TD(A_INT(row.short)); const btn = deleteButton(row.short); - tr.appendChild(longTD); tr.appendChild(shortTD); + tr.appendChild(longTD); tr.appendChild(btn); return tr; @@ -67,12 +67,12 @@ const submitForm = () => { method: "POST", body: `${longUrl.value};${shortUrl.value}` }) - .then(_ => { - longUrl.value = ""; - shortUrl.value = ""; + .then(_ => { + longUrl.value = ""; + shortUrl.value = ""; - refreshData(); - }); + refreshData(); + }); };
Long URL Short urlLong URL