diff --git a/static/app.js b/static/app.js index b0e88c4..15b4503 100755 --- a/static/app.js +++ b/static/app.js @@ -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" + } + + } + +