diff options
Diffstat (limited to 'static')
-rw-r--r-- | static/website/js/custom.js | 13 | ||||
-rw-r--r-- | static/website/templates/header.html | 6 |
2 files changed, 19 insertions, 0 deletions
diff --git a/static/website/js/custom.js b/static/website/js/custom.js index 2573428..4720549 100644 --- a/static/website/js/custom.js +++ b/static/website/js/custom.js @@ -65,6 +65,18 @@ $(document) updateGallery($(this)); }); } + + var fewSeconds = 5; + $('#subbtn').click(function(){ + // Ajax request + alert("I have read all the instructions carefully"); + var btn = $(this); + /*btn.prop('disabled', true); + setTimeout(function(){ + btn.prop('disabled', false); + }, fewSeconds*1000);*/ +}); + }); // build key actions @@ -91,3 +103,4 @@ $(document) e.preventDefault(); // prevent the default action (scroll / move caret) }); + diff --git a/static/website/templates/header.html b/static/website/templates/header.html index fe1ffb4..a6b3c50 100644 --- a/static/website/templates/header.html +++ b/static/website/templates/header.html @@ -33,6 +33,12 @@ jQuery(document).ready(function($){ }); </script> + <script> + function countChar(val) { + var len = val.value.length; + var count = $('#charNum').text(0 + len); + }; + </script> </head> {% endblock %} |