function update() {
                $('.update').addClass('anim');
                var city = info[cities[current].name];

                $('.place').text(city.name + ',' + city.country);
                $('.temp span').html(city.temp + '<sup>o</sup>C');
                $('.main').text(city.weather);
                $('.des').text(city.des);
                $('.wind span').html(city.wind + 'm/s');
                $('.humidity span').html(city.hum + '%');
                $('.hour').css('transform', 'rotate(' + cities[current].hours + 'deg)');
                $('.min').css('transform', 'rotate(' + cities[current].minoutes + 'deg)');
                current = (current + 1) % 18;
                setTimeout(update, 6000);
            }
//update all information for each place
update all information for each place
update all information for each place
function update() {
                $('.update').addClass('anim');
                var city = info[cities[current].name];
                $('.place').text(city.name + ',' + city.country);
                $('.temp span').html(city.temp + '<sup>o</sup>C');
                $('.main').text(city.weather);
                $('.des').text(city.des);
                $('.wind span').html(city.wind + 'm/s');
                $('.humidity span').html(city.hum + '%');
                $('.hour').css('transform', 'rotate(' + cities[current].hours + 'deg)');
                $('.min').css('transform', 'rotate(' + cities[current].minoutes + 'deg)');
                current = (current + 1) % 18;
                setTimeout(update, 6000);
            }
function update ( ) { $ ( '.update' ) . addClass ( 'anim' ) ; var city = info [ cities [ current ] . name ] ; $ ( '.place' ) . text ( city . name + ',' + city . country ) ; $ ( '.temp span' ) . html ( city . temp + '<sup>o</sup>C' ) ; $ ( '.main' ) . text ( city . weather ) ; $ ( '.des' ) . text ( city . des ) ; $ ( '.wind span' ) . html ( city . wind + 'm/s' ) ; $ ( '.humidity span' ) . html ( city . hum + '%' ) ; $ ( '.hour' ) . css ( 'transform' , 'rotate(' + cities [ current ] . hours + 'deg)' ) ; $ ( '.min' ) . css ( 'transform' , 'rotate(' + cities [ current ] . minoutes + 'deg)' ) ; current = ( current + 1 ) % 18 ; setTimeout ( update , 6000 ) ; }
update all information for each place
update all information for each place