Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit2d81ff2a37a3e4357dfe418e30fc6604f00a214c (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-04-19 14:44:27 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-04-19 14:44:27 +0800
Filesdfcb35081680218d7ab289eaefc3d194752a7e75
Spectre-Dark-Gruvbox-2d81ff2a37a3e4357dfe418e30fc6604f00a214c.tar
Spectre-Dark-Gruvbox-2d81ff2a37a3e4357dfe418e30fc6604f00a214c.tar.gz
Spectre-Dark-Gruvbox-2d81ff2a37a3e4357dfe418e30fc6604f00a214c.zip
Parent18d385b636db17c409fa0e36da15053e4f8354bf (diff)
Parentab57e7ef17def709f27a49e048343e91b93aaeb5 (diff)
Merge pull request #19 from roybarber/patch-1
Stop demo forms reloading page on submit
1 files changed, 4 insertions, 0 deletions
-rw-r--r--index.html4
diff --git a/index.html b/index.html
index 03fd521..1c93ee7 100644
--- a/index.html
+++ b/index.html
@@ -2121,6 +2121,10 @@
</section>
</footer>
<script>
+ // Stop form submission on demo and jump to page top
+ document.getElementsByTagName('form').onsubmit = function() {
+ return false;
+ }
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)