Optimize size of images and remove screenshot folder from release script
|
@ -34,7 +34,8 @@ rm -Rf \
|
|||
weather/package.json \
|
||||
weather/.ci \
|
||||
weather/.tx \
|
||||
weather/doc
|
||||
weather/doc \
|
||||
weather/screenshots
|
||||
|
||||
tar cfz weather-${RELEASE_VERSION}.tar.gz weather
|
||||
echo "Release version "${RELEASE_VERSION}" is now ready."
|
||||
|
|
After Width: | Height: | Size: 2.0 MiB |
BIN
img/fog.png
Before Width: | Height: | Size: 4.7 MiB |
After Width: | Height: | Size: 1.2 MiB |
BIN
img/mist.png
Before Width: | Height: | Size: 2.7 MiB |
BIN
img/sand.jpg
Before Width: | Height: | Size: 7.9 MiB After Width: | Height: | Size: 3.0 MiB |
After Width: | Height: | Size: 1.1 MiB |
BIN
img/sun.png
Before Width: | Height: | Size: 2.2 MiB |
After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 2.3 MiB |
10
js/app.js
|
@ -39,7 +39,7 @@ app.controller('WeatherController', ['$scope', '$interval', '$timeout', '$compil
|
|||
$scope.homeCity = '';
|
||||
|
||||
$scope.imageMapper = {
|
||||
"Clear": "sun.png",
|
||||
"Clear": "sun.jpg",
|
||||
"Clouds": "clouds.png",
|
||||
"Drizzle": "drizzle.jpg",
|
||||
"Smoke": "todo.png",
|
||||
|
@ -48,12 +48,12 @@ app.controller('WeatherController', ['$scope', '$interval', '$timeout', '$compil
|
|||
"Ash": "todo.png",
|
||||
"Squall": "todo.png",
|
||||
"Tornado": "tornado.jpg",
|
||||
"Haze": "mist.png",
|
||||
"Mist": "mist.png",
|
||||
"Haze": "mist.jpg",
|
||||
"Mist": "mist.jpg",
|
||||
"Rain": "rain.jpg",
|
||||
"Snow": "snow.png",
|
||||
"Thunderstorm": "thunderstorm.png",
|
||||
"Fog": "fog.png",
|
||||
"Thunderstorm": "thunderstorm.jpg",
|
||||
"Fog": "fog.jpg",
|
||||
}
|
||||
|
||||
// Reload weather information each minute
|
||||
|
|