if (typeof setWidgetData_519910031 == 'function') setWidgetData_519910031({ "results": [ { "widget_type":"8", "widget_id":"519910031", "html_code":"
" } ] }); function clock_519910031() { 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_8_519910031'); 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=2&domid=581&type=8&id=519910031&city_id=&wlangid=3&mode=1&details=0&background=rgba(0,0,0,0.6)&color=ffffff&add_background=ffffff&add_color=ffffff&head_color=ffffff&border=0&transparent=1&no_timer=1&rand="+Math.random()); document.getElementsByTagName("head")[0].appendChild(js_file); //alert(js_file.getAttribute("src")); } function sec_to_min_519910031() { sec_519910031 = sec_519910031 + 1; if (sec_519910031 >= 60) { sec_519910031 = 0; clock_519910031(); } } function rclock_519910031() { var deg = sec_519910031 * 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);"; } function timeSec_519910031(){ } /*if (clock_timer != -1) clearInterval(clock_timer); clock_timer = setInterval("clock()", 60*1000);*/ if (typeof setWidgetData_519910031 == 'function') if (clock_timer_519910031 == -1) { var sec_519910031 = 11; clock_timer_519910031 = setInterval("clock_519910031()", 60*1000); } if (typeof setWidgetData == 'function') setWidgetData({ "results": [ { "widget_type":"8", "widget_id":"519910031", "html_code":" " } ] }); function clock() { var is_need_to_reload = false; var cur_time_span = document.getElementById('time_of_8_519910031'); 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=8&id=519910031&city_id=&wlangid=3&mode=1&details=0&background=rgba(0,0,0,0.6)&color=ffffff&add_background=ffffff&add_color=ffffff&head_color=ffffff&border=0&transparent=1&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) { clock_timer = setInterval("clock()", 60*1000); }