PageSourceSearch

https://www.esperance.wa.gov.au/profiles/esperance/Includes/Scripts/main.min.js

js esperance.wa.gov.au collected 2026-09-24 23:20:57 UTC 15,148 bytes, 1 lines download raw bytes

1function wcagFixes(){$(".ui-widget").removeAttr("unselectable");$("#nearme .nearme-inner .control .address-search span").removeAttr("unselectable");$(".k-list-container ul").removeAttr("unselectable");$(".k-list-container div").removeAttr("unselectable");$("ul.k-list-ul").removeAttr("unselectable");$("#nearme .nearme-inner .control .address-search span").removeAttr("title");$("#nearme .nearme-inner .control .address-search span").removeAttr("role");$("#nearme .nearme-inner .control .address-search input").removeAttr("role");$("iframe.goog-te-menu-frame").removeAttr("frameborder");$(".ui-widget-content.ui-autocomplete").removeAttr("unselectable");$(".ui-widget-content").removeAttr("unselectable");$(".k-icon").removeAttr("unselectable");$(".k-list-scroller").removeAttr("unselectable");$(".k-list").removeAttr("unselectable");$("link").removeAttr("charset");$("iframe").removeAttr("frameborder");$("iframe.skiptranslate").removeAttr("frameborder");$(".RadCaptcha").removeAttr("disabled");$(".RadCaptcha input").removeAttr("autocomplete");$(".k-input-inner").removeAttr("aria-expanded");$(".events-panel input").removeAttr("autocomplete")}function contentSearchToggle(){$(".hs-toggle").on("click",function(){$(".content-search").toggleClass("show-search")})}function FBShare(){$(".facebookWall .item-share").on("click",function(n){n.stopPropagation();var t=$(this).next("a").attr("href"),i=t,r="https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(i);window.open(r,"_blank","width=600,height=400")})}function matchHeights(){$("#news .news-item .details .title").matchHeight({remove:!0});$("#news .news-item .details .summary").matchHeight({remove:!0});$(".eventsfeed .match-tl").matchHeight({remove:!0});$(window).width()>974&&($("#news .news-item .details .title").matchHeight(),$("#news .news-item .details .summary").matchHeight(),$(".eventsfeed .match-tl").matchHeight())}function mobileCarousel(n){$(n).each(function(){var t=$(n);$(window).width()<974?(t.addClass("owl-carousel"),t.owlCarousel({autoplay:!1,loop:!0,lazyLoad:!1,autoplayTimeout:4e3,autoplayHoverPause:!0,dots:!0,video:!1,margin:14,nav:!1,responsiveRefreshRate:500,navText:["&#xf104;","&#xf105;"],responsive:{0:{items:1},580:{items:2}}})):(t.trigger("destroy.owl.carousel"),t.children("div.owl-controls").remove())})}function weatherwidgetwcag(n,t,i,r,u,f,e,o,s,h,c){n===""&&(n="#1f567c");t===""&&(t="rgba(255, 255, 255, 0.02)");i===""&&(i="#fff");r===""&&(r="#ffb4b4");u===""&&(u="#93bffe");f===""&&(f="#febc2f");e===""&&(e="#fff");o===""&&(o="#dfdede");s===""&&(s="#1f567c");h===""&&(h="#93bffe");c===""&&(c="#dfdede");$(document.body).hasClass("wcag-highcontrast")?$("#footer-weather .weatherwidget-io").attr({"data-basecolor":"#000","data-accent":"rgba(255, 255, 255, 0)","data-textcolor":"#fff","data-highcolor":"#fff","data-lowcolor":"#fff","data-suncolor":"#fff","data-mooncolor":"#fff","data-cloudcolor":"#fff","data-cloudfill":"#fff","data-raincolor":"#fff","data-snowcolor":"#fff"}):$("#footer-weather .weatherwidget-io").attr({"data-basecolor":n,"data-accent":t,"data-textcolor":i,"data-highcolor":r,"data-lowcolor":u,"data-suncolor":f,"data-mooncolor":e,"data-cloudcolor":o,"data-cloudfill":s,"data-raincolor":h,"data-snowcolor":c})}function BindMediaElements(){typeof $("#element").mediaelementplayer=="function"&&$("video, audio").mediaelementplayer({pluginPath:"https://cdnjs.com/libraries/mediaelement/",shimScriptAccess:"always",stretching:"responsive",features:["skipback","playpause","current","progress","duration","fullscreen","jumpforward","volume","googletagmanager"],jumpForwardInterval:15,jumpForwardText:"Jump forward %1 seconds",skipBackInterval:15,skipBackText:"Skip back %1 seconds"})}function BindLandingPageNav(){$(".landingpage-navigation").length&&($(".landingpage-navigation .landing-page-items .item a .image-wrapper").imagefill(),$(".landingpage-navigation").show())}function SylesForAdjustFont(){}function BindAlertsFeed(){var i,n,t;$(".alertsfeed-list").length>0&&($(".alertsfeed-list").attr("data-dismissible")=="true"&&(i=Cookies.get(alertCookieId),i!==undefined&&$(".alertsfeed-list .alertfeed-item").each(function(){var n=$(this).attr("data-alertId");$.inArray(n,i.split(","))>-1&&$(this).remove()})),n=$(".alertsfeed-list"),t=$(".alertsfeed-list .alertfeed-item").length>1?!0:!1,n.owlCarousel({autoplay:t,loop:t,lazyLoad:!1,autoplayTimeout:4e3,auto
1playHoverPause:!0,dots:!1,items:1,video:!1,nav:t,animateOut:"fadeOut",navText:["&#xf053;","&#xf054;"],onRefresh:function(){n.find("div.owl-item .alertfeed-item").height("")},onRefreshed:function(){n.find("div.owl-item .alertfeed-item").height(n.innerHeight())},onChanged:function(t){n.attr("data-currentIndex",t.item.index)}}),$(".alertsfeed-list").attr("data-dismissible")=="true"&&AlertDismissClick())}function AlertDismissClick(){$('.alertsfeed-list .alertfeed-item button[data-dismiss="alert"]').on("click",function(){var t=$(this).attr("data-alertId"),i=!1,n=Cookies.get(alertCookieId);n!==undefined&&n!==""?$.inArray(t,n.split(","))==-1&&(i=!0,n=n+","+t):(i=!0,n=t);i&&Cookies.set(alertCookieId,n,{path:"/",secure:document.location.protocol==="https:"});$(this).closest(".alertsfeed-list").trigger("destroy.owl.carousel");BindAlertsFeed()})}function GenerateAnchorMenus(){$(".anchor-menu").length&&($(".anchor-menu").html(""),$(".anchor-menu").attr("id","anchor-menu"),$(".main-content").anchorific({navigation:".anchor-menu",headers:"h2",speed:200,anchorClass:"anchor",anchorText:"#",top:".top",spy:!0,position:"append"}),$(".nav-pills li").click(function(){$("li").each(function(){$(this).removeClass("active")});$(this).addClass("active")}),GenerateScrollUp(".cp-placeholder h2"))}function GenerateScrollUp(n){$(n).each(function(){if(!$(this).hasClass("ui-accordion-header")){var n="";n=$(this).text();n=n.replace("#","");$(this).html(n+" <a href='#anchor-menu' title='scroll to top' class='scrollTo-top'><span class='spak-icon fa fa-1 fa-arrow-circle-up'><\/span><span class='sr-only'>scroll to top<\/span>")}})}function BindDocumentCentreLoginSubmit(){$("table").each(function(){var n=$(this);n.find("caption").text().indexOf("Document Centre Login")>0&&n.find("input[type=password]").keydown(function(t){t.keyCode===13&&$(n).find("input[type=submit]").length>0&&(t.preventDefault(),$(n).find("input[type=submit]").click())})})}function FixFilename(n){return n.replace(/[\s&\/\\#,+()$~%.'":*?<>{}@!\^`=;]/g,"-")}function iframeFix(){$("iframe").prop("width");$("iframe").prop("height");$.browser.msie&&($("iframe").attr("frameBorder","0"),$("iframe").attr("scrolling","no"))}function IsMobileScreen(){return screen.width<768||$(window).width()<600?!0:!1}function BindCmsSlideshow(){$(".owl-carousel-CMS-settings").each(function(){var t=!1,n=8e3,i=!0,f=!1,r=!1,u=$(".owl-carousel-CMS-settings");$(this).data("interval")&&(n=$(this).data("interval"));$(this).data("dots")==="True"&&(i=!0);$(this).data("showindicators")==="True"&&$(this).children().length>1&&(f=!0);$(this).data("video")==="True"&&(r=!0);$(this).children().length>1&&(t=!0);$(this).owlCarousel({autoplay:!0,items:1,loop:t,lazyLoad:!0,autoplayTimeout:n,autoplayHoverPause:!0,animateOut:"fadeOut",dots:i,dotsContainer:".customDots",video:r,nav:!1,navText:["&#xf053;","&#xf054;"],onLoadedLazy:manageImageFill($(this))});$("#main-play").on("click",function(){u.trigger("play.owl.autoplay",n)});$("#main-pause").on("click",function(){u.trigger("stop.owl.autoplay")});$("#main-play").click(function(){$(this).toggleClass("hidden");$("#main-pause").toggleClass("hidden")});$("#main-pause").click(function(){$(this).toggleClass("hidden");$("#main-play").toggleClass("hidden")})})}function BindGallerySlideshow(){var n=$(".image-gallery-feed");n.owlCarousel({autoplay:!0,loop:!0,lazyLoad:!0,autoplayTimeout:4e3,autoplayHoverPause:!0,dots:!1,video:!1,nav:!0,responsiveRefreshRate:500,navText:["&#xf104;","&#xf105;"],onLoadedLazy:manageImageFill(n),responsive:{0:{items:1},550:{items:2},768:{items:3},1200:{items:4}}})}function BindMediaLibrariesSlideshow(){var n=$(".media-libraries-feed");n.owlCarousel({autoplay:!0,loop:!0,lazyLoad:!0,autoplayTimeout:4e3,autoplayHoverPause:!0,dots:!1,video:!1,nav:!0,responsiveRefreshRate:500,navText:["&#xf104;","&#xf105;"],onLoadedLazy:manageImageFill(n),responsive:{0:{items:1},550:{items:2},768:{items:3},1200:{items:4}}})}function manageImageFill(n){typeof $.fn.imagefill=="function"&&$(n).find("img").each(function(){$(this).on("load",function(){$(this).attr("src").startsWith("data:")?$(this).parent().imagefill():$(n).find('img[src="'+$(this).attr("src")+'"]').parent().imagefill()})})}function owlAutoHeightFix(n){$(window).resize(function(){$(n).find(".owl-height").css("height",$(n).find(".owl-item.active").height())})}function editorContentInserts(){$(".editor-insert.card-tall").length>0&&($(".editor-insert.card").matchHeight(),$(".editor-insert.card .text").matchHeight(),$(".image.run-imagefill").imagefill());$(".editor-insert.card-wide").length>0&&($(".editor-insert.card .match-me").matchHeight(),$(".image.run-imagefill").imagefill())}function FallbackSvg(){document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")||$('img[src*="svg"]').attr("src",function(){return $(this).attr("src").replace(".svg",".png")})}function BindIframeAutoHeight(n){function i(){$(t).removeAttr("height");$(t).attr("height",$(t).contents().height())}var t=n?n:"iframe.auto-height";$(t).on("load",function(){i();var n=$(window).width();$(window).resize(function(){n!==$(window).width()&&(i(),n=$(window).width(),delete n)})})}function loadSpinner(n){n=typeof n!="undefined"?n:$(".hidden-until-load");var t=$("<i>",{"class":"fa fa-spinner fa-spin load-spinner"});n.children().css("opacity","0");n.prepend(t);$(window).on("load",function(){t.remove();n.children().animate({opacity:1},1e3);n.removeClass("hidden-until-load")})}function loadBookEasyCart(n,t){typeof BE!="undefined"&&BE!==null&&BE.gadget.cart(".becart",{vcID:n,autoCollapse:!0,bookingURL:t})}function BindImageGalleryInsertedSlideshow(){var n=$(".ci-image-gallery");n.owlCarousel({autoplay:!0,loop:!0,lazyLoad:!1,autoplayTimeout:4e3,auto
1playHoverPause:!0,dots:!1,video:!1,nav:!0,responsiveRefreshRate:500,navText:["&#xf104;","&#xf105;"],responsive:{0:{items:1},768:{items:2},1200:{items:2},1800:{items:3}}})}function BindProfileSlideshow(){var n=$(".profile-manager-feed-wrapper .feed-carousel");n.owlCarousel({autoplay:!0,loop:!0,lazyLoad:!1,dots:!1,autoplayTimeout:8e3,autoplayHoverPause:!0,responsiveRefreshRate:500,autoplayHoverPause:!0,navText:["&#xf104;","&#xf105;"],responsive:{0:{items:1},768:{items:1},1200:{items:1},1800:{items:1}}});$(".feed-controls .next").click(function(){n.trigger("next.owl.carousel")});$(".feed-controls .prev").click(function(){n.trigger("prev.owl.carousel")})}function WebForm_OnSubmit(){var n,t,i;if(typeof ValidatorOnSubmit=="function"&&ValidatorOnSubmit()==!1){for(n in Page_Validators)try{if(!Page_Validators[n].isvalid){t=Page_Validators[n].controltovalidate!=undefined?$("#"+Page_Validators[n].controltovalidate):$("#"+Page_Validators[n].id);i=t.offset().top;$("html, body").animate({scrollTop:i-200},800);t.focus();return}}catch(r){}return!1}return!0}function bindAccordions(){$(".accordion-content").length===0&&($(".accordion h2").each(function(){$(this).parent().hasClass("ci-document-center-header")?$(this).parent().nextUntil(".accordion .ci-document-center-header").wrapAll('<div class="accordion-content" />'):$(this).nextUntil(".accordion h2").wrapAll('<div class="accordion-content" />')}),$(".accordion h3").each(function(){$(this).parent().hasClass("accordion-content")||$(this).nextUntil(".accordion h3").wrapAll('<div class="accordion-content" />')}),$(".accordion").each(function(){var t=$(this),n=typeof SparkAccordionErrorPanelIndex=="function"?SparkAccordionErrorPanelIndex(t):-1,i,r;t.accordion({collapsible:!0,active:n>-1?n:!1,autoheight:"true",heightStyle:"content",beforeActivate:function(n,t){var i,u,r;return t.newHeader[0]?(i=t.newHeader,u=i.next(".ui-accordion-content")):(i=t.oldHeader,u=i.next(".ui-accordion-content")),r=i.attr("aria-selected")=="true",i.toggleClass("ui-corner-all",r).toggleClass("accordion-header-active ui-state-active ui-corner-top",!r).attr("aria-selected",(!r).toString()),i.children(".ui-icon").toggleClass("ui-icon-triangle-1-e",r).toggleClass("ui-icon-triangle-1-s",!r),u.toggleClass("accordion-content-active",!r),r?(u.slideUp(),i.removeClass("ui-state-focus").blur()):u.slideDown(),!1}});n>-1&&(i=t.children(".accordion-content, .ui-accordion-content").eq(n),r=i.prev(),r.removeClass("ui-corner-all").addClass("accordion-header-active ui-state-active ui-corner-top").attr("aria-selected","true"),r.children(".ui-icon").removeClass("ui-icon-triangle-1-e").addClass("ui-icon-triangle-1-s"),i.addClass("accordion-content-active").show())}))}function sparkFormsCallback(){BindAccordions()}$(document).ready(function(){if($(function(){$('[data-toggle="tooltip"]').tooltip()}),window.location.pathname==="/lost-at-sea-about.aspx"&&$(".breadcrumb .bc-home").attr("href","/lost-at-sea-memorial.aspx"),window.location.pathname==="/lost-at-sea-support-resources.aspx"&&$(".breadcrumb .bc-home").attr("href","/lost-at-sea-memorial.aspx"),window.location.pathname==="/account/register.aspx")$(".panel.panel-default").append('<div class="panel-heading"><div class="panel-title">Privacy Notice<\/div><\/div><div class="panel-body"><p>By subscribing, you acknowledge that the Shire of Esperance might collect and use your personal information to carry out the Shire\'s activities and functions. For more information about how we collect, use, and store personal information, please refer to our <a href="https://www.esperance.wa.gov.au/privacy-policy.aspx" title="Privacy Policy">Privacy Policy<\/a>.<\/p><\/div>');BindLandingPageNav();BindCmsSlideshow();BindProfileSlideshow();BindGallerySlideshow();BindMediaLibrariesSlideshow();loadSpinner();GenerateAnchorMenus();BindDocumentCentreLoginSubmit();matchHeights();editorContentInserts();BindAlertsFeed();bindAccordions();BindImageGalleryInsertedSlideshow();BindMediaElements();contentSearchToggle();wcagFixes();IsMobileScreen()==!1&&$(".image-gallery-album a, .image-gallery a, .media-libraries a").imagefill();$("#nav-top").smartmenus({keepHighlighted:!0,keepInViewport:!0,subIndicators:!1,showTimeout:100});$("#nav-top-m").smartmenus({keepHighlighted:!0,keepInViewport:!1,subIndicators:!1,showTimeout:100});$(window).resize(function(){matchHeights();BindAlertsFeed()});$(".ci-image-gallery").find("img").each(function(){$(this).parent().imagefill()});$(".image-gallery-insert a").imagefill();$(".classified-item-grid .classified-content").matchHeight();$(".wcag-text-increase, .wcag-text-decrease").click(function(){matchHeights()});$(".fire .tabs button").click(function(){var n=$(this).data("tab");$(".fire .content .pane").removeClass("active");$(".fire .tabs button").removeClass("active");$(n).hasClass("active")||$(n).addClass("active");$(this).hasClass("active")||$(this).addClass("active")});$(".site-header .upper .btn-access").click(function(){$(".site-header .upper .wcag").slideToggle()})});var alertCookieId="SparkCMS-AlertFeed";

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.