1(function($){var items=new Array(),errors=new Array(),onComplete=function(){},current=0;var jpreOptions={splashVPos:'35%',loaderVPos:'75%',splashID:'#jpreContent',showSplash:!0,showPercentage:!0,autoClose:!0,closeBtnText:'Start!',onetimeLoad:!1,debugMode:!1,splashFunction:function(){}} 2var getCookie=function(){if(jpreOptions.onetimeLoad){var cookies=document.cookie.split('; ');for(var i=0,parts;(parts=cookies[i]&&cookies[i].split('='));i++){if((parts.shift())==="jpreLoader"){return(parts.join('='))}} 3return!1}else{return!1}} 4var setCookie=function(expires){if(jpreOptions.onetimeLoad){var exdate=new Date();exdate.setDate(exdate.getDate()+expires);var c_value=((expires==null)?"":"expires="+exdate.toUTCString());document.cookie="jpreLoader=loaded; "+c_value}} 5var createContainer=function(){jOverlay=$('<div></div>').attr('id','jpreOverlay').css({position:"fixed",top:0,left:0,width:'100%',height:'100%',zIndex:9999999}).appendTo('body');if(jpreOptions.showSplash){jContent=$('<div></div>').attr('id','jpreSlide').appendTo(jOverlay);var conWidth=$(window).width()-$(jContent).width();$(jContent).css({position:"absolute",top:jpreOptions.splashVPos,left:Math.round((50/$(window).width())*conWidth)+'%'});$(jContent).html($(jpreOptions.splashID).wrap('<div/>').parent().html());$(jpreOptions.splashID).remove();jpreOptions.splashFunction()} 6jLoader=$('<div></div>').attr('id','jpreLoader').appendTo(jOverlay);var posWidth=$(window).width()-$(jLoader).width();$(jLoader).css({position:'absolute',top:jpreOptions.loaderVPos,left:Math.round((50/$(window).width())*posWidth)+'%'});jBar=$('<div></div>').attr('id','jpreBar').css({width:'0%',height:'100%'}).appendTo(jLoader);if(jpreOptions.showPercentage){jPer=$('<div></div>').attr('id','jprePercentage').css({position:'relative',height:'100%'}).appendTo(jLoader).html('Loading...')} 7if(!jpreOptions.autoclose){jButton=$('<div></div>').attr('id','jpreButton').on('click',function(){loadComplete()}).css({position:'relative',height:'100%'}).appendTo(jLoader).text(jpreOptions.closeBtnText).hide()}} 8var getImages=function(element){$(element).find('*:not(script)').each(function(){var url="";if($(this).css('background-image').indexOf('none')==-1&&$(this).css('background-image').indexOf('-gradient')==-1){url=$(this).css('background-image');if(url.indexOf('url')!=-1){var temp=url.match(/url\((.*?)\)/);url=temp[1].replace(/\"/g,'')}}else if($(this).get(0).nodeName.toLowerCase()=='img'&&typeof($(this).attr('src'))!='undefined'){url=$(this).attr('src')} 9if(url.length>0){items.push(url)}})} 10var preloading=function(){for(var i=0;i<items.length;i++){if(loadImg(items[i]))}} 11var loadImg=function(url){var imgLoad=new Image();$(imgLoad).load(function(){completeLoading()}).error(function(){errors.push($(this).attr('src'));completeLoading()}).attr('src',url)} 12var completeLoading=function(){current++;var per=Math.round((current/items.length)*100);$(jBar).stop().animate({width:per+'%'},500,'linear');if(jpreOptions.showPercentage){$(jPer).text(per+"%")} 13if(current>=items.length){current=items.length;setCookie();if(jpreOptions.showPercentage){$(jPer).text("100%")} 14if(jpreOptions.debugMode){var error=debug()} 15$(jBar).stop().animate({width:'100%'},500,'linear',function(){if(jpreOptions.autoClose) 16loadComplete();else $(jButton).fadeIn(1000)})}} 17var loadComplete=function(){$(jOverlay).fadeOut(800,function(){$(jOverlay).remove();onComplete()})} 18var debug=function(){if(errors.length>0){var str='ERROR - IMAGE FILES MISSING!!!\n\r' 19str+=errors.length+' image files cound not be found. \n\r';str+='Please check your image paths and filenames:\n\r';for(var i=0;i<errors.length;i++){str+='- '+errors[i]+'\n\r'} 20return!0}else{return!1}} 21$.fn.jpreLoader=function(options,callback){if(options){$.extend(jpreOptions,options)} 22if(typeof callback=='function'){onComplete=callback} 23$('body').css({'display':'block'});return this.each(function(){if(!(getCookie())){createContainer();getImages(this);preloading()}else{$(jpreOptions.splashID).remove();onComplete()}})}})(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.