From 63c8d557700b62ae7dd93b4a8d2243471983e24b Mon Sep 17 00:00:00 2001 From: Kai Hendry Date: Thu, 1 Dec 2011 07:04:56 +0100 Subject: [PATCH] split out JS to make it easier to lint --- index.js | 15 +++++++++++++++ index.shtml | 11 +---------- 2 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..f6462c7 --- /dev/null +++ b/index.js @@ -0,0 +1,15 @@ +function massage() { + humane.timeout = 5000; + humane("Please wait..."); + humane("Still loading..."); +} + +function submitPressed() { + if (document.forms.f.checkValidity()) { + b = document.getElementById("b"); + b.disabled = true; + massage(); + document.forms.f.submit(); + } +} + diff --git a/index.shtml b/index.shtml index 972af7b..b6e5e3a 100644 --- a/index.shtml +++ b/index.shtml @@ -6,16 +6,7 @@ - +