function b(a,f){document.getElementById(a).innerHTML=f;} function is_b(a){ return document.getElementById(a);} var meteoprogc_err_1308736569 = "Error. Block is used without permission. Contact www.meteoprog.com"; function meteoprog_u_set_error_1308736569(str){ meteoprogc_err_1308736569 = str; valid_1308736569(); } function meteoprog_u_1308736569(a){ //alert(JSON.stringify(a)); var suff = (a.suff_id)? '_'+a.suff_id : ''; //a.status = "htmlErr"; if(a.status=="ok"){ var div = document.querySelector('[id^=meteoprogc_1308736569]'); var k = div.id; // var k = "meteoprogc_1308736569_"+a.city_url; if(is_b(k+"_temp"+suff)) b(k+"_temp"+suff,a.tempr); if(is_b(k+"_press"+suff)) b(k+"_press"+suff,a.pressure); if(is_b(k+"_hum"+suff)) b(k+"_hum"+suff,a.humidity); if(is_b(k+"_wshort"+suff)) b(k+"_wshort"+suff,a.wind_short); if(is_b(k+"_wspeed"+suff)) b(k+"_wspeed"+suff,a.wind); if(is_b(k+"_dtday"+suff)) b(k+"_dtday"+suff,a.dtday); if(is_b(k+"_dttime"+suff)) b(k+"_dttime"+suff,a.dttime); if(is_b(k+"_dtmonth"+suff)) b(k+"_dtmonth"+suff,a.date_month); if(is_b(k+"_icon"+suff)) document.getElementById(k+"_icon"+suff).src=a.icon; if(is_b(k)) document.getElementById(k).style.display="block"; } else if(a.status=="htmlErr") { var msg_id = "meteoprog_1308736569"; if(document.getElementById(msg_id)) { document.getElementById(msg_id).className="meteoprog_1308736569_error"; b(msg_id,"
"+meteoprogc_err_1308736569+"
"); } } } function meteoprog_go() { if(location.protocol.substr(0,4)=="http" && location.href.match("^https://www.meteoprog.com") == null) { //if(1) { // var u = "https://www.meteoprog.com"+"/informers/stat.php?type="+meteoprog_widget.type+'&act=click'; // var m_img = new Image(); // m_img.src = u; } } function meteoprog_go_view() { if(location.protocol.substr(0,4)=="http" && location.href.match("^https://www.meteoprog.com") == null) { var u = "https://www.meteoprog.com"+"/informers/stat.php?type="+meteoprog_widget.type+'&act=view'; var m_img = new Image(); m_img.src = u; } } function valid_1308736569(){ d=document.getElementById("meteoprog_1308736569"); a=d.getElementsByTagName("a"); for(i=0;i < a.length;i++){ if(a[i].getAttribute("href") == null) continue; //if(a[i].style.display=="none"){e=new Err;e.et("html");meteoprog_u_1308736569(e);return false} //alert(a[i].getAttribute("href")); // if((a[i].style.display=="none") || (!a[i].getAttribute("href").match("^https://www.meteoprog.com"))){meteoprog_u_1308736569(new function(){this.status="htmlErr"});return false} if((a[i].style.display=="none")){meteoprog_u_1308736569(new function(){this.status="htmlErr"});return false} a[i].setAttribute('onmousedown', 'meteoprog_go()'); } if(a.length<1){meteoprog_u_1308736569(new function(){this.status="htmlErr"});return false;} else return true; } (function(){ //var site = escape(location.href); if(valid_1308736569()){ var a=document.createElement("script");a.type="text/javascript";a.async=true;a.src="https://www.meteoprog.com"+meteoprog_widget.name;d.appendChild(a); // meteoprog_go_view(); } })();