if (typeof setWidgetData_2105653453 == 'function') setWidgetData_2105653453({ "results": [ { "widget_type":"19", "widget_id":"2105653453", "html_code":"
PM
Boston
" } ] }); function clock_2105653453() { 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_2105653453'); 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","/?page=get_time_info&ver=2&domid=209&type=19&id=2105653453&city_id=60&wlangid=1&mode=2&details=0&background=ffffff&color=000000&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 rclock_2105653453() { sec_2105653453 = sec_2105653453 + 1; if (sec_2105653453 >= 60) { sec_2105653453 = 0; clock_2105653453(); } var deg = sec_2105653453 * 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_2105653453'); 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"); //alert(cur_time); } /*if (clock_timer != -1) clearInterval(clock_timer); clock_timer = setInterval("clock()", 60*1000);*/ if (typeof setWidgetData_2105653453 == 'function') if (clock_timer_2105653453 == -1) { var sec_2105653453 = 12; setInterval("rclock_2105653453()", 1000); } if (typeof setWidgetData == 'function') setWidgetData({ "results": [ { "widget_type":"19", "widget_id":"2105653453", "html_code":"
PM
Boston
" } ] }); function clock() { var is_need_to_reload = false; var cur_time_span = document.getElementById('min_2105653453'); 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","/?page=get_time_info&type=19&id=2105653453&city_id=60&wlangid=1&mode=2&details=0&background=ffffff&color=000000&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) { } if (typeof setWidgetData_2105653453 == 'function') setWidgetData_2105653453({ "results": [ { "widget_type":"19", "widget_id":"2105653453", "html_code":"
PM
Boston
" } ] }); function clock_2105653453() { 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_2105653453'); 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","/?page=get_time_info&ver=2&domid=209&type=19&id=2105653453&city_id=60&wlangid=1&mode=2&details=0&background=ffffff&color=000000&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 rclock_2105653453() { sec_2105653453 = sec_2105653453 + 1; if (sec_2105653453 >= 60) { sec_2105653453 = 0; clock_2105653453(); } var deg = sec_2105653453 * 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_2105653453'); 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"); //alert(cur_time); } /*if (clock_timer != -1) clearInterval(clock_timer); clock_timer = setInterval("clock()", 60*1000);*/ if (typeof setWidgetData_2105653453 == 'function') if (clock_timer_2105653453 == -1) { var sec_2105653453 = 12; setInterval("rclock_2105653453()", 1000); } if (typeof setWidgetData == 'function') setWidgetData({ "results": [ { "widget_type":"19", "widget_id":"2105653453", "html_code":"
PM
Boston
" } ] }); function clock() { var is_need_to_reload = false; var cur_time_span = document.getElementById('min_2105653453'); 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","/?page=get_time_info&type=19&id=2105653453&city_id=60&wlangid=1&mode=2&details=0&background=ffffff&color=000000&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) { }