PageSourceSearch

https://pssection9.com/wp-content/cache/autoptimize/js/autoptimize…9b884f8f05ba1e7117b6aa5a65021240.js?ver=7.1

js pssection9.com collected 2026-10-02 06:36:50 UTC 3,544 bytes, 15 lines download raw bytes

1;(function(window,document,$,moment,undefined){'use strict';var INTERVAL_NONE='none';var INTERVAL_DAILY='daily';var INTERVAL_MONTHLY='monthly';function pad(number,width,pad){var _number=''+number;var _width=width||2;var _pad=pad||'0';return(_number.length>=width)?_number:Array.apply(null,Array(_width-_number.length+1)).join(_pad)+_number;}
2var CountDownTimer=(function(){function Counter($element,expiredAtString,interval,invert){var now=moment();var expiredAt=moment(expiredAtString);var _expiredAt;this._$element=$element;this._interval=interval;this._invert=!!invert;switch(this._interval){case INTERVAL_DAILY:_expiredAt=expiredAt.clone();_expiredAt.year(now.year());_expiredAt.month(now.month());_expiredAt.date(now.date());break;case INTERVAL_MONTHLY:_expiredAt=expiredAt.clone();_expiredAt.year(now.year());_expiredAt.month(now.month());break;case INTERVAL_NONE:default:_expiredAt=expiredAt.clone();break;}
3this._expiredAt=_expiredAt;this._timerId=null;}
4Counter.prototype._updateTimer=function(timer){var $itemDay=this._$element.find('[data-st-countdown-item-day]');var $countDay=this._$element.find('[data-st-countdown-count-day]');var $countHour=this._$element.find('[data-st-countdown-count-hour]');var $countMinute=this._$element.find('[data-st-countdown-count-minute]');var $countSecond=this._$element.find('[data-st-countdown-count-second]');var $countMs=this._$element.find('[data-st-countdown-count-ms]');if($itemDay.length){if(timer.day>0){$itemDay.show();}else{$itemDay.hide();}}
5if($countDay.length){$countDay.text(timer.day);}
6if($countHour.length){$countHour.text(pad(timer.hour));}
7if($countMinute.length){$countMinute.text(pad(timer.minute));}
8if($countSecond.length){$countSecond.text(pad(timer.second));}
9if($countMs.length){$countMs.text(pad(timer.ms));}};Counter.prototype.onTick=function(){var now=moment();var diff=this._expiredAt.diff(now);var $expired=this._$element.find('[data-st-countdown-expired]');var timer={day:Math.max(0,Math.floor(diff/(24*60*60*1000))),hour:Math.max(0,Math.floor((diff%(24*60*60*1000))/(60*60*1000))),minute:Math.max(0,Math.floor((diff%(24*60*60*1000))/(60*1000))%60),second:Math.max(0,Math.floor((diff%(24*60*60*1000))/1000)%60%60),ms:Math.max(0,Math.floor((diff%(24*60*60*1000))/10)%100)};this._updateTimer(timer);if(diff>0){this._$element.removeClass('is-expired').addClass('is-active');if(this._invert){$expired.show();}else{$expired.hide();}
10return true;}
11switch(this._interval){case INTERVAL_DAILY:this._expiredAt=this._expiredAt.clone().add(1,'day');return true;case INTERVAL_MONTHLY:this._expiredAt=this._expiredAt.clone().add(1,'month');return true;case INTERVAL_NONE:default:this._$element.removeClass('is-active').addClass('is-expired');if(this._invert){$expired.hide();}else{$expired.show();}
12break;}
13return false;};Counter.prototype.initialize=function(){var self=this;(function tick(interval){var nextTick;clearTimeout(self._timerId);nextTick=self.onTick();if(nextTick){self._timerId=setTimeout(function(){tick(interval)},interval);}}(10));};return Counter;}());function onReady(){var timers=[];$('[data-st-countdown]').each(function(){var $element=$(this);var expiredAt=$element.attr('data-st-countdown-expired-at');var interval=$element.attr('data-st-countdown-interval')||INTERVAL_NONE;var invert=($element.attr('data-st-countdown-invert')==='true');if(typeof expiredAt==='undefined'){return;}
14var timer=new CountDownTimer($element,expiredAt,interval,invert);timers.push(timer);timer.initialize();});return timers;}
15$(onReady);}(window,window.document,jQuery,moment));

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.