Skip to content

Commit

Permalink
update border
Browse files Browse the repository at this point in the history
  • Loading branch information
DevanoAlif22 committed May 28, 2024
1 parent ca65f20 commit 1fc66d2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions public/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ function showResponseWisata(response) {
document.getElementById("getWisata").innerText = "Close";
document.getElementById("getWisata").style.backgroundColor = "red";
inputan.disabled = true;
inputan.style.border = "red";
} else {
responseElement.style.display = "none";
document.getElementById("getWisata").innerText = "GET";
document.getElementById("getWisata").style.backgroundColor = "#009c60";
inputan.disabled = false;
inputan.style.border = "white";
}
}

Expand Down Expand Up @@ -124,12 +126,16 @@ function showResponseDetail(response) {
document.getElementById("getDetail").style.backgroundColor = "red";
inputProvinsi.disabled = true;
inputWisata.disabled = true;
inputProvinsi.style.border = "red";
inputWisata.style.border = "red";
} else {
responseElement.style.display = "none";
document.getElementById("getDetail").innerText = "GET";
document.getElementById("getDetail").style.backgroundColor = "#009c60";
inputProvinsi.disabled = false;
inputWisata.disabled = false;
inputProvinsi.style.border = "white";
inputWisata.style.border = "white";
}
}

Expand Down

0 comments on commit 1fc66d2

Please sign in to comment.