PageSourceSearch

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

js esperance.wa.gov.au collected 2026-09-24 23:21:04 UTC 2,606 bytes, 1 lines download raw bytes

1typeof Object.create!="function"&&(Object.create=function(n){function t(){}return t.prototype=n,new t}),function(n,t,i,r){"use strict";var u={init:function(t,i){var r=this,u,f;for(r.elem=i,r.$elem=n(i),r.opt=n.extend({},this.opt,t),r.headers=r.$elem.find(r.opt.headers),r.previous=0,r.headers.length!==0&&(r.first=parseInt(r.headers.prop("nodeName").substring(1),null)),r.build(),u=0;u<r.opt.navElements.length;u++)f=r.opt.navElements[u],n(r.opt.navigation).children().clone(!0).appendTo(f)},opt:{navigation:".anchorific",headers:"h1, h2, h3, h4, h5, h6",speed:200,anchorClass:"anchor",anchorText:"#",top:".top",spy:!0,position:"append",spyOffset:!0,navElements:[]},build:function(){var t=this,r,u=function(){},i;for(t.opt.navigation&&(n(t.opt.navigation).append("<ul />"),t.previous=n(t.opt.navigation).find("ul").last(),u=function(n){return t.navigations(n)}),i=0;i<t.headers.length;i++)r=t.headers.eq(i),u(r),t.anchor(r);t.opt.spy&&t.spy();t.opt.top&&t.back()},navigations:function(t){var u=this,e,f,i,o=u.name(t);t.attr("id")!==r&&(o=t.attr("id"));e=n("<a />").attr("href","#"+o).text(t.text());f=n("<li />").append(e);i=parseInt(t.prop("nodeName").substring(1),null);f.attr("data-tag",i);u.subheadings(i,f);u.first=i},subheadings:function(t,i){var r=this,f=n(r.opt.navigation).find("ul"),u=n(r.opt.navigation).find("li");t===r.first?r.previous.append(i):t>r.first?(u.last().append("<ul />"),n(r.opt.navigation).find("ul").last().append(i),r.previous=i.parent()):(n("li[data-tag="+t+"]").last().parent().append(i),r.previous=i.parent())},name:function(n){return n.text().replace(/[^\w\s]/gi,"").replace(/\s+/g,"-").toLowerCase()},anchor:function(t){var i=this,e=i.name(t),u,o=i.opt.anchorText,s=i.opt.anchorClass,f;t.attr("id")===r&&t.attr("id",e);f=t.attr("id");u=n("<a />").attr("href","#"+f).html(o).addClass(s);i.opt.position==="append"?t.append(u):t.prepend(u)},back:function(){var t=this,i=n("body, html"),r=n(t.opt.top);r.on("click",function(n){n.preventDefault();i.animate({scrollTop:0},t.opt.speed)})},top:function(t){var r=this,i=r.opt.top,u;i!==!1&&(u=n(t).scrollTop()>200?n(i).fadeIn():n(i).fadeOut())},spy:function(){var u=this,i,f,e;n(t).scroll(function(){u.top(this);i=u.headers.map(function(){if(n(this).offset().top-n(t).scrollTop()<u.opt.spyOffset)return this});i=n(i).eq(i.length-1);i&&i.length&&(f=n('li:has(a[href="#'+i.attr("id")+'"])'),e!==r&&e.removeClass("active"),f.addClass("active"),e=f)})}};n.fn.anchorific=function(t){return this.each(function(){if(!n.data(this,"anchorific")){var i=Object.create(u);i.init(t,this);n.data(this,"anchorific",i)}})}}(jQuery,window,document);

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.