| 1 !function(){function t(t){if(!t.ctrlKey&&!t.metaKey&&2!==t.which){if(this.hasAtt
ribute("pushstate")&&(window.history.pushState(JSON.parse(this.getAttribute("sta
te")),this.getAttribute("title"),this.getAttribute("href")),t.preventDefault()),
this.hasAttribute("replacestate")&&(window.history.replaceState(JSON.parse(this.
getAttribute("state")),this.getAttribute("title"),this.getAttribute("href")),t.p
reventDefault()),this.hasAttribute("popstate")){try{var e=new PopStateEvent("pop
state",{bubbles:!1,cancelable:!1,state:window.history.state});"dispatchEvent_"in
window?window.dispatchEvent_(e):window.dispatchEvent(e)}catch(i){var a=document
.createEvent("CustomEvent");a.initCustomEvent("popstate",!1,!1,{state:window.his
tory.state}),window.dispatchEvent(a)}t.preventDefault()}if(this.hasAttribute("go
")){var r=this.getAttribute("go");r=r?parseInt(r):0,window.history.go(r),t.preve
ntDefault()}this.hasAttribute("back")&&(window.history.back(),t.preventDefault()
),this.hasAttribute("forward")&&(window.history.forward(),t.preventDefault())}}v
ar e=Object.create(HTMLAnchorElement.prototype);e.createdCallback=function(){thi
s.addEventListener("click",t,!1)},document.registerElement("html5-history-anchor
",{prototype:e,"extends":"a"})}(); |