PageSourceSearch

https://melbournemarine.com.au/system/scripts/pegboard.site.min.js

js melbournemarine.com.au collected 2026-09-26 19:45:46 UTC 11,435 bytes, 2 lines download raw bytes

1function pageLoad(n,t){pegboard._pageEvents.onPageLoad(n,t)}var DATA_ATTR_CLICK_CONFIRM="confirmclick",DATA_ATTR_DEFAULT_BUTTON="defaultbutton",pegboard;String.endsWith||(String.prototype.endsWith=function(n){return this.substr(this.length-n.length)===n});String.startsWith||(String.prototype.startsWith=function(n){return this.substr(0,n.length)===n});String.trim||(String.prototype.trim=function(){return this.replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")});Array.prototype.findIndex||(Array.prototype.findIndex=function(n){var t;if(this===null)throw new TypeError("Array.prototype.findIndex called on null or undefined");if(typeof n!="function")throw new TypeError("predicate must be a function");var i=Object(this),u=i.length>>>0,f=arguments[1],r;for(t=0;t<u;t++)if(r=i[t],n.call(f,r,t,i))return t;return-1});Array.prototype.find||(Array.prototype.find=function(n){var t;if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof n!="function")throw new TypeError("predicate must be a function");var i=Object(this),u=i.length>>>0,f=arguments[1],r;for(t=0;t<u;t++)if(r=i[t],n.call(f,r,t,i))return r;return undefined});pegboard=pegboard||{item_id:undefined,emptyGuid:"00000000-0000-0000-0000-000000000000",settings:{attach_clickConfirm:!0,attach_defaultButton:!0},_pageEvents:{onInit:function(){},onDocumentReady:function(){pegboard.onDocumentReady._execute()},onWindowReady:function(){pegboard.onWindowReady._execute()},onPageLoad:function(){pegboard.onPageLoad._execute()},onWindowLoad:function(){pegboard.onWindowLoad._execute();pegboard.settings.attach_clickConfirm&&pegboard.web.attach_clickConfirm()},onWindowUnload:function(){pegboard.onWindowUnload._execute()}},onDocumentReady:{methods:[],add:function(n){this.methods.push(n)},clear:function(){this.methods=[]},any:function(){return this.methods.length>0},_execute:function(){this.any()&&this.methods.forEach(function(n){n()})}},onWindowReady:{methods:[],add:function(n){this.methods.push(n)},clear:function(){this.methods=[]},any:function(){return this.methods.length>0},_execute:function(){this.any()&&this.methods.forEach(function(n){n()})}},onPageLoad:{methods:[],add:function(n){this.methods.push(n)},clear:function(){this.methods=[]},any:function(){return this.methods.length>0},_execute:function(){this.any()&&this.methods.forEach(function(n){n()})}},onWindowLoad:{methods:[],add:function(n){this.methods.push(n)},clear:function(){this.methods=[]},any:function(){return this.methods.length>0},_execute:function(){this.any()&&this.methods.forEach(function(n){n()})}},onWindowUnload:{methods:[],add:function(n){this.methods.push(n)},clear:function(){this.methods=[]},any:function(){return this.methods.length>0},_execute:function(){this.any()&&this.methods.forEach(function(n){n()})}},isFunction:function(n){return n&&typeof n=="function"},isNumber:function(n){return(typeof n=="string"||typeof n=="number")&&!isNaN(+n)&&n!==""},request:{href:location.href,queryString:location.search,pathAndQuery:location.pathname+location.search,root:location.href.slice(0,-location.pathname.length),fullPath:location.pathname,filename:location.pathname.substring(location.pathname.lastIndexOf("/")+1),path:location.pathname.endsWith("/")?location.pathname+"default.aspx":location.pathname,extension:location.pathname.lastIndexOf(".")===-1?"":location.pathname.substr(location.pathname.lastIndexOf(".")+1),name:location.pathname.lastIndexOf(".")===-1?location.pathname.substring(location.pathname.lastIndexOf("/")+1):location.pathname.substring(location.pathname.lastIndexOf("/")+1).slice(0,-(location.pathname.substr(location.pathname.lastIndexOf(".")+1).length+1)),load_css:function(n){pegboard.request.get_isCssLoaded(n)||$("head").append($('<link type="text/css" rel="stylesheet" href="'+n+'" />'))},unload_css:function(n){$('link[href="'+n+'"]').remove()},swap_css:function(n,t){$('link[href="'+n+'"]').attr("href",t)},get_isCssLoaded:function(n){return $('link[href="'+n+'"]').length>0},load_js:function(n){$.ajax({url:n,dataType:"script",cache:!0,success:function(){}})}},cookies:{enabled:function(){var n=!1;return pegboard.cookies.set("testing","test",1),pegboard.cookies.get("testing")!==null&&(n=!0,pegboard.cookies.remove("testing")),n},set:function(n,t,i){var u="",r;i&&(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString());document.cookie=escape(n)+"="+escape(t)+u+"; path=/"},get:function(n){for(var t,r=escape(n)+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(r)===0)return unescape(t.substring(r.length,t.length))}return null},remove:function(n){pegboard.cookies.set(n,"",-1)}},ajax:{get_data:function(n,t){t||(t={});var i=null;return $.ajax({url:n,data:t,type:"GET",dataType:"json",contentType:"application/json; charset=utf-8",async:!1,success:function(n){i=n},error:function(){i=null}}),i},get_dataAsync:function(n,t,i,r){t||(t={});$.ajax({url:n,data:t,type:"GET",dataType:"json",contentType:"application/json; charset=utf-8",async:!0,success:function(n,t,r){pegboard.isFunction(i)&&i(n,t,r)},error:function(n,t,i){pegboard.isFunction(r)&&r(n,t,i)}})},get_dataWs:function(n,t){t||(t={});var i={success:!1,data:null};return $.ajax({url:n,data:JSON.stringify(t),type:"POST",dataType:"json",contentType:"application/json; charset=utf-8",async:!1,success:function(n){i.success=!0;i.data=n.d},error:function(n){i.success=!1;i.data=n}}),i},get_dataWsAsync:function(n,t,i,r){t||(t={});$.ajax({url:n,data:JSON.stringify(t),type:"POST",dataType:"json",contentType:"application/json; charset=utf-8",async:!0,success:function(n,t,r){pegboard.isFunction(i)&&i(n,t,r)},error:function(n,t,i){pegboard.isFunction(r)&&r(n,t,i)}})}},array:{indexOf:function(n,t){for(var i=n.length;i--;)if(n[i]===t)return i;return-1},findIndex:function(n,t){for(var r=-1,u=n.length,i=0;i<u;i++)if(t(n[i])){r=i;break}return r},find:function(n,t){var i=this.findIndex(n,t);return i>-1?n[i]:null},contains:function(n,t){return this.indexOf(n,t)>-1},any:function(n,t){return this.indexOf(n,t)>-1},add:function(n,t){n.push(t)},add_distinct:function(n,t){this.contains(n,t)||n.push(t)},insert:function(n,t){n.unshift(t)},insert_distinct:function(n,t){this.contains(n,t)||n.unshift(t)},remove:function(n,t){var i=this.indexOf(n,t);i!==-1&&n.splice(i,1)}},data:{call_service:function(n,t){t||(t={});var r="/system/services/SiteServices.asmx/"+n,i=pegboard.ajax.get_dataWs(r,t);return i.success?i.data:null},call_serviceAsync:function(n,t,i,r){t||(t={});var u="/system/services/SiteServices.asmx/"+n;pegboard.ajax.get_dataWsAsync(u,t,function(n,t,r){pegboard.isFunction(i)&&i(n,t,r)},function(n,t,i){pegboard.isFunction(r)&&r(n,t,i)})},get_id:function(n){return this.call_service("GetId",{path:n})},get_idAsync:function(n,t,i){this.call_serviceAsync("GetId",{path:n},function(n){pegboard.isFunction(t)&&t(n)},function(n,t,r){pegboard.isFunction(i)&&i(n,t,r)})},get_item:function(n,t){return JSON.parse(this.call_service("GetItem",{id:n,columnNames:t}))},get_itemAsync:function(n,t,i,r){this.call_serviceAsync("GetItem",{id:n,columnNames:t},function(n){pegboard.isFunction(i)&&i(JSON.parse(n.d))},function(n,t,i){pegboard.isFunction(r)&&r(n,t,i)})},get_itemDetails:function(n,t,i,r,u){return JSON.parse(this.call_service("GetItemDetails",{id:n,columnNames:t,includeContentRegions:i,includeImageRegions:r,includeImageGallery:u}))},get_itemDetailsAsync:function(n,t,i,r,u,f,e){this.call_serviceAsync("GetItemDetails",{id:n,columnNames:t,includeContentRegions:i,includeImageRegions:r,includeImageGallery:u},function(n){pegboard.isFunction(f)&&f(JSON.parse(n.d))},function(n,t,i){pegboard.isFunction(e)&&e(n,t,i)})},get_itemByPath:function(n,t){return JSON.parse(this.call_service("GetItemByPath",{path:n,columnNames:t}))},get_itemByPathAsync:function(n,t,i,r){this.call_serviceAsync("GetItemByPath",{path:n,columnNames:t},function(n){pegboard.isFunction(i)&&i(JSON.parse(n.d))},function(n,t,i){pegboard.isFunction(r)&&r(n,t,i)})},get_content:function(n,t){return JSON.parse(this.call_service("GetItemContent",{id:n,region:t}))},get_contentAsync:function(n,t,i,r){this.call_serviceAsync("GetItemContent",{id:n,region:t},function(n){pegboard.isFunction(i)&&i(JSON.parse(n.d))},function(n,t,i){pegboard.isFunction(r)&&r(n,t,i)})},get_image:function(n,t){return JSON.parse(this.call_service("GetItemImage",{id:n,region:t}))},get_imageAsync:function(n,t,i,r){this.call_serviceAsync("GetItemImage",{id:n,region:t},function(n){pegboard.isFunction(i)&&i(JSON.parse(n.d))},function(n,t,i){pegboard.isFunction(r)&&r(n,t,i)})},get_children:function(n,t,i,r,u,f){return JSON.parse(this.call_service("GetChildItemsByTypeOrderBy",{parentId:n,objectType:t,orderBy:i,columnNames:r,skip:u,take:f}))},get_childrenAsync:function(n,t,i,r,u,f,e,o){this.call_serviceAsync("GetChildItemsByTypeOrderBy",{parentId:n,objectType:t,orderBy:i,columnNames:r,skip:u,take:f},function(n){pegboard.isFunction(e)&&e(JSON.parse(n.d))},function(n,t,i){pegboard.isFunction(o)&&o(n,t,i)})},get_childrenWhere:function(n,t,i,r,u,f,e){return JSON.parse(this.call_service("GetChildItemsByCategoryWhereOrderBy",{parentId:n,categoryId:t,where:i,orderBy:r,columnNames:u,skip:f,take:e}))},get_childrenWhereAsync:function(n,t,i,r,u,f,e,o,s){this.call_serviceAsync("GetChildItemsByCategoryWhereOrderBy",{parentId:n,categoryId:t,where:i,orderBy:r,columnNames:u,skip:f,take:e},function(n){pegboard.isFunction(o)&&o(JSON.parse(n.d))},function(n,t,i){pegboard.isFunction(s)&&s(n,t,i)})},get_childrenCount:function(n,t){return this.call_service("GetChildItemsByTypeCount",{parentId:n,objectType:t})},get_childrenCountAsync:function(n,t,i,r){this.call_serviceAsync("GetChildItemsByTypeCount",{parentId:n,objectType:t},function(n){pegboard.isFunction(i)&&i(JSON.parse(n.d))},function(n,t,i){pegboard.isFunction(r)&&r(n,t,i)})},get_childrenWhereCount:function(n,t,i){return this.call_service("GetChildItemsByCategoryWhereCount",{parentId:n,categoryId:t,where:i})},get_childrenWhereCountAsync:function(n,t,i,r,u){this.call_serviceAsync("GetChildItemsByCategoryWhereCount",{parentId:n,categoryId:t,where:i},function(n){pegboard.isFunction(r)&&r(JSON.parse(n.d))},function(n,t,i){pegboard.isFunction(u)&&u(n,t,i)})},updateCollectionItemSortOrderAsync:function(n,t,i,r,u){this.call_serviceAsync("UpdateSortOrder",{collectionId:n,dragItemId:t,dropItemId:i},function(){pegboard.isFunction(r)&&r()},function(n,t,i){pegboard.isFunction(u)&&u(n,t,i)})}},web:{confirm:function(n,t){if(!confirm(t))return n.stopPropagation(),!1},attach_clickConfirm:function(){var n="data-"+DATA_ATTR_CLICK_CONFIRM,t=$("["+n+"]");if(t.length>0)t.on("click",function(t){return pegboard.web.confirm(t,$(this).attr(n))})}},telerik:{autoCompleteEnterFix:function(){var n=Telerik.Web.UI.RadAutoCompleteBox.prototype._onKeyDown;Telerik.Web.UI.RadAutoCompleteBox.prototype._onKeyDown=function(t){n.apply(this,[t]);this.get_attributes().getAttribute("buttonCtl")!=null&&t.keyCode==Sys.UI.Key.enter&&(this._onBlur(),$get(this.get_attributes().getAttribute("buttonCtl")).click())}}}};$(function(){pegboard._pageEvents.onInit()});$(document).ready(function(n,t){pegboard._pageEvents.onDocumentReady(n,t)});$(window).ready(function(n,t){pegboard._pageEvents.onWindowReady(n,t)});$(window).load(function(n,t){pegboard._pageEvents.onWindowLoad(n,t)});$(window).unload(function(n,t){pegboard._pageEvents.onWindowUnload(n,t)});
2//# sourceMappingURL=pegboard.site.min.js.map

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.