PageSourceSearch

https://www.monmouthcollege.edu/live/resource/js/%5Clivewhale%5Csc…ewhale%5Cscripts%5Ccommon.rev.1771340830.js

js monmouthcollege.edu collected 2026-09-24 18:49:44 UTC 22,154 bytes, 27 lines download raw bytes

1/*      Request ID: e9c7303dbfac779e5766c65e82c2ac2d_1771340830 (02/17/2026 11:37am) (tcxBEsIwCEDRq3gADUdyYoqGDoRKQph6eusd6uIv/4OZDSLiVxJtoj5qUWZ8YcLFYfMHU7nXIQxME6NmRujFaBsdOJxgfTvanjhuOtE472nt1wucKjcd9PwHbLktKvTBM+yickyH9AU=)      */
2
3
4
5/*      Resource ID: 28977743e94a173bf1172312efb (jquery.lw-overlay.js, minified by uglifyjs) (02/17/2026 11:31am) (A:11041, G:6260, K:6260)      */
6
7(()=>{const o=(typeof livewhale!=="undefined"&&livewhale!==null?livewhale.jQuery:undefined)||window.jQuery;o.widget("lw.overlay",{options:{destroyOnClose:true,id:false,customClass:null,closeSelector:"",closeButton:true,closeOnBodyClick:false,backdrop:true,autoOpen:true,margin:30,width:null,height:null,title:null,footer:null,size:"medium",zIndex:null,confirmBeforeClosingMessage:""},_create(){const e=this.options;const t=this.element;this.orig_css={display:t[0].style.display};this.orig_pos={parent:t.parent(),index:t.parent().children().index(t)};this.$wrapper=o('<div/ class="lw_element lw_overlay_wrapper"/>');this.$dialog=o('<div class="lw_overlay" role="dialog" aria-modal="true" tabindex="-1"/>');this.$contents=o('<div class="lw_overlay_contents"/>');this.$content_body=o('<div class="lw_overlay_body"/>').html(t.show()).appendTo(this.$contents);this.$body=o("body");const{$dialog:s}=this;if(e.backdrop){this.$backdrop=o('<div class="lw_overlay_backdrop"/>')}if(e.zIndex){this.$wrapper.css("z-index",parseInt(e.zIndex,10)+10);if(e.backdrop){this.$backdrop.css("z-index",e.zIndex)}}if(e.width){s.css("width",e.width)}if(e.height){this._setHeight(e.height)}this._setSize(e.size);const i=[".lw_overlay_close"];if(e.closeSelector){i.push(e.closeSelector)}if(e.closeButton){this.$dialog.html('<a class="lw_overlay_close_button" href="#" aria-label="Close">&times;</a>');i.push(".lw_overlay_close_button")}if(e.customClass){this.$dialog.addClass(e.customClass)}if(e.id){this.$dialog.attr("id",e.id)}if(i.length){this.$dialog.on("click.lw",i.join(", "),e=>{e.preventDefault();this.close();return true})}if(this.options.closeOnBodyClick){this.$wrapper.on("click",()=>{this.close();return true});this.$dialog.on("click",e=>{e.stopPropagation();return true})}this.$dialog.on("keydown",e=>{if(27===e.keyCode){e.preventDefault();this.close()}return true});this.$wrapper.append(this.$dialog.append(this.$contents)).appendTo(this.$body);if(e.title){this._renderHeader(e.title)}if(e.footer){this._renderFooter(e.footer)}if(e.confirmBeforeClosingMessage){this.confirm_message=e.confirmBeforeClosingMessage}this._trigger("create");return true},_init(){if(this.options.autoOpen){this.open()}return this},_setHeight(e){this.$dialog.height(e);this.$contents.height(e);return this},_setMaxHeight(e){this.$dialog.css("max-height",e);this.$contents.css("max-height",e);return this},_setSize(e){const t={large:"overlay-lg",medium:"overlay-md",small:"overlay-sm"};if(!e||!t[e]){return}this.$dialog.removeClass(t.large+" "+t.medium+" "+t.small);this.$dialog.addClass(t[e]);return this},_destroy(){const e=this.element;const t=this.getOverlaysOpen();if(t>1){this.$body.data("lw_overlays_open",t-1)}else{this.$body.data("lw_overlays_open",0);this.$body.removeClass("lw_overlay_open")}e.detach();if(this.$wrapper){this.$wrapper.remove();this.$wrapper=null}if(this.$backdrop){this.$backdrop.remove()}e.css(this.orig_css);if(this.orig_pos.parent.length){const s=this.orig_pos.parent.children().eq(this.orig_pos.index);if(s.length&&s[0]!==e[0]){s.before(e)}else{this.orig_pos.parent.append(e)}}},_setOption(e,t){if(e==="width"){this.$dialog.css(e,t)}if(e==="height"){this._setHeight(t)}if(e==="size"){this._setSize(t)}if(e==="title"){this._renderHeader(t)}if(e==="footer"){this._renderFooter(t)}this._super(e,t);return this},open(){if(this.$wrapper.is(":visible")){return this}livewhale.in_overlay=true;this.$wrapper.show();this.last_focus=document.activeElement;this.$dialog.trigger("focus");this.trapKeyboardFocus();if(this.options.backdrop){this.$backdrop.appendTo(this.$body)}const e=this.getOverlaysOpen();this.$body.data("lw_overlays_open",e+1);this.$body.addClass("lw_overlay_open");this._trigger("open");return this},trapKeyboardFocus(){this.focusable_elements=this.$wrapper.find('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled]), li[tabindex=0]').not(":hidden");this.first_focusable_element=this.focusable_elements[0];this.last_focusable_element=this.focusable_elements[this.focusable_elements.length-1];this.$wrapper.off("keydown").on("keydown",e=>{if(!(e.key==="Tab"||e.keyCode===9)){return}if(e.shiftKey){if(document.activeElement===this.first_focusable_element||document.activeElement===this.$dialog[0]){this.last_focusable_element.focus();e.preventDefault()}}else{if(document.activeElement===this.last_focusable_element||document.activeElement===this.$dialog[0]){this.first_focusable_element.focus();e.preventDefault()}}})},getOverlaysOpen(){const e=this.$body.data("lw_overlays_open");return e?parseInt(e,10):0},addConfirmBeforeClosingMessage(e){this.confirm_message=e},clearConfirmBeforeClosingMessage(){this.confirm_message=false},close(){if(this.confirm_message){livewhale.prompt("",this.confirm_message,"warning",{"Close window":()=>{this.clearConfirmBeforeClosingMessage();this.close()},Cancel:o.noop});return false}if(this.last_focus){this.last_focus.focus()}if(this.options.destroyOnClose){this.destroy();livewhale.in_overlay=false}else{this.$wrapper.hide();if(this.options.backdrop){this.$backdrop.detach()}const e=this.getOverlaysOpen();if(e>1){this.$body.data("lw_overlays_open",e-1)}else{this.$body.data("lw_overlays_open",0);this.$body.removeClass("lw_overlay_open");livewhale.in_overlay=false}}this._trigger("close");return this},html(e){this.element.html(e);this.trapKeyboardFocus();return this},append(e){this.element.append(e);this.trapKeyboardFocus();return this},_renderHeader(e){if(!this.$header){const t=`\
8<div class="lw_overlay_header">
9<button type="button" class="lw_overlay_close" aria-label="Close">×</button>
10<h3></h3>
11</div>\
12`;this.$header=o(t).prependTo(this.$contents);if(this.options.closeButton){this.$dialog.find(".lw_overlay_close_button").remove()}else{this.$header.find(".lw_overlay_close").remove()}}this.$header.find("> h3").text(e);return this},_renderFooter(e){let t;if(!this.$footer){t=`\
13<div class="lw_overlay_footer">
14</div>\
15`;this.$footer=o(t).appendTo(this.$contents)}this.$footer.html(e);return this}
15,animatedResize(e,t,s){this.$contents.height(t);this.$dialog.animate({width:e,height:t},"fast",()=>{if(o.isFunction(s)){s.apply(this)}});return this}})})();
16
17/*      Resource ID: c58ee5d293757da9a6264999beb (jquery.lw-notify.js, minified by uglifyjs) (02/17/2026 11:31am) (A:2542, G:1627, K:1627)      */
18
19(()=>{const o=(typeof livewhale!=="undefined"&&livewhale!==null?livewhale.jQuery:undefined)||window.jQuery;o.widget("lw.notify",{options:{id:false,message:"Your Message Here :  )",details:false,custom_class:null,type:false,slideIn:150,duration:null,close_button:true,callback:o.noop,log:true},_create(){const s=this.options;const e=this.element;this._trigger("beforeOpen");const t=this.$notice=o('<div class = "lw_notice"/>');if(s.type){t.addClass("lw_msg_"+s.type)}if(s.id){t.attr("id",s.id)}let i='<div class="lw_container">'+s.message;if(s.close_button){i+='<a class="lw_notice_close_button" href="#">&times;</a>'}if(s.details){i+='<div class="lw_notice_details">'+s.details+"</div>"+'<a href="#" class="lw_notice_showdetails">More...</a>'}i+="</div>";t.append(i);let l=e.find("> .lw_notices");if(!l.length){l=o('<div class="lw_notices lw_element"/>').appendTo(e)}if(s.custom_class){l.addClass(s.custom_class)}t.hide().appendTo(l).slideDown(s.slideIn,()=>{this._trigger("open")});if(s.close_button){t.on("click",".lw_notice_close_button",()=>{this.close()})}if(s.details){t.on("click",".lw_notice_showdetails",()=>
19{this.showDetails();return true})}if(s.duration){let e;t.on("mouseover",()=>{clearTimeout(e)}).mouseleave(()=>{e=setTimeout(()=>{this.close()},s.duration)}).mouseleave()}return this},showDetails(){o(".lw_notices_details").overlay("close");o('<div class="lw_notices_details" id="lw_notices_details_'+this.options.id+'"/>').append(this.$notice.clone(true).removeAttr("id")).overlay();return false},close(){this._trigger("beforeClose");this.$notice.slideUp(150,()=>{this.destroy();this._trigger("close")})}})})();
20
21/*      Resource ID: f613b1a290b11761a761cc16ecb (jquery.lw-randomize.js, minified by uglifyjs) (02/17/2026 10:11am) (A:4232, G:1801, K:1801)      */
22
23(()=>{const h=(typeof livewhale!=="undefined"&&livewhale!==null?livewhale.jQuery:undefined)||window.jQuery;h.widget("lw.randomize",{options:{},_create(){this.$ul=this.element.find("ul");this.is_clean=this.element.hasClass("lw_widget_clean_markup");this.randomize();this.initRandomizedListWidgets();h("body").trigger("randomize.lw",{element:this.element.get(0)})},randomize(){const a=this.element;const o=this;h.each(this.$ul,function(){const e=h(this);const i=e.children("li");e.hide();let l=i.length;while(l){let e=parseInt(Math.random()*l,10),t=i[--l];i[l]=i[e];i[e]=t}i.each(function(e,t){h(t).removeClass(function(e,t){return(t.match(/lw_item_\d+/g)||[]).join(" ")}).addClass("lw_item_"+(e+1))});i.appendTo(e);if(a.hasClass("lw_widget_randomized_single")){if(i.eq(0).hasClass("lw_htmlencoded")){let t=i.eq(0).html();const s=t.match(/title="&lt;.+?&gt;"/gi);if(s){let e;for(var n=0;n<s.length;n++){e=s[n].substring(6,s[n].length-1);t=t.replace(s[n],'title="'+e.replace(/&/gi,"&amp;").replace(/</gi,"&lt;").replace(/>/gi,"&gt;").replace(/"/gi,"&amp;quot;")+'"')}}t=t.replace(/&gt;/gi,">").replace(/&lt;/gi,"<").replace(/&amp;/gi,"&");t=t.replace(/lw_quot;/g,"quot;");i.eq(0).html(t);i.eq(0).removeClass("lw_htmlencoded");i.eq(0).randomize()}const t=i.eq(0).show();i.not(t).hide().find("iframe").each(function(){const t=a;try{t[0].document.execCommand("Stop")}catch(e){try{t[0].stop()}catch(e){}}})}if(!o.is_clean){e.show().removeClass("lw_widget_inactive_results")}else if(!a.hasClass("lw_widget_slideshow")){if(a.hasClass("lw_widget_randomized_single")){e.before(e.children("li").eq(0).html())}else{e.children("li").each(function(){e.before(h(this).html())})}e.remove()}})},initRandomizedListWidgets(){var e=this.element.find(".lw_widget");e.each(function(e,t){livewhale.lib.initWidget(t)})}})})();
24
25/*      Resource ID: 1aa19929feb672e9b776deadb79 (common.js, minified by uglifyjs) (02/17/2026 10:08am) (A:24258, G:11631, K:11631)      */
26
27(function(p,f){if(!window.console){window.console={log:function(){},warn:function(){},error:function(){}}}var a;window.onerror=function(e,t,i){e="Javascript Error (line "+i+"): "+e;if(!a||e!==a){var r="/livewhale/backend.php?livewhale=log_error"+"&error="+encodeURIComponent(e)+"&url="+encodeURIComponent(t);if(f.remote_host){r=f.remote_host+r}p.ajax({url:r,error:false,timeout:6e4});a=e}};p.ajaxSetup({cache:true});f.lib={};f.lib.loadCSS=function(e){this._css_files=this._css_files||{};if(!this._css_files[e]){p("<link>").appendTo(p("head")).attr({type:"text/css",rel:"stylesheet"}).attr("href",e);this._css_files[e]=true}};f.lib.loadJS=function(e,t,i){var r=this.getJSFiles();i=i||this;if(!r[e]){p.ajax({url:e,crossDomain:true,dataType:"script",success:function(){if(p.isFunction(t)){t.apply(i)}}});r[e]=true}else{if(p.isFunction(t)){t.apply(i)}}};f.lib.loadJSFiles=function(e,t,i){var r=e.shift();i=i||this;this.loadJS(r,function(){if(0===e.length){if(p.isFunction(t)){t.apply(i)}}else{this.loadJSFiles(e,t,i)}})};f.lib.loadScript=function(e,t){let i=this.getJSFiles();if(!i[e]){const r=document.createElement("script");r.src=e;if(typeof t==="function"){r.onload=t}document.head.appendChild(r)}else{if(typeof t==="function"){t()}}};f.lib.loadScripts=function(e,t){if(!Array.isArray(e)||!e.length){return}let i=e.length;let r=typeof t==="function"?()=>{i=i-1;if(i===0)t()}:undefined;e.forEach(e=>{this.loadScript(e,r)})};f.lib.getJSFiles=function(){var r=this,e=p("script");this._js_files=this._js_files||{};e.each(function(e,t){var i=p(t);if(i.attr("src")){r._js_files[i.attr("src")]=true}});this.getJSFiles=function(){return r._js_files};return this.getJSFiles()};f.lib.getCookie=function(e){var t="";
27if(document.cookie&&document.cookie!==""){var i=document.cookie.split(";");for(var r=0;r<i.length;r++){var a=p.trim(i[r]);if(a.substring(0,e.length+1)===e+"="){t=decodeURIComponent(a.substring(e.length+1));break}}}return t};f.lib.setCookie=function(e,t,i,r,a,n){var o=new Date;o.setTime(o.getTime());var l=new Date(o.getTime()+i*1e3);document.cookie=e+"="+encodeURIComponent(t)+(i?";expires="+l.toGMTString():"")+(r?";path="+r:"")+(a?";domain="+a:"")+(n?";secure":"")+";sameSite=Lax"};f.lib.getQueryStringParam=function(e){var t=window.location.search.substring(1).split("&");for(var i=0;i<t.length;i++){var r=t[i].split("=");if(r[0]===e){return decodeURIComponent(r[1])}}return false};f.lib.htmlEncode=function(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};f.lib.htmlDecode=function(e){return String(e).replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};f.lib.padWithZeros=function(e,t){e=String(e);while(e.length<t){e="0"+e}return e};f.lib.localStore={get:function(e){if(!this.has()||!e)return;var t=window.localStorage[e]||"";if(t&&(t.charAt(0)==="{"||t.charAt(0)==="[")){JSON.parse(t)}else{return t}},set:function(e,t){if(!this.has()||!e||!t)return;if(p.isPlainObject(t)){window.localStorage[e]=JSON.stringify(t)}else{window.localStorage[e]=t}},has:function(){var t=true,e="livewhale-test-string";try{window.localStorage.setItem(e,e);window.localStorage.removeItem(e)}catch(e){t=false}this.has=function(){return t};return this.has()}};f.lib.phpTojQueryUIDateFormat=function(e){var i={d:"dd",D:"D",j:"d",l:"DD",z:"o",F:"MM",m:"mm",M:"M",n:"m",Y:"yy",y:"y"};return e.replace(/\\?(.?)/gi,function(e,t){return e in i?i[e]:t})};f.lib.initDatepicker=function(e,t,i){if(!e||!e.length){return}var a=livewhale["date_format_"+f.timezone_format];var r={firstDay:"euro"===f.timezone_format?1:0,hideIfNoPrevNext:true,constrainInput:true,dateFormat:this.phpTojQueryUIDateFormat(a)};if("euro"===f.timezone_format){a="dd-mm-yy"}else{a="mm/dd/yy"}var n=a.replace("yy","yyyy");e.attr("data-date-format",n).focus(function(){p(this).attr("data-placeholder",p(this).attr("placeholder"));p(this).attr("placeholder",n)}).blur(function(){p(this).attr("placeholder",p(this).attr("data-placeholder"))});e.each(function(){p("label[for="+p(this).attr("id")+"]").append(' <span class="lw_sr_only">('+n.toUpperCase()+")</span>")});if(t)r.minDate=new Date;if(p.fn.datepicker){e.datepicker(r);if(i){e.on("paste",function(e){var t=e.originalEvent.clipboardData.getData("Text");var i=false;var r;if(a==="mm/dd/yy"){r=t.split("/");if(r.length===3&&r[0].match(/^\d{1,2}$/)&&Number(r[0])>=1&&Number(r[0])<=12&&r[1].match(/^\d{1,2}$/)&&Number(r[1])>=1&&Number(r[1])<=31&&r[2].match(/^\d{4}$/)){i=true}}else if(a==="dd-mm-yy"){r=t.split("-");if(r.length===3&&r[0].match(/^\d{1,2}$/)&&Number(r[0])>=1&&Number(r[0])<=31&&r[1].match(/^\d{1,2}$/)&&Number(r[1])>=1&&Number(r[1])<=12&&r[2].match(/^\d{4}$/)){i=true}}if(!i){e.preventDefault()}})}}return e};f.lib.stringToJSON=function(e){var i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};var t=/["\\\x00-\x1f\x7f-\x9f]/g;return t.test(e)?'"'+e.replace(t,function(e){var t=i[e];if(t)return t;t=e.charCodeAt();return"\\u00"+Math.floor(t/16).toString(16)+(t%16).toString(16)})+'"':'"'+e+'"'};f.lib.initWidget=function(e){var t=p(e),i=t.find(".lw_widget_metadata"),r=f.lib,a=[],n=t.attr("class").split(" "),o;for(var l=0;l<n.length;l++){if(n[l].match(/^lw_widget_type_/)&&!n[l].match(/^lw_widget_type_gallery_/)){o=n[l].replace("lw_widget_type_","");break}}i.find(".lw_widget_resources_css").each(function(e,t){var i=p(t).attr("data-href");if(f.remote_host&&i.charAt(0)==="/"){i=f.remote_host+i}r.loadCSS(i)});i.find(".lw_widget_resources_js").each(function(e,t){var i=p(t).attr("data-href");if(f.remote_host&&i.charAt(0)==="/"){i=f.remote_host+i}a.push(i)});if("places"===o){var s=a.shift();if(typeof google==="object"&&google.maps){if(p.fn.lwPlaces){t.lwPlaces()}else{r.loadScripts(a,function(){t.lwPlaces()})}}else{window.loadLivewhalePlacesJs=function(){r.loadScripts(a,function(){t.lwPlaces()})};p.ajax({url:s+"&callback=loadLivewhalePlacesJs",crossDomain:true,dataType:"script",success:function(){}})}}else{var c=function(){p("body").trigger("widgetLoad.lw",[o,e])};if(a.length){r.loadScripts(a,c)}else{c()}}};f.lib.regex={url:/^(?:(?:ht|f)tp(?:s?)\:\/\/|~\/|\/)?(?:\w+:\w+@)?((?:(?:[-\w\d{1-3}]+\.)+(?:com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|edu|co\.uk|ac\.uk|it|fr|tv|museum|asia|local|travel|[a-z]{2}))|((\b25[0-5]\b|\b[2][0-4][0-9]\b|\b[0-1]?[0-9]?[0-9]\b)(\.(\b25[0-5]\b|\b[2][0-4][0-9]\b|\b[0-1]?[0-9]?[0-9]\b)){3}))(?::[\d]{1,5}
27)?(?:(?:(?:\/(?:[-\w~!$+|.,=]|%[a-f\d]{2})+)+|\/)+|\?|#)?(?:(?:\?(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=?(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)(?:&(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=?(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)*)*(?:#(?:[-\w~!$ |\/.,*:;=]|%[a-f\d]{2})*)?$/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/};f.lib.copyToClipboard=function(e){var t=document.createElement("textarea"),i=false;t.style.position="fixed";t.style.top=0;t.style.left=0;t.style.width="2em";t.style.height="2em";t.style.padding=0;t.style.border="none";t.style.outline="none";t.style.boxShadow="none";t.style.background="transparent";t.value=e;document.body.appendChild(t);t.select();try{document.execCommand("copy");i=true}catch(e){console.log("Unable to copy")}document.body.removeChild(t);return i};f.lib.getWidgetMarkup=function(e,t,i){if(!e&&!t)return"";if(!i)i={};var r="<widget";if(e){r+=' id="'+e+'"'}if(t){r+=' type="'+t+'"'}r+=">";function a(e,t){var i="";if(!t)return"";if(p.isPlainObject(t)){i='<arg id="'+e+'"';if(p.isPlainObject(t)&&!p.isEmptyObject(t)){p.each(t,function(e,t){if(e==="value")return true;i+=" "+e+'="'+t+'"'})}i+=">"+t.value+"</arg>"}else if(typeof t==="string"||typeof t==="number"){i='<arg id="'+e+'">'+t+"</arg>"}return i}p.each(i,function(i,e){if(p.isArray(e)){p.each(e,function(e,t){r+=a(i,t)})}else{r+=a(i,e)}});r+="</widget>";return r};f.lib.hasCurrentDomainAndTld=function(e){var t=window.location.hostname.split(".");var i;if(t.length>=2){i=t[t.length-2]+"."+t[t.length-1]}var r=new RegExp("^(https?:)?(//)?([^.]+.)?"+i);return e.match(r)!==null};f.lib.hasWebPSupport=function(e){var t=false;if(livewhale.has_webp){var i=document.createElement("canvas");if(i.getContext&&i.getContext("2d")&&i.toDataURL("image/webp").indexOf("data:image/webp")===0){t=true}}f.lib.hasWebPSupport=function(){return t};return t};f.prompt=function(e,t,a,i,r){var n;var o={success:"success",failure:"danger",warning:"warning"};if(!o[a])return;if(typeof a==="object"){i=a;a=false}i=i||{Okay:null};var l=p("<div>"+t+"</div>"),s=p("<div/>");function c(e,t,i){var r;i=i||a;i=o[i]||i;if(typeof t!=="function"){t=p.noop}if(e==="Cancel"){r=p('<a href="#">cancel</a>').appendTo(p('<span class="lw_cancel">or </span>').appendTo(s))}else{r=p('<button class="btn btn-'+i+'" type="button">'+e+"</button>").appendTo(s)}r.on("click",function(e){e.preventDefault();l.overlay("close");t.apply(l);return true})}if(p.isArray(i)){p.each(i,function(e,t){c(t.title,t.callback,t.type)})}else if(p.isPlainObject(i)){p.each(i,function(e,t){c(e,t)})}l.overlay({customClass:"lw_prompt"+(a?" lw_msg_"+a:""),close:r||p.noop,closeButton:false,closeSelector:".lw_close",title:e,footer:s.children(),zIndex:1160})};f.previewImage=function(s,c,f){if(screen.width&&screen.width<500){return false}var u;var h=function(s,e,c){var f=s.closest(".lw_overlay"),u=s.find(".lw_spinner").show();var h=p("<img/>").attr("alt","Image Preview").attr("src",e).addClass("loading").appendTo(s);h.imagesLoaded().done(function(){var e=s.outerWidth()-s.width(),t=s.outerHeight()-s.height(),i=h.width()+e,r=h.height()+t,a=r,n=f.find(".lw_overlay_footer").css("opacity",0),o;if(c){o=p("<p>"+c+"</p>");n.css("width",i+"px").html(o);a=r+n.outerHeight();n.css("width","auto")}s.overlay("animatedResize",i,a,function(){f.find(".lw_overlay_body").height(r);n.css("opacity",1)});var l=h.siblings("img");u.hide();h.removeClass("loading").addClass("active");l.removeClass("active");setTimeout(function(){l.remove()},1e3)})};var d={init:function(e,t,i,r){var a=this,n=e.closest(".lw_overlay");if(!p.isArray(t)||!t.length)return;this.$overlay=e;p.each(t,function(e,t){if(t.src===i){a.current_image=e;return false}});if(typeof this.current_image==="undefined"){t.unshift({src:i,caption:r});this.current_image=0}var o=this.image_count=t.length;this.images=t;this.$prev=p('<a class="lw_scroll lw_prev"></a>');this.$next=p('<a class="lw_scroll lw_next"></a>');n.find(".lw_overlay_body").css("height","433px").append(this.$prev).append(this.$next);n.on("click",".lw_scroll",function(e){e.preventDefault();if(p(this).hasClass("lw_prev")){a.prev()}else{a.next()}return true});this.show()},next:function(){if(this.current_image<this.image_count-1){this.current_image++}this.show()},prev:function(){if(this.current_image>0){this.current_image--}this.show()},show:function(){var e=this.images[this.current_image];if(this.current_image<1){this.$prev.hide()}else{this.$prev.show()}if(this.current_image===this.image_count-1){this.$next.hide()}else{this.$next.show()}h(this.$overlay,e.src,e.caption)}};u=p('<div class="lw_image_preview_image"><div class="lw_spinner"/></div>');u.overlay({customClass:"lw_image_preview",width:650,height:433,zIndex:1500,closeOnBodyClick:false,title:" ",footer:" ",open:function(e,t){var i=this,r=p(this),a=p(e.target),n,o,l;if(p.isArray(f)&&f.length){d.init(u,f,s,c)}else{h(u,s,c)}}})};p(":checkbox[readonly],:radio[readonly]").click(function(){return false})})(livewhale.jQuery||window.jQuery,livewhale);

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.