if (typeof setWidgetData_0 == 'function') setWidgetData_0({ "results": [ { "widget_type":"100", "widget_id":"0", "html_code":"
" } , { "widget_type":"101", "widget_id":"1", "html_code":" " } , { "widget_type":"11", "widget_id":"2", "html_code":" " } , { "widget_type":"4", "widget_id":"3", "html_code":" " } , { "widget_type":"7", "widget_id":"4", "html_code":" " } ] }); function clock_0() { if (typeof refresh_time_widgets == 'function' && document.getElementById('widget_type')) { refresh_time_widgets(); return; } var is_need_to_reload = false; var cur_time_span = document.getElementById('time_of_100_0'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('time_of_101_1_11'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('time_of_101_1_10303'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('time_of_101_1_10764'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('time_of_101_1_26184'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('time_of_101_1_26466'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('time_of_101_1_26478'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('time_of_101_1_306969'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('time_of_101_1_14295'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('min_2'); if (cur_time_span) { var cur_time = cur_time_span.style.cssText; if (cur_time.length > 0) { var pos = cur_time.indexOf("rotate("); var pos1 = cur_time.indexOf("deg);"); if (pos != -1 && pos1 != -1) { var deg = parseInt(cur_time.substr(pos+7,pos1-pos-7)); deg += 6; if (deg >= 360) deg = 0; if (deg % 72 == 0) is_need_to_reload = true; else { cur_time = "-moz-transform: rotate(" + deg +"deg); -webkit-transform: rotate(" + deg + "deg); -o-transform: rotate(" + deg + "deg);"; cur_time_span.style.cssText = cur_time; } } } } var cur_time_span = document.getElementById('time_of_4_3'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('time_of_7_4'); if (cur_time_span) { var cur_time = cur_time_span.className; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.className = cur_time; } } } if (!is_need_to_reload) return; var jjs = document.getElementById("time_js_id"); if (jjs) document.getElementsByTagName("head")[0].removeChild(jjs); var js_file=document.createElement("script"); js_file.setAttribute("id", "time_js_id"); js_file.setAttribute("type","text/javascript"); js_file.setAttribute("charset","UTF-8"); js_file.setAttribute("src","https://widgets.booked.net/?page=get_time_info&ver=0&domid=588&type=100&city_id=15825&wlangid=17&mode=1&no_timer=1&link_type=0&rand="+Math.random()); document.getElementsByTagName("head")[0].appendChild(js_file); //alert(js_file.getAttribute("src")); } function sec_to_min_0() { sec_0 = sec_0 + 1; if (sec_0 >= 60) { sec_0 = 0; clock_0(); } } function rclock_0() { var deg = sec_0 * 6; var deg_rad = deg * Math.PI * 2 / 360; var cur_time = "-moz-transform: rotate(" + deg +"deg); -webkit-transform: rotate(" + deg + "deg); -o-transform: rotate(" + deg + "deg);"; var d = document.getElementById('sec_2'); if (d) { d.style.cssText = cur_time; } //var s = {w:d.offsetWidth, h:d.offsetHeight}; //d.style.cssText = d.style.cssText + "; margin-left: " + -Math.round((s.w-so.w)/2) + "px; margin-top: " + -Math.round((s.h-so.h)/2) + "px;"; //cssSandpaper.setTransform(d, "rotate(" + deg + ")deg"); } function timeSec_0(){ } /*if (clock_timer != -1) clearInterval(clock_timer); clock_timer = setInterval("clock()", 60*1000);*/ if (typeof setWidgetData_0 == 'function') if (clock_timer_0 == -1) { var sec_0 = 05; setInterval("sec_to_min_0()", 1000); setInterval("rclock_0()", 1000); } if (typeof setWidgetData == 'function') setWidgetData({ "results": [ { "widget_type":"100", "widget_id":"0", "html_code":" " } , { "widget_type":"101", "widget_id":"1", "html_code":" " } , { "widget_type":"11", "widget_id":"2", "html_code":" " } , { "widget_type":"4", "widget_id":"3", "html_code":" " } , { "widget_type":"7", "widget_id":"4", "html_code":" " } ] }); function clock() { var is_need_to_reload = false; var cur_time_span = document.getElementById('time_of_100_0'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('time_of_101_1_11'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('time_of_101_1_10303'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('time_of_101_1_10764'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('time_of_101_1_26184'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('time_of_101_1_26466'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('time_of_101_1_26478'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('time_of_101_1_306969'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('time_of_101_1_14295'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('min_2'); if (cur_time_span) { var cur_time = cur_time_span.style.cssText; if (cur_time.length > 0) { var pos = cur_time.indexOf("rotate("); var pos1 = cur_time.indexOf("deg);"); if (pos != -1 && pos1 != -1) { var deg = parseInt(cur_time.substr(pos+7,pos1-pos-7)); deg += 6; if (deg >= 360) deg = 0; if (deg % 72 == 0) is_need_to_reload = true; else { cur_time = "-moz-transform: rotate(" + deg +"deg); -webkit-transform: rotate(" + deg + "deg); -o-transform: rotate(" + deg + "deg);"; cur_time_span.style.cssText = cur_time; } } } } var cur_time_span = document.getElementById('time_of_4_3'); if (cur_time_span) { var cur_time = cur_time_span.innerHTML; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.innerHTML = cur_time; } } } var cur_time_span = document.getElementById('time_of_7_4'); if (cur_time_span) { var cur_time = cur_time_span.className; if (cur_time.length > 0) { var m = cur_time.charAt(cur_time.length-1); if (m == '9') is_need_to_reload = true; else { m = parseInt(m)+1; cur_time = cur_time.substr(0,cur_time.length-1) + m; cur_time_span.className = cur_time; } } } if (!is_need_to_reload) return; if (typeof refresh_time_widgets == 'function' && document.getElementById('widget_type')) { refresh_time_widgets(); return; } var jjs = document.getElementById("time_js_id"); if (jjs) document.getElementsByTagName("head")[0].removeChild(jjs); var js_file=document.createElement("script"); js_file.setAttribute("id", "time_js_id"); js_file.setAttribute("type","text/javascript"); js_file.setAttribute("charset","UTF-8"); js_file.setAttribute("src","https://widgets.booked.net/?page=get_time_info&type=100&city_id=15825&wlangid=17&mode=1&no_timer=1&link_type=0&rand="+Math.random()); document.getElementsByTagName("head")[0].appendChild(js_file); //alert(js_file.getAttribute("src")); } if (typeof setWidgetData == 'function') if (clock_timer == -1) { clock_timer = setInterval("clock()", 60*1000); } setInterval("clock()", 60*1000);