PageSourceSearch

https://www.bretech.net/wp-content/litespeed/js/fa897593a701fa508dc39a455c9cf790.js?ver=cf790

js bretech.net collected 2026-10-04 20:55:22 UTC 2,810 bytes, 24 lines download raw bytes

1/*!
2 * jQuery Countdown plugin v1.0
3 * http://www.littlewebthings.com/projects/countdown/
4 *
5 * Copyright 2010, Vassilis Dourdounis
6 * Copyright 2010, Marcello Barnaba <[email protected]>
7 * 
8 */
9(function($){$.fn.countDown=function(options){if(typeof options=='string'){return $(this).data('countDown')[options].apply(this)||this}
10return this.each(function(){var element=$(this),targetTime=new Date(),timer;if(element.data('countDown'))
11return;if(options.targetDate){targetTime=new Date(options.targetDate.month+'/'+options.targetDate.day+'/'+options.targetDate.year+' '+options.targetDate.hour+':'+options.targetDate.min+':'+options.targetDate.sec+(options.targetDate.utc?' UTC':''))}else if(options.targetOffset){targetTime.setFullYear(options.targetOffset.year+targetTime.getFullYear());targetTime.setMonth(options.targetOffset.month+targetTime.getMonth());targetTime.setDate(options.targetOffset.day+targetTime.getDate());targetTime.setHours(options.targetOffset.hour+targetTime.getHours());targetTime.setMinutes(options.targetOffset.min+targetTime.getMinutes());targetTime.setSeconds(options.targetOffset.sec+targetTime.getSeconds())}
12element.find('.digit').html('<div class="top"></div><div class="bottom"></div>');element.data('countDown',{stop:function(){if(timer==undefined)
13return;clearInterval(timer);timer=undefined},start:function(){if(timer!=undefined)
14return;if(options.currenttime){var currenttime=new Date(options.currenttime)}else{var currenttime=new Date()}
15var diffSecs=Math.floor((+targetTime-currenttime)/1000);var duration=500;if(diffSecs<0)
16diffSecs=0;var loop=function(){render(diffSecs,duration);diffSecs-=1}
17loop();if(diffSecs>0)
18timer=setInterval(loop,1000)}});function render(diffSecs,duration){secs=diffSecs%60;mins=Math.floor(diffSecs/60)%60;hours=Math.floor(diffSecs/60/60)%24;if(options.omitWeeks){days=Math.floor(diffSecs/60/60/24);weeks=Math.floor(diffSecs/60/60/24/7)}else{days=Math.floor(diffSecs/60/60/24)%7;weeks=Math.floor(diffSecs/60/60/24/7)}
19dashChangeTo('.seconds_dash',secs,duration);dashChangeTo('.minutes_dash',mins,duration);dashChangeTo('.hours_dash',hours,duration);dashChangeTo('.days_dash',days,duration);dashChangeTo('.weeks_dash',weeks,duration);if(diffSecs<=0)
20complete();}
21function complete(){element.data('countDown').stop();if(options.onComplete)
22options.onComplete.apply(element);return!0}
23function dashChangeTo(selector,n,duration){element.find(selector+' .digit').each(function(i){digitChangeTo($(this),i==0?Math.floor(n/10):n%10,duration)})};function digitChangeTo(digit,n,duration){var top=digit.find('.top'),bot=digit.find('.bottom');if(top.html()!=n+''){top.html(n||'0').slideDown(duration);bot.animate({height:0},duration,function(){bot.html(n||'0').css({height:'100%'});top.hide()})}};element.data('countDown').start()})}})(jQuery)
24;

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.