Now hiding target on submit
This commit is contained in:
parent
4e2a01d3dd
commit
9d0e64ff24
2
main.js
2
main.js
|
@ -39,6 +39,7 @@ function createUrl() {
|
|||
.then(res => {
|
||||
document.getElementById("shorturl").innerText = res.url;
|
||||
document.getElementById("shorturl_container").className = "";
|
||||
document.getElementById("target_container").className = "hidden";
|
||||
document.getElementById("shortcode_container").className = "hidden";
|
||||
document.getElementById("create").classList.add("hidden");
|
||||
document.getElementById("reset").classList.remove("hidden");
|
||||
|
@ -50,6 +51,7 @@ function createUrl() {
|
|||
document.getElementById("reset").onclick = reset;
|
||||
function reset() {
|
||||
document.getElementById("shorturl").innerText = "";
|
||||
document.getElementById("target_container").className = "";
|
||||
document.getElementById("shortcode_container").className = "";
|
||||
document.getElementById("shorturl_container").className = "hidden";
|
||||
document.getElementById("reset").classList.add("hidden");
|
||||
|
|
Loading…
Reference in New Issue