diff --git a/scripts/fonctions.js b/scripts/fonctions.js index 26ef43e..c509661 100644 --- a/scripts/fonctions.js +++ b/scripts/fonctions.js @@ -13,7 +13,7 @@ function weatherRequest(url,toDo) { case 'time': $('.results').html("La date et l'heure de " + city + " : " + showDateTimeValue); $("#cityName, #submitWeatherRequest").click(function() { - document.location.replace("../../function-views/weatherRequest.php"); + document.location.replace("../../views/function-views/weatherRequest.php"); }); break; case 'weather': @@ -21,14 +21,14 @@ function weatherRequest(url,toDo) { { $('.results').html(`🌎 Position : ${city}, RU
⏰ Date et heure : ${showDateTimeValue}
☁️ Météo : ${capitalize(json.weather[0].description)}
🌡️ Température : ${json.main.temp} °C
💧 Humidité : ${json.main.humidity}%
`); $("#cityName, #submitWeatherRequest").click(function() { - document.location.replace("../../function-views/weatherRequest.php"); + document.location.replace("../../views/function-views/weatherRequest.php"); }); } else { $('.results').html(`🌎 Position : ${city}, ${json.sys.country}
⏰ Date et heure : ${showDateTimeValue}
☁️ Météo : ${capitalize(json.weather[0].description)}
🌡️ Température : ${json.main.temp} °C
💧 Humidité : ${json.main.humidity}%
`); $("#cityName, #submitWeatherRequest").click(function() { - document.location.replace("../../function-views/weatherRequest.php"); + document.location.replace("../../views/function-views/weatherRequest.php"); }); } break;