diff options
author | Ben Burwell <bburwell1@gmail.com> | 2014-07-06 13:36:18 -0400 |
---|---|---|
committer | Ben Burwell <bburwell1@gmail.com> | 2014-07-06 13:36:18 -0400 |
commit | 4f3303910aef09030434476e2a6a244b369beec2 (patch) | |
tree | 9e79a356124891d04570a72444f3a634f119df99 /_layouts | |
parent | a20da5f048516ace0450e604e3fabb8c2a91e1a9 (diff) |
Remove mobile touch delay
Diffstat (limited to '_layouts')
-rw-r--r-- | _layouts/master.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/_layouts/master.html b/_layouts/master.html index 74ccd11..f1789a4 100644 --- a/_layouts/master.html +++ b/_layouts/master.html @@ -130,6 +130,17 @@ </footer> </div> + <script type="text/javascript"> + if (window.Touch) { + var es = document.getElementsByTagName('a'); + for (var i = 0; i < es.length; i++) { + es[i].addEventListener('touchstart', function() { + window.location.href = this.href; + }); + } + } + </script> + <!-- Analytics --> <script type="text/javascript"> var clicky_site_ids = clicky_site_ids || []; |