aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/click_a.min.js
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-20 19:53:21 -0700
committerAllan Wang <me@allanwang.ca>2017-06-20 19:53:21 -0700
commit89673894356e29ac48ebaba5bd75d03690da1d66 (patch)
tree6a9cc12ea6a1097781b917e480ffa8b138d5c535 /app/src/main/assets/js/click_a.min.js
parent13b8505674e08cc1610ce7e77d7db8fa292372cf (diff)
downloadfrost-89673894356e29ac48ebaba5bd75d03690da1d66.tar.gz
frost-89673894356e29ac48ebaba5bd75d03690da1d66.tar.bz2
frost-89673894356e29ac48ebaba5bd75d03690da1d66.zip
Fix up url overlays and theme more components
Diffstat (limited to 'app/src/main/assets/js/click_a.min.js')
-rw-r--r--app/src/main/assets/js/click_a.min.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/src/main/assets/js/click_a.min.js b/app/src/main/assets/js/click_a.min.js
new file mode 100644
index 00000000..ff4a3d4c
--- /dev/null
+++ b/app/src/main/assets/js/click_a.min.js
@@ -0,0 +1,11 @@
+console.log("Registering frost_a click")
+
+;var _frostAClick=function(t){
+var e=t.target||t.srcElement
+;if("A"!==e.tagName&&(e=e.parentNode),"A"===e.tagName&&"#"!==e.getAttribute("href")){
+var r=e.getAttribute("href")
+;console.log("Click Intercept",r),Frost.loadUrl(r),t.stopPropagation(),
+t.preventDefault()
+}
+}
+;document.addEventListener("click",_frostAClick,!0); \ No newline at end of file