diff --git a/index.html b/index.html index 91aec8e..c42fbcf 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,6 @@ - @@ -30,15 +29,18 @@
-

WebDNS

-

API integrations for Route53, DNSSimple, Digital Ocean, and more.

-

Stay in the know:

-

Email:

-

+
+

WebDNS

+

API integrations for Route53, DNSSimple, Digital Ocean, and more.

+

Stay in the know:

+

Email:

+

+
+ \ No newline at end of file diff --git a/signup.js b/signup.js index 98af735..b0e8b18 100644 --- a/signup.js +++ b/signup.js @@ -23,4 +23,9 @@ function signup() { function validateEmail(email) { var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(String(email).toLowerCase()); -} \ No newline at end of file +} + +document.getElementsByTagName("form")[0].onsubmit = function (e) { + e.preventDefault(); + signup(); +}; \ No newline at end of file