function j(e,c){return Array(++c).join(e)}function tick(){var n=new Date,f=n.getHours(),c=n.getMinutes(),e=n.getSeconds(),l=parseInt,k=l(11.1*f),i=l(4.33*c),a=l(4.33*e);d.title=(f>9?f:'0'+f)+':'+(c>9?c:'0'+c)+':'+(e>9?e:'0'+e);d.querySelector('html').style.cssText=['-webkit-','-moz-','-o-',,''].join('transition:all 1s;')+'color:#fff;font:1em Arial;overflow:hidden;background:rgb('+k+','+i+','+a+')';top.document.querySelector('link').setAttribute('href','data:image/x-icon;base64,Qk3mHQAAAAAAADYAAAAoAAAAMgAAADIAAAABABgAAAAAALAdAAATCwAAEwsAAAAAAAAAAAAA'+btoa(j(j(String.fromCharCode(a,i,k),50)+'\0\0',50)))}var d=document;d.querySelector('head').innerHTML='<link rel="shortcut icon" type="image/x-icon"><style>title{position:absolute;font:8em/8em Arial;top:50%;left:50%;height:1em;margin:-4em 0 0 -2em;text-shadow: 1px 1px 1px #000}head,title{display:block}p{opacity:.7}</style>';d.body.innerHTML='<p>HTML5 COLOUR CLOCK';tick();setTimeout(function(){setInterval(tick,1000)},1000-new Date().getMilliseconds());
ZnVuY3Rpb24gaihlLGMpe3JldHVybiBBcnJheSgrK2MpLmpvaW4oZSl9ZnVuY3Rpb24gdGljaygpe3ZhciBuPW5ldyBEYXRlLGY9bi5nZXRIb3VycygpLGM9bi5nZXRNaW51dGVzKCksZT1uLmdldFNlY29uZHMoKSxsPXBhcnNlSW50LGs9bCgxMS4xKmYpLGk9bCg0LjMzKmMpLGE9bCg0LjMzKmUpO2QudGl0bGU9KGY+OT9mOicwJytmKSsnOicrKGM+OT9jOicwJytjKSsnOicrKGU+OT9lOicwJytlKTtkLnF1ZXJ5U2VsZWN0b3IoJ2h0bWwnKS5zdHlsZS5jc3NUZXh0PVsnLXdlYmtpdC0nLCctbW96LScsJy1vLScsLCcnXS5qb2luKCd0cmFuc2l0aW9uOmFsbCAxczsnKSsnY29sb3I6I2ZmZjtmb250OjFlbSBBcmlhbDtvdmVyZm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