1/** 2 * @name jQuery Countdown Plugin 3 * @author Martin Angelov 4 * @version 1.0 5 * @url http://tutorialzine.com/2011/12/countdown-jquery/ 6 * @license MIT License 7 */(function($){var days=86400,hours=60*60,minutes=60;$.fn.countdown=function(prop){var options=$.extend({callback:function(){},timestamp:0},prop),left,d,h,m,s,positions;init(this,options),positions=this.find(".position"),function tick(){left=Math.floor((options.timestamp-new Date)/1e3),left<0&&(left=0),d=Math.floor(left/days),updateDuo(0,1,d),left-=d*days,h=Math.floor(left/hours),updateDuo(2,3,h),left-=h*hours,m=Math.floor(left/minutes),updateDuo(4,5,m),left-=m*minutes,s=left,updateDuo(6,7,s),options.callback(d,h,m,s),setTimeout(tick,1e3)}();function updateDuo(minor,major,value){switchDigit(positions.eq(minor),Math.floor(value/10)%10),switchDigit(positions.eq(major),value%10)}return this};function init(elem,options){elem.addClass("countdownHolder"),$.each(["Days","Hours","Minutes","Seconds"],function(i){$('<span class="count'+this+'">').html('<span class="position"> <span class="digit static">0</span> </span> <span class="position"> <span class="digit static">0</span> </span>').appendTo(elem),this!="Seconds"&&elem.append('<span class="countDiv countDiv'+i+'"></span>')})}function switchDigit(position,number){var digit=position.find(".digit");if(digit.is(":animated")||position.data("digit")==number)return!1;position.data("digit",number);var replacement=$("<span>",{class:"digit",css:{top:"-2.1em",opacity:0},html:number});digit.before(replacement).removeClass("static").animate({top:"2.5em",opacity:0},"fast",function(){digit.remove()}),replacement.delay(100).animate({top:0,opacity:1},"fast",function(){replacement.addClass("static")})}})(jQuery); 8//# sourceMappingURL=/cdn/shop/t/1/assets/jquery.countdown.js.map
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.