JSFiddle - React, Tailwind, and code Playground
by jakie8
HTML
<div id="time"></div>
<div><br />Until whatever</div>
CSS
body{
text-align:center;
margin:0;
padding:0;
font-family:arial;
color:#fff;
padding-top:100px;
font-size:42px;
background:#cc0000;
text-shadow:-3px 3px 0 rgba(0,0,0,0.3)
}
JavaScript
TargetDate = "05/19/2012 4:00 PM";
CountActive = true;
CountStepper = -1;
LeadingZero = true;
DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds";
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('v 6(a,b,c){s=((9.r(a/b))%c).R();3(n&&s.C<2)s="0"+s;t"<b>"+s+"</b>"}v m(a){3(a<0){x.y("z").A=i;t}4=Q.d(/%%D%%/g,6(a,E,F));4=4.d(/%%H%%/g,6(a,V,L));4=4.d(/%%M%%/g,6(a,h,h));4=4.d(/%%S%%/g,6(a,1,h));x.y("z").A=4;3(f)U("m("+(a+5)+")",q)}3(8(f)=="j")f=u;3(8(i)=="j")i="";3(8(5)!="G")5=-1;3(8(n)=="j")n=u;5=9.I(5);3(5==0)f=J;k q=(9.K(5)-1)*w+N;k l=7 e(P);k o=7 e();3(5>0)p=7 e(o-l);T p=7 e(l-o);B=9.r(p.O()/w);m(B);',58,58,'|||if|DisplayStr|CountStepper|calcage|new|typeof|Math||||replace|Date|CountActive||60|FinishMessage|undefined|var|dthen|CountBack|LeadingZero|dnow|ddiff|SetTimeOutPeriod|floor||return|true|function|1000|document|getElementById|time|innerHTML|gsecs|length||86400|100000|number||ceil|false|abs|24||990|valueOf|TargetDate|DisplayFormat|toString||else|setTimeout|3600'.split('|'),0,{}))