Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Unified Diff: server/static/bower_components/html5-history-anchor/html5-history-anchor.html

Issue 1695893004: RPC Explorer (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@rpcepxlorer-deps
Patch Set: 80 chars Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: server/static/bower_components/html5-history-anchor/html5-history-anchor.html
diff --git a/server/static/bower_components/html5-history-anchor/html5-history-anchor.html b/server/static/bower_components/html5-history-anchor/html5-history-anchor.html
new file mode 100644
index 0000000000000000000000000000000000000000..3288744e7c66324742c980679219b0257e69203a
--- /dev/null
+++ b/server/static/bower_components/html5-history-anchor/html5-history-anchor.html
@@ -0,0 +1,4 @@
+<!-- Copyright (C) 2014 Erik Ringsmuth - MIT license -->
+<script type="text/javascript">
+!function(){function t(t){if(!t.ctrlKey&&!t.metaKey&&2!==t.which){if(this.hasAttribute("pushstate")&&(window.history.pushState(JSON.parse(this.getAttribute("state")),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.preventDefault()),this.hasAttribute("popstate")){try{var e=new PopStateEvent("popstate",{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.history.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.preventDefault()}this.hasAttribute("back")&&(window.history.back(),t.preventDefault()),this.hasAttribute("forward")&&(window.history.forward(),t.preventDefault())}}var e=Object.create(HTMLAnchorElement.prototype);e.createdCallback=function(){this.addEventListener("click",t,!1)},document.registerElement("html5-history-anchor",{prototype:e,"extends":"a"})}();
+</script>

Powered by Google App Engine
This is Rietveld 408576698