PageSourceSearch

https://kirah.com/wp-content/themes/herrington/assets/js/libs/jprelaoder.min.js?ver=1.0.0

js kirah.com collected 2026-10-09 23:35:23 UTC 7,064 bytes, 126 lines download raw bytes

1/* jprelaoder.min */
2(function(a){var b=new Array,c=new Array,d=function(){},e=0;var f={splashVPos:"35%",loaderVPos:"75%",splashID:"#jpreContent",showSplash:true,showPercentage:true,autoClose:true,closeBtnText:"Start!",onetimeLoad:false,debugMode:false,splashFunction:function(){}};var g=function(){if(f.onetimeLoad){var a=document.cookie.split("; ");for(var b=0,c;c=a[b]&&a[b].split("=");b++){if(c.shift()==="jpreLoader"){return c.join("=")}}return false}else{return false}};var h=function(a){if(f.onetimeLoad){var b=new Date;b.setDate(b.getDate()+a);var c=a==null?"":"expires="+b.toUTCString();document.cookie="jpreLoader=loaded; "+c}};var i=function(){jOverlay=a("<div></div>").attr("id","jpreOverlay").css({position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:9999999}).appendTo("body");if(f.showSplash){jContent=a("<div></div>").attr("id","jpreSlide").appendTo(jOverlay);var b=a(window).width()-a(jContent).width();a(jContent).css({position:"absolute",top:f.splashVPos,left:Math.round(50/a(window).width()*b)+"%"});a(jContent).html(a(f.splashID).wrap("<div/>").parent().html());a(f.splashID).remove();f.splashFunction()}jLoader=a("<div></div>").attr("id","jpreLoader").appendTo(jOverlay);var c=a(window).width()-a(jLoader).width();a(jLoader).css({position:"absolute",top:f.loaderVPos,left:Math.round(50/a(window).width()*c)+"%"});jBar=a("<div></div>").attr("id","jpreBar").css({width:"0%",height:"100%"}).appendTo(jLoader);if(f.showPercentage){jPer=a("<div></div>").attr("id","jprePercentage").css({position:"relative",height:"100%"}).appendTo(jLoader).html("Loading...")}if(!f.autoclose){jButton=a("<div></div>").attr("id","jpreButton").on("click",function(){n()}).css({position:"relative",height:"100%"}).appendTo(jLoader).text(f.closeBtnText).hide()}};var j=function(c){a(c).find("*:not(script)").each(function(){var c="";if(a(this).css("background-image").indexOf("none")==-1&&a(this).css("background-image").indexOf("-gradient")==-1){c=a(this).css("background-image");if(c.indexOf("url")!=-1){var d=c.match(/url\((.*?)\)/);c=d[1].replace(/\"/g,"")}}else if(a(this).get(0).nodeName.toLowerCase()=="img"&&typeof a(this).attr("src")!="undefined"){c=a(this).attr("src")}if(c.length>0){b.push(c)}})};var k=function(){for(var a=0;a<b.length;a++){if(l(b[a]));}};var l=function(b){var d=new Image;a(d).load(function(){m()}).error(function(){c.push(a(this).attr("src"));m()}).attr("src",b)};var m=function(){e++;var c=Math.round(e/b.length*100);a(jBar).stop().animate({width:c+"%"},500,"linear");if(f.showPercentage){a(jPer).text(c+"%")}if(e>=b.length){e=b.length;h();if(f.showPercentage){a(jPer).text("100%")}if(f.debugMode){var d=o()}a(jBar).stop().animate({width:"100%"},500,"linear",function(){if(f.autoClose)n();else a(jButton).fadeIn(1e3)})}};var n=function(){a(jOverlay).fadeOut(800,function(){a(jOverlay).remove();d()})};var o=function(){if(c.length>0){var a="ERROR - IMAGE FILES MISSING!!!\n\r";a+=c.length+" image files cound not be found. \n\r";a+="Please check your image paths and filenames:\n\r";for(var b=0;b<c.length;b++){a+="- "+c[b]+"\n\r"}return true}else{return false}};a.fn.jpreLoader=function(b,c){if(b){a.extend(f,b)}if(typeof c=="function"){d=c}a("body").css({display:"block"});return this.each(function(){if(!g()){i();j(this);k()}else{a(f.splashID).remove();d()}})}})(jQuery)
3
4/*!
5 * enquire.js v2.1.2 - Awesome Media Queries in JavaScript
6 * Copyright (c) 2014 Nick Williams - http://wicky.nillia.ms/enquire.js
7 * License: MIT (http://www.opensource.org/licenses/mit-license.php)
8 */
9
10!function(a, b, c) {
11    var d = window.matchMedia;
12    "undefined" != typeof module && module.exports ? module.exports = c(d) : "function" == typeof define && define.amd ? define(function() {
13        return b[a] = c(d)
14    }) : b[a] = c(d)
15}("enquire", this, function(a) {
16    "use strict";
17    function b(a, b) {
18        var c, d = 0, e = a.length;
19        for (d; e > d && (c = b(a[d], d),
20        c !== !1); d++)
21            ;
22    }
23    function c(a) {
24        return "[object Array]" === Object.prototype.toString.apply(a)
25    }
26    function d(a) {
27        return "function" == typeof a
28    }
29    function e(a) {
30        this.options = a,
31        !a.deferSetup && this.setup()
32    }
33    function f(b, c) {
34        this.query = b,
35        this.isUnconditional = c,
36        this.handlers = [],
37        this.mql = a(b);
38        var d = this;
39        this.listener = function(a) {
40            d.mql = a,
41            d.assess()
42        }
43        ,
44        this.mql.addListener(this.listener)
45    }
46    function g() {
47        if (!a)
48            throw new Error("matchMedia not present, legacy browsers require a polyfill");
49        this.queries = {},
50        this.browserIsIncapable = !a("only all").matches
51    }
52    return e.prototype = {
53        setup: function() {
54            this.options.setup && this.options.setup(),
55            this.initialised = !0
56        },
57        on: function() {
58            !this.initialised && this.setup(),
59            this.options.match && this.options.match()
60        },
61        off: function() {
62            this.options.unmatch && this.options.unmatch()
63        },
64        destroy: function() {
65            this.options.destroy ? this.options.destroy() : this.off()
66        },
67        equals: function(a) {
68            return this.options === a || this.options.match === a
69        }
70    },
71    f.prototype = {
72        addHandler: function(a) {
73            var b = new e(a);
74            this.handlers.push(b),
75            this.matches() && b.on()
76        },
77        removeHandler: function(a) {
78            var c = this.handlers;
79            b(c, function(b, d) {
80                return b.equals(a) ? (b.destroy(),
81                !c.splice(d, 1)) : void 0
82            })
83        },
84        matches: function() {
85            return this.mql.matches || this.isUnconditional
86        },
87        clear: function() {
88            b(this.handlers, function(a) {
89                a.destroy()
90            }),
91            this.mql.removeListener(this.listener),
92            this.handlers.length = 0
93        },
94        assess: function() {
95            var a = this.matches() ? "on" : "off";
96            b(this.handlers, function(b) {
97                b[a]()
98            })
99        }
100    },
101    g.prototype = {
102        register: function(a, e, g) {
103            var h = this.queries
104              , i = g && this.browserIsIncapable;
105            return h[a] || (h[a] = new f(a,i)),
106            d(e) && (e = {
107                match: e
108            }),
109            c(e) || (e = [e]),
110            b(e, function(b) {
111                d(b) && (b = {
112                    match: b
113                }),
114                h[a].addHandler(b)
115            }),
116            this
117        },
118        unregister: function(a, b) {
119            var c = this.queries[a];
120            return c && (b ? c.removeHandler(b) : (c.clear(),
121            delete this.queries[a])),
122            this
123        }
124    },
125    new g
126});

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.