Skip to Content

JavaScript File

URL: https://s10.histats.com/counters/cc_4006.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: 19 KB
HTTP Headers:  7 headers
Links In:  1 pages
  
OK Issues: No issues found

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

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

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

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

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

6,v=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,p=function(e,t){var i=e||{}

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

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

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

14,v=100,p=1,g=function(){return t.document}

15,b=function(n){return u(n)&&!!g().getElementById(n)}

16,A=function(n){o=t.setTimeout(n,r)}

17,w=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||t.oRequestAnimationFrame||A,T=t["Date"]||{}

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

19;i.getInstanceID=l;var I=m();i.IS_HISTATS_CANVAS=!0,i.globalObjectName=I,i.$window=t;var y=function(n){return b(n)?g().getElementById(n):a}

20,S={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:a,customization:{}

22}

23,F={domCanvasObject:null,canvas2dContext:null,canvasProperties:S}

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

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

26,i=function(a){return e.call(n,a)}

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

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

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

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

31}

32}

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

34)}

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

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

37)}

38),void 0):(f(e,t),void 0)}

39,m=function(n,a){w(function(){d(n,a)}

40)}

...

</html>