1var adjustPercentageBar=function(config){var currentDate=new Date,campaignInitDate=new Date(config.initDate),totMins=config.campaignDaysDuration*24*60,percentageToDistribute=config.maxPercentage-config.percentageInt,minsFromInit=Math.round((currentDate.getTime()-campaignInitDate.getTime())/(1e3*60));return minsFromInit>0&&(config.percentageInt=Math.round(config.percentageInt+percentageToDistribute/totMins*minsFromInit)),minsFromInit>=totMins&&(config.percentageInt=config.maxPercentage),config};(function($){$(document).ready(function(){var $progressBarToReplace=$(".boostrap-progress-bar");if($progressBarToReplace.length){var barConfigExt=JSON.parse($progressBarToReplace.attr("data-bar")),barConfig={initDate:"2018-10-10",percentageInt:73,maxPercentage:99,campaignDaysDuration:20,color:"#007bff",height:"2px",leftText:"Limited spots left",rightText:"%s Reserved"};$.extend(barConfig,barConfigExt),barConfig=adjustPercentageBar(barConfig),barConfig.percentageStr=barConfig.percentageInt+"%",barConfig.rightText=barConfig.rightText.replace("%s",barConfig.percentageStr);var $leftText=$('<span class="left"></span>').append(barConfig.leftText).css("color",barConfig.color),$rightText=$('<span class="right"></span>').append(barConfig.rightText).css({float:"right",color:barConfig.color}),$upperText=$('<div class="progressbar-text"></div>').append($leftText,$rightText),$insideBarBase=$('<div class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100"></div>'),$insideBar=$insideBarBase.attr("aria-valuenow",barConfig.percentageInt).css({"background-color":barConfig.color,width:barConfig.percentageStr}),$progressBar=$('<div class="progress"></div>').css("height",barConfig.height).append($insideBar);$progressBarToReplace.before($upperText),$progressBarToReplace.replaceWith($progressBar)}})})(jQuery); 2//# sourceMappingURL=/cdn/shop/t/16/assets/progress_bar.js.map?v=156662870488482392741720720376
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.