Update app.js

This commit is contained in:
Justin
2022-06-11 13:45:10 +08:00
committed by GitHub
parent 51ecd370cb
commit b501206008

View File

@@ -1618,7 +1618,6 @@ function showDiv() {
}
function showDivTwo() {
document.getElementById('wifi-message').style.display = "block";
@@ -1626,3 +1625,25 @@ function showDivTwo() {
document.getElementById('wifi-message').style.display = "none";
}, 30000);
}
// Display message asking for restart of ticker when new API key added for weather
function showWeatherP() {
if(document.getElementById("api-key1").value==="") {
document.getElementById('weather-api-p').style.display = "none";
}
else if (document.getElementById("api-key1").value==="Weather API Key") {
document.getElementById('weather-api-p').style.display = "none";
}
else {
document.getElementById('weather-api-p').style.display = "block"
}
}