Skip to Content

JavaScript File

URL: https://s10.histats.com/counters/cc_511.js
HTTP Status: 200 OK
MIME Type: text/javascript
Last Modified: Thu, 16 Apr 2020 10:45:32 GMT
Download Time: Less than a second
Cookies: None
Size: 15 KB
HTTP Headers:  8 headers
Links In:  1 pages
OK Issues: No issues found

1(function(){var n="0.2.1",t,a="undefined",e=25,r=parseInt(1e3/e),i=t,o={"function":!0,object:!0}

2,s={DEBUG_MODE:!1,counterID:"511",instanceID:"externalConf###Instanceid"}

3,u=function(n){return typeof n!==a}

4,c="HISTATS_CANVAS_DEBUG_ON";s.DEBUG_MODE=u(window[c])&&1==window[c];var A=function(){return s.instanceID}

5,f="_HistatsCounterGraphics_",d,g=function(){return f+s.counterID}

6,l=function(n){return!("string"!=typeof n||""==n)}

7,h=function(){try{s.DEBUG_MODE&&u(console)&&console.log.apply(this,arguments)}

8catch(n){}

9}

10,v=function(a,e){var o=a||{}

11;try{var c=function(n){var t="autostart";return"undefined"!=typeof n[t]&&n[t]===!0}

12,A={ANIMATION_RUNNING_STATUS:!0,ANIMATION_STARTED:!1,AUTOSTART:c(o),_STOPPED:!1,INSTANCE_ID:"-"+parseInt(1e4*Math.random())}

13,f=function(){return A.INSTANCE_ID}

14,l=100,v=1,w=function(){return e.document}

15,m=function(n){return u(n)&&!!w().getElementById(n)}

16,p=function(n){i=e.setTimeout(n,r)}

17,b=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||e.oRequestAnimationFrame||p,C=e["Date"]||{}

18,S=function(n,t){for(var a in n)t.hasOwnProperty(a)&&(t[a]=n[a])}

19;o.getInstanceID=f;var T=g();o.IS_HISTATS_CANVAS=!0,o.globalObjectName=T,o.$window=e;var x=function(n){return m(n)?w().getElementById(n):t}

20,B={w:0,h:0,yBase:0,xBase:0,hasShadow:!1,hasLabel:!1,shadowOffsetX:2,shadowOffsetY:2,shadowBlur:1,doMouseOverOut:1}

21,N={msLastFrameDrawn:0,msPerFrame:r,frameCounter:0,isInAnimationTransition:!1,animation_duration_inFrames:20,waitframesBetweenTwoAnimations:80,framesBetweenTwoAnimations:100,currentLoopFrame:0,autoTriggerTextChange_onFrame:t,customization:{}

22}

23,I={domCanvasObject:null,canvas2dContext:null,canvasProperties:B}

24,E=function(){var n={}

25,a=n.hasOwnProperty,e=0,r=0,i={blockMessages:!1,recordMessages:!1,messageLog:[],printMessages:!1,messagePassedCount:0,subscribersCount:0,topicsCount:0,_topics:n}

26,o=function(t){return a.call(n,t)}

27,s=function(t){return i.printMessages&&console.log(f(),"addTopic",t),r++,i.topicsCount++,r>50&&h(f(),"Lot of topics registered!",t),n[t]=[]}

28,u=function(t){return n[t]}

29,c=function(t,a,r){i.printMessages&&console.log(f(),"subscribe",t,a,r),i.recordMessages&&i.messageLog.push(["subscribe",t,a,r]),r=r||l,o(t)||s(t);var c=u(t).push({callback:a,priority:a}

30)-1;return e++,i.subscribersCount++,e>50&&h(f(),"Lot of topics registered!",t),{remove:function(){delete n[t][c]}

31}

32}

33,A=function(n,t){var a="no-topic-found";n!=a&&d(a,{topic:n,info:t}

34)}

35,d=function(a,e){if(i.messagePassedCount++,i.printMessages&&console.log(f(),"publish",a,e),i.recordMessages&&i.messageLog.push(["publish",a,e]),!i.blockMessages)return o(a)?(n[a].slice().sort(function(n,t){return n.priority-t.priority}

36).forEach(function(n){n.callback(e!=t?e:{}

37)}

38),void 0):(A(a,e),void 0)}

39,g=function(n,t){b(function(){d(n,t)}

40)}

...

</html>