Stacja pogodowa
// 1) $.each(data[0], function(i, val){ //alert(i + ': ' + val) if ((i == 'Wilgotnosc' || i == 'Kwsred' || i == 'Dw0av') && val != null) val = parseInt(val); if(i == 'date') val = val.substr(0,16); if (val == null) $('span#' + i+'').text('---'); else $('span#' + i+'').text(val); if(i == 'Vwsred' || i == 'Vw0av') { $('#Vwsred_wind').text(val); } if (i == 'Warunki') { val = parseInt(val); $('#' + i).text(roadcond[val]); } else if (i == 'Kwsred' || i == 'Dw0av') { if (val != null) { $('#img_' + i + '_big').attr('src', 'wind_arrow_red2.png'); angle = parseInt(val); //alert(angle); var rot = $('#img_Kwsred_big').rotate({ maxAngle: 360, minAngle: 0, angle: angle }); } else { $('#img_' + i + '_big').attr('src', 'wind_center.png'); } } else { val_prev = parseFloat(data[1][i]); val_curr = parseFloat(val); res = 'to_null'; if (val_prev > val_curr) res = 'to_down'; if (val_prev < val_curr) res = 'to_up'; $('#img_' + i).attr('src', res + '.png'); } }); setTimeout(function(){ $('#imgwait').hide() }, 800); }; plotAll(); setTimeout("getDataDB()", (60000)); }; jQuery.fn.easytooltip = function(id) { if(!document.getElementById('tool_tip')) { $("body").append('