diff --git a/application/views/mobile_first/ch-weather-forecast.php b/application/views/mobile_first/ch-weather-forecast.php index c5f8692f..e38cff33 100644 --- a/application/views/mobile_first/ch-weather-forecast.php +++ b/application/views/mobile_first/ch-weather-forecast.php @@ -8,7 +8,7 @@

...

...

+ src="https://data.chinahighlights.com/image/weather/icon-weather/50d.png" />

...

Humidity: ...

Wind: ...

@@ -20,7 +20,7 @@

...

...

+ src="https://data.chinahighlights.com/image/weather/icon-weather/50d.png" />

...

Humidity: ...

Wind: ...

@@ -32,7 +32,7 @@

...

...

+ src="https://data.chinahighlights.com/image/weather/icon-weather/50d.png" />

...

Humidity: ...

Wind: ...

@@ -44,7 +44,7 @@

...

...

+ src="https://data.chinahighlights.com/image/weather/icon-weather/50d.png" />

...

Humidity: ...

Wind: ...

@@ -56,7 +56,7 @@

...

...

+ src="https://data.chinahighlights.com/image/weather/icon-weather/50d.png" />

...

Humidity: ...

Wind: ...

@@ -68,7 +68,7 @@

...

...

+ src="https://data.chinahighlights.com/image/weather/icon-weather/50d.png" />

...

Humidity: ...

Wind: ...

@@ -103,7 +103,7 @@ fetch(weatherUrl) let todayDate = new Date(json.dt * 1000); document.getElementById('todayDate').innerText = formatDate(todayDate); document.getElementById('todayTemperature').innerText = Math.round(json.main.temp) + '°C'; - document.getElementById('todayIcon').src = 'http://openweathermap.org/img/wn/' + json.weather[0].icon + '.png'; + document.getElementById('todayIcon').src = 'https://data.chinahighlights.com/image/weather/icon-weather/' + json.weather[0].icon + '.png'; document.getElementById('todayCondition').innerText = json.weather[0].main; document.getElementById('todayHumidity').innerText = 'Humidity: ' + json.main.humidity + '%'; document.getElementById('todayWind').innerText = 'Wind: ' + Math.round(json.wind.speed * 3.6) + 'km/h'; @@ -154,7 +154,7 @@ fetch(forecastUrl) document.getElementById('forecastDate' + number).innerText = formatDate(currentDate); document.getElementById('forecastTemperature' + number).innerText = Math.round(firstDay.main.temp) + '~' + Math.round(lastDay.main.temp) + '°C'; - document.getElementById('forecastIcon' + number).src = 'http://openweathermap.org/img/wn/' + firstDay.weather[0].icon + '.png'; + document.getElementById('forecastIcon' + number).src = 'https://data.chinahighlights.com/image/weather/icon-weather/' + firstDay.weather[0].icon + '.png'; document.getElementById('forecastCondition' + number).innerText = firstDay.weather[0].main; document.getElementById('forecastHumidity' + number).innerText = 'Humidity: ' + firstDay.main.humidity + '%'; document.getElementById('forecastWind' + number).innerText = 'Wind: ' + Math.round(firstDay.wind.speed * 3.6) + 'km/h';