Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitab57e7ef17def709f27a49e048343e91b93aaeb5 (patch)
Author
 Roy Barber <roybarberuk@gmail.com>
2016-04-19 07:35:01 +0100
Committer
 Roy Barber <roybarberuk@gmail.com>
2016-04-19 07:35:01 +0100
Filesdfcb35081680218d7ab289eaefc3d194752a7e75
Spectre-Dark-Gruvbox-ab57e7ef17def709f27a49e048343e91b93aaeb5.tar
Spectre-Dark-Gruvbox-ab57e7ef17def709f27a49e048343e91b93aaeb5.tar.gz
Spectre-Dark-Gruvbox-ab57e7ef17def709f27a49e048343e91b93aaeb5.zip
Parent18d385b636db17c409fa0e36da15053e4f8354bf (diff)
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)