PageSourceSearch

https://lvsuperbowlhc.com/wp-content/plugins/circletimer-wp/circletimer/jquery.circletimer.js?ver=6.4.12

js lvsuperbowlhc.com collected 2026-10-02 07:38:21 UTC 5,315 bytes, 9 lines download raw bytes

1/**************************************************************************
2 * Project:		CircleTimer - jQuery Countdown Timer WordPress Plugin
3 * Info:		https://codecanyon.net/item/circletimer-jquery-countdown-timer-wordpress-plugin/22064612
4 * Version:		1.0
5 * Author: 		AthenaStudio
6 * Profile: 	https://themeforest.net/user/athenastudio
7**************************************************************************/
8
9!function(M){"use strict";M.fn.circleTimer=function(t){var i;M.fn.circleTimer.style=function(t,e){i.style(t,e)};return t=M.extend({},{startDate:"",endDate:"",timeZone:0,past:!1,animation:"smooth",showDay:!0,showHour:!0,showMinute:!0,showSecond:!0,dayText:"DAYS",hourText:"HOURS",minuteText:"MINUTES",secondText:"SECONDS",diameter:160,bgWidth:20,bgColor:"#d1e2c3",circleWidth:20,circleColor:"#0f9d58",counterFontSize:48,counterFontColor:"#222",textFontSize:12,textFontColor:"#999",textMarginTop:0,margin:10,multiColor:!1,autoReset:!1,resetInterval:86400,expireType:"redirect",message:"Sorry, you are too late!",redirect:""},t),this.each(function(){M(this).addClass("circletimer"),(i=new e(M(this),t)).init()});function e(i,d){var c,n,a,o,r,s,e,h,l,m,u,f,g=document.createElement("canvas").getContext,v=0,p=0,I=parseInt(d.circleColor.slice(1,3),16),x=parseInt(d.circleColor.slice(3,5),16),A=parseInt(d.circleColor.slice(5,7),16),w=I,S=x,T=A,C=0,y=0,D=0;this.init=function(){var t=this;c=i,n=M('<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" />'),c.append(n),d.startDate=this.convertToTime(d.startDate),d.endDate=this.convertToTime(d.endDate),d.resetInterval*=1e3,a=this.addItem("day",d.showDay,d.dayText),o=this.addItem("hour",d.showHour,d.hourText),r=this.addItem("minute",d.showMinute,d.minuteText),s=this.addItem("second",d.showSecond,d.secondText),this.itemSize(),M(window).on("resize",function(){t.findSize(),t.circleStyle()}),this.findSize(),this.circleStyle();var e="smooth"===d.animation?100:1e3;this.intervalId=setInterval(function(){t.checkTime()},e),t.checkTime()},this.itemSize=function(){d.showDay&&v++,d.showHour&&v++,d.showMinute&&v++,d.showSecond&&v++},this.findSize=function(){var t=n.width();p=t/(v*(d.diameter+2*d.margin))},this.style=function(t,e){d.bgColor=t,d.circleColor=e,this.circleStyle()},this.circleStyle=function(){var t,i,n,a,e,o=c.find(".time"),r=o.length,s=t=parseInt(p*d.diameter,10);o.css({width:s,height:t,margin:parseInt(p*d.margin,10)+"px"}),e=o.find(".count"),t=d.diameter-d.textFontSize,t=parseInt(p*t,10),e.css({width:s,height:s,"line-height":t+"px","font-size":p*d.counterFontSize+"px",color:d.counterFontColor}),e=o.find(".text"),t=d.diameter+d.counterFontSize,t=parseInt(p*t,10),e.css({width:s,height:s,"line-height":t+"px","font-size":p*d.textFontSize+"px",color:d.textFontColor,bottom:parseInt(-p*d.textMarginTop,10)}),g&&(i=n=parseInt(s/2,10),a=i-parseInt(p*d.bgWidth/2,10),o.each(function(t){0===t&&M(this).css({"margin-left":"0"}),t===r-1&&M(this).css({"margin-right":"0"});var e=M(this).find("canvas.bg")[0].getContext("2d"),t=parseInt(p*d.bgWidth,10);e.canvas.width=s,e.canvas.height=s,e.lineWidth=t,e.strokeStyle=d.bgColor,e.clearRect(0,0,t,t),e.beginPath(),e.arc(i,n,a,0,2*Math.PI,!0),e.stroke(),e.closePath()}))},this.addItem=function(t,e,i){var n=null;return e&&((n=M('<div class="'+t+' time"><canvas class="bg"></canvas><canvas class="circle"></canvas><div class="count">0</div><div class="text"></div></div>')).find(".text").text(i),c.append(n)),n},this.circle=function(t,e,i){var n,a,o,r=parseInt(p*d.diameter,10),s=parseInt(p*d.circleWidth,10),c=d.circleColor;d.multiColor&&(c=this.changeColor()),o=(n=a=r/2)-s/2;var h=t.find(".count"),l="smooth"===d.animation?Math.floor(e/10):e;h.text(l),g&&((t=t.find("canvas.circle")[0].getContext("2d")).canvas.width=r,t.canvas.height=r,t.lineWidth=s,t.strokeStyle=c,t.clearRect(0,0,s,s),t.beginPath(),t.arc(n,a,o,2*Math.PI*(e/(i*("smooth"===d.animation?10:1)))-Math.PI/2,-Math.PI/2,!0),t.stroke(),t.closePath())},this.changeColor=function(){var t;return S+=y,T+=D,I*C<=(w+=C)*C&&x*y<=S*y&&A*D<=T*D&&(t=w=I,C=((I=S=x)-w)/1e3,y=((x=T=A)-S)/1e3,D=((A=t)-T)/1e3),"rgba("+Math.floor(w)+", "+Math.floor(S)+", "+Math.floor(T)+", 1)"},this.checkTime=function(){if(e=new Date,h=e.getTime()+60*e.getTimezoneOffset()*1e3,(e=d.past?h-d.startDate:d.endDate-h)<0)if(d.autoReset)e=d.resetInterval+e%d.resetInterval,d.endDate=h+e;else switch(clearInterval(this.intervalId),e=0,d.expireType){case"message":c.addClass("onfinish");var t=M('<div class="expire-message" />');t.html(d.message),c.append(t);break;case"hide":c.fadeOut();break;case"redirect":document.location.href=d.redirect}h=d.endDate-d.startDate,h=Math.floor(h/864e5),this.timeFormat(e),d.showDay&&this.circle(a,l,h),d.showHour&&this.circle(o,m,24),d.showMinute&&this.circle(r,u,60),d.showSecond&&this.circle(s,f,60)},this.timeFormat=function(t){var e="smooth"===d.animation?10:1,t=t/1e3*e;"tick"===d.animation&&(t=Math.floor(t)),f=t%(60*e),u=Math.floor(t%(3600*e)/60),m=Math.floor(t%(86400*e)/3600),l=Math.floor(t/86400)},this.convertToTime=function(t){var e=t.split("/").join(" ").split(":").join(" ").split(" "),i=parseInt(e[0],10),n=parseInt(e[1],10)-1,a=parseInt(e[2],10),o=parseInt(e[3],10),r=parseInt(e[4],10)-60*d.timeZone,e=parseInt(e[5],10);return t=new Date(i,n,a,o,r,e,0).getTime()}}}}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.