assets/js/script.js
// [Open Weather] Weather data for coordinates
[Open Weather] Weather data for coordinates
[ Open Weather ] Weather data for coordinates
function weatherLookup (weatherUrl) {
    fetch(weatherUrl)
    .then(res => res.json())
    .then(data => localStorage.setItem('weather', JSON.stringify(data))); 
    window.location.href = "today.html";
}
function weatherLookup ( weatherUrl ) { fetch ( weatherUrl ) . then ( res => res . json ( ) ) . then ( data => localStorage . setItem ( 'weather' , JSON . stringify ( data ) ) ) ; window . location . href = "today.html" ; }
[Open Weather] Weather data for coordinates
[ Open Weather ] Weather data for coordinates
// Store the returned object containing the weather data in localStorage