text: var APIUrl="",iBalls=500,iMaxPollTimer=6e4;function readCookie(i){for(var t=i+"=",a=document.cookie.split(";"),n=0;n<a.length;n++){for(var o=a[n];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null}function ColorTrigger(a){$.ajax({url:APIUrl,global:!0,success:function(i){$("#idBall"+a.toString()).css({fill:i});var t=Math.ceil(Math.random()*iMaxPollTimer);setTimeout(function(i){ColorTrigger(i)},t,a)}})}function doStart(){$("#idButStart").hide(),$("#idButReset").show();for(var i=0,t=0;t<iBalls;t++)i=Math.ceil(Math.random()*iMaxPollTimer),setTimeout(function(i){ColorTrigger(i)},i,t)}function doDefaultReady(){var i="";APIUrl=decodeURIComponent(readCookie("APIUrl"));for(var t=0;t<iBalls;t++)i+="<svg height='30' width='30'><circle id='idBall"+t.toString()+"' cx='15' cy='15' r='12' stroke='black' stroke-width='1' fill='white' /></svg>";$("#idBalls").append(i),$("#idAPIUrl").html(APIUrl),$(document).ajaxError(function(i,t,a,n){var o;o=t.status?"HTTP Error: "+t.status:"Failure: "+n,$("#idErrorText").html(o)})}function openNav(){$("#idnavoverlay").css("display","block"),$("#idnavsidebar").css("marginLeft","0px"),$("#idnavsidebar").css("marginRight","0px"),$("#idmaincontent").css("marginLeft","250px"),$("#idmaincontent").css("marginRight","-250px")}function closeNav(){$("#idnavsidebar").css("marginLeft","-250px"),$("#idnavsidebar").css("marginRight","250px"),$("#idmaincontent").css("marginLeft","0"),$("#idmaincontent").css("marginRight","0"),$("#idnavoverlay").css("display","none")}function toggleNav(){($("#idnavbutton").hasClass("is-active")?closeNav:openNav)(),$("#idnavbutton").toggleClass("is-active")}function gotoNav(i){toggleNav(),window.setTimeout("window.location.href='"+i+"'",500)}