mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-11-22 17:26:45 +00:00
Change order of display for long and short url
This commit is contained in:
parent
25c12960f3
commit
04421a592b
@ -52,8 +52,8 @@
|
|||||||
<table class="pure-table">
|
<table class="pure-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Long URL</td>
|
|
||||||
<td>Short url</td>
|
<td>Short url</td>
|
||||||
|
<td>Long URL</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -25,8 +25,8 @@ const TR = (row) => {
|
|||||||
const shortTD = TD(A_INT(row.short));
|
const shortTD = TD(A_INT(row.short));
|
||||||
const btn = deleteButton(row.short);
|
const btn = deleteButton(row.short);
|
||||||
|
|
||||||
tr.appendChild(longTD);
|
|
||||||
tr.appendChild(shortTD);
|
tr.appendChild(shortTD);
|
||||||
|
tr.appendChild(longTD);
|
||||||
tr.appendChild(btn);
|
tr.appendChild(btn);
|
||||||
|
|
||||||
return tr;
|
return tr;
|
||||||
@ -67,12 +67,12 @@ const submitForm = () => {
|
|||||||
method: "POST",
|
method: "POST",
|
||||||
body: `${longUrl.value};${shortUrl.value}`
|
body: `${longUrl.value};${shortUrl.value}`
|
||||||
})
|
})
|
||||||
.then(_ => {
|
.then(_ => {
|
||||||
longUrl.value = "";
|
longUrl.value = "";
|
||||||
shortUrl.value = "";
|
shortUrl.value = "";
|
||||||
|
|
||||||
refreshData();
|
refreshData();
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user