if (typeof setWidgetData_1697610058 == 'function') setWidgetData_1697610058({ "results": [ { "widget_type":"19", "widget_id":"1697610058", "html_code":"
" } ] }); function clock_1697610058() { 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('min_1697610058'); 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; } } } } 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=589&type=19&id=1697610058&city_id=&wlangid=20&mode=2&details=0&background=ffffff&color=363636&add_background=ffffff&add_color=333333&head_color=ffffff&border=0&transparent=0&no_timer=1&rand="+Math.random()); document.getElementsByTagName("head")[0].appendChild(js_file); //alert(js_file.getAttribute("src")); } function sec_to_min_1697610058() { sec_1697610058 = sec_1697610058 + 1; if (sec_1697610058 >= 60) { sec_1697610058 = 0; clock_1697610058(); } } function rclock_1697610058() { var deg = sec_1697610058 * 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_1697610058'); 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_1697610058(){ } /*if (clock_timer != -1) clearInterval(clock_timer); clock_timer = setInterval("clock()", 60*1000);*/ if (typeof setWidgetData_1697610058 == 'function') if (clock_timer_1697610058 == -1) { var sec_1697610058 = 54; setInterval("sec_to_min_1697610058()", 1000); setInterval("rclock_1697610058()", 1000); } if (typeof setWidgetData == 'function') setWidgetData({ "results": [ { "widget_type":"19", "widget_id":"1697610058", "html_code":" " } ] }); function clock() { var is_need_to_reload = false; var cur_time_span = document.getElementById('min_1697610058'); 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; } } } } 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=19&id=1697610058&city_id=&wlangid=20&mode=2&details=0&background=ffffff&color=363636&add_background=ffffff&add_color=333333&head_color=ffffff&border=0&transparent=0&no_timer=1&rand="+Math.random()); document.getElementsByTagName("head")[0].appendChild(js_file); //alert(js_file.getAttribute("src")); } if (typeof setWidgetData == 'function') if (clock_timer == -1) { }