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 @@
- Long URL |
Short url |
+ Long URL |
|
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();
+ });
};