PageSourceSearch

https://jessicafwalker.com/assets/jessicafwalker.com/wp-content/pl…/portfolio-wp/js/crp-helper-e799555b33.js

js jessicafwalker.com collected 2026-10-05 00:47:48 UTC 7,154 bytes, 271 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opener = _____WB$wombat$assign$function_____("opener");
10var _CRP_LAST_GENERATED_ID = 100000;
11function crp_generateId(){
12    return "tmpid_" + (++_CRP_LAST_GENERATED_ID).toString();
13}
14
15function crp_showSpinner() {
16    jQuery("#crp-spinner").css('display', 'block');
17    jQuery("#crp-spinner-background").css('display', 'block');
18}
19
20function crp_hideSpinner() {
21    setTimeout(function(){
22        jQuery("#crp-spinner").css('display', 'none');
23        jQuery("#crp-spinner-background").css('display', 'none');
24    }, 1000);
25}
26
27function crp_openMediaUploader( callback, multipleSelection ) {
28    'use strict';
29
30    multipleSelection = typeof multipleSelection !== 'undefined' ? multipleSelection : false;
31    var uploader, imgData, json;
32
33    if ( undefined !== uploader ) {
34        uploader.open();
35        return;
36    }
37
38    uploader = wp.media.frames.file_frame = wp.media({
39        frame:    'post',
40        state:    'insert',
41        multiple: multipleSelection
42    });
43
44    uploader.on( 'insert', function() {
45        var selections = uploader.state().get( 'selection').toJSON();
46        var picInfos = [];
47
48        for(var sIdx = 0; sIdx < selections.length; sIdx++){
49            var json = selections[sIdx];
50            if ( 0 > jQuery.trim( json.url.length ) ) {
51                continue;
52            }
53
54            var picInfo = {};
55            picInfo.id = json.id;
56            picInfo.src = json.sizes.full.url;
57
58            if(json.sizes.medium){
59                picInfo.src = json.sizes.medium.url;
60            }
61
62            picInfos.push(picInfo);
63        }
64
65        if(multipleSelection){
66            callback(picInfos);
67        }else{
68            callback(picInfos.length > 0 ? picInfos[0] : null);
69        }
70    });
71
72    uploader.open();
73}
74
75function crp_isJSArray(obj){
76    return (Object.prototype.toString.call( obj ) === '[object Array]')
77}
78
79function crp_truncate(text, maxLength){
80    if(text){
81        if(text.length > 3 && text.length > maxLength - 3){
82            text = text.substring(0,maxLength - 3);
83            text += "..."
84        }
85    }
86    return text;
87}
88
89function crp_loadHref(href, blank){
90    if(!blank){
91        window.location.href = href;
92    }else{
93        window.open(href, '_blank');
94    }
95}
96
97function crp_mgfCloseButtonMarkup(){
98
99    var html = "";
100    html += "<button class='mfp-close'>";
101    html +=     "x"; //"<img class='mfp-close-img'/>";
102    html += "</button>"
103
104    return html;
105}
106
107function crp_esc(str){
108    return jQuery('<div>').text(str).html();
109}
110
111
112var CrpBase64 = {
113
114// private property
115_keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
116
117// public method for encoding
118encode : function (input) {
119    var output = "";
120    var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
121    var i = 0;
122
123    if(!input) return output;
124    input = CrpBase64._utf8_encode(input);
125
126    while (i < input.length) {
127
128        chr1 = input.charCodeAt(i++);
129        chr2 = input.charCodeAt(i++);
130        chr3 = input.charCodeAt(i++);
131
132        enc1 = chr1 >> 2;
133        enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
134        enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
135        enc4 = chr3 & 63;
136
137        if (isNaN(chr2)) {
138            enc3 = enc4 = 64;
139        } else if (isNaN(chr3)) {
140            enc4 = 64;
141        }
142
143        output = output +
144        this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) +
145        this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4);
146
147    }
148
149    return output;
150},
151
152// public method for decoding
153decode : function (input) {
154    var output = "";
155    var chr1, chr2, chr3;
156    var enc1, enc2, enc3, enc4;
157    var i = 0;
158
159    if(!input) return output;
160    input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
161
162    while (i < input.length) {
163
164        enc1 = this._keyStr.indexOf(input.charAt(i++));
165        enc2 = this._keyStr.indexOf(input.charAt(i++));
166        enc3 = this._keyStr.indexOf(input.charAt(i++));
167        enc4 = this._keyStr.indexOf(input.charAt(i++));
168
169        chr1 = (enc1 << 2) | (enc2 >> 4);
170        chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
171        chr3 = ((enc3 & 3) << 6) | enc4;
172
173        output = output + String.fromCharCode(chr1);
174
175        if (enc3 != 64) {
176            output = output + String.fromCharCode(chr2);
177        }
178        if (enc4 != 64) {
179            output = output + String.fromCharCode(chr3);
180        }
181
182    }
183
184    output = CrpBase64._utf8_decode(output);
185
186    return output;
187
188},
189
190// private method for UTF-8 encoding
191_utf8_encode : function (string) {
192    string = string.replace(/\r\n/g,"\n");
193    var utftext = "";
194
195    for (var n = 0; n < string.length; n++) {
196
197        var c = string.charCodeAt(n);
198
199        if (c < 128) {
200            utftext += String.fromCharCode(c);
201        }
202        else if((c > 127) && (c < 2048)) {
203            utftext += String.fromCharCode((c >> 6) | 192);
204            utftext += String.fromCharCode((c & 63) | 128);
205        }
206        else {
207            utftext += String.fromCharCode((c >> 12) | 224);
208            utftext += String.fromCharCode(((c >> 6) & 63) | 128);
209            utftext += String.fromCharCode((c & 63) | 128);
210        }
211
212    }
213
214    return utftext;
215},
216
217// private method for UTF-8 decoding
218_utf8_decode : function (utftext) {
219    var string = "";
220    var i = 0;
221    var c = c1 = c2 = 0;
222
223    while ( i < utftext.length ) {
224
225        c = utftext.charCodeAt(i);
226
227        if (c < 128) {
228            string += String.fromCharCode(c);
229            i++;
230        }
231        else if((c > 191) && (c < 224)) {
232            c2 = utftext.charCodeAt(i+1);
233            string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
234            i += 2;
235        }
236        else {
237            c2 = utftext.charCodeAt(i+1);
238            c3 = utftext.charCodeAt(i+2);
239            string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
240            i += 3;
241        }
242
243    }
244
245    return string;
246}
247}
248
249}
250
251/*
252     FILE ARCHIVED ON 19:21:23 Nov 20, 2022 AND RETRIEVED FROM THE
253     INTERNET ARCHIVE ON 16:30:28 Jun 28, 2026.
254     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
255
256     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
257     SECTION 108(a)(3)).
258*/
259/*
260playback timings (ms):
261  captures_list: 0.8
262  exclusion.robots: 0.092
263  exclusion.robots.policy: 0.076
264  esindex: 0.013
265  cdx.remote: 26.18
266  LoadShardBlock: 217.277 (3)
267  PetaboxLoader3.resolve: 195.79 (5)
268  PetaboxLoader3.datanode: 221.057 (6)
269  load_resource: 232.767 (2)
270  loaddict: 72.361
271*/

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.