yandexweather
Advanced tools
Comparing version 0.0.5 to 0.0.6
12
index.js
@@ -23,3 +23,3 @@ 'use strict'; | ||
temp: $('.current-weather__thermometer_type_after').eq(0).text(), | ||
icon: $('.current-weather__col_type_after').eq(0).children('i').attr('class').split(' ')[1] | ||
icon: getIcon($('.current-weather__col_type_after').eq(0).children('i').attr('class').split(' ')[1]) | ||
}, | ||
@@ -30,3 +30,3 @@ | ||
temp: $('.current-weather__thermometer_type_after').eq(1).text(), | ||
icon: $('.current-weather__col_type_after').eq(1).children('i').attr('class').split(' ')[1] | ||
icon: getIcon($('.current-weather__col_type_after').eq(1).children('i').attr('class').split(' ')[1]) | ||
}, | ||
@@ -75,3 +75,3 @@ | ||
windDirection: morning.eq(5).children('div').children('abbr').text(), | ||
windSpeed: morning.eq(5).children('div').children('span').text() + ' m/s', | ||
windSpeed: morning.eq(5).children('div').children('span').text(), | ||
}, | ||
@@ -85,3 +85,3 @@ | ||
windDirection: noon.eq(5).children('div').children('abbr').text(), | ||
windSpeed: noon.eq(5).children('div').children('span').text() + ' m/s', | ||
windSpeed: noon.eq(5).children('div').children('span').text(), | ||
}, | ||
@@ -95,3 +95,3 @@ | ||
windDirection: evening.eq(5).children('div').children('abbr').text(), | ||
windSpeed: evening.eq(5).children('div').children('span').text() + ' m/s', | ||
windSpeed: evening.eq(5).children('div').children('span').text(), | ||
}, | ||
@@ -105,3 +105,3 @@ | ||
windDirection: night.eq(5).children('div').children('abbr').text(), | ||
windSpeed: night.eq(5).children('div').children('span').text() + ' m/s', | ||
windSpeed: night.eq(5).children('div').children('span').text(), | ||
}, | ||
@@ -108,0 +108,0 @@ |
{ | ||
"name": "yandexweather", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Yandex Weather API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
35675