Skip to content

Commit

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

Expand Down Expand Up @@ -126,16 +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";
inputProvinsi.style.border = "1px solid red";
inputWisata.style.border = "1px solid 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";
inputProvinsi.style.border = "1px solid white";
inputWisata.style.border = "1px solid white";
}
}

Expand Down

0 comments on commit bf1d987

Please sign in to comment.