This commit is contained in:
Archie Baer 2019-06-15 22:57:42 +01:00
parent 99b2d04628
commit 275198a389
2 changed files with 14 additions and 7 deletions

View File

@ -4,7 +4,6 @@
<link rel="stylesheet" href="style.css" /> <link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" /> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" />
<script src="zodiac.min.js"></script> <script src="zodiac.min.js"></script>
<script src="signup.js"></script>
</head> </head>
<body> <body>
<canvas id="zodiac"></canvas> <canvas id="zodiac"></canvas>
@ -30,15 +29,18 @@
</script> </script>
<div id="container"> <div id="container">
<main> <main>
<form action="">
<p>WebDNS</p> <p>WebDNS</p>
<p>API integrations for Route53, DNSSimple, Digital Ocean, and more.</p> <p>API integrations for Route53, DNSSimple, Digital Ocean, and more.</p>
<p>Stay in the know:</p> <p>Stay in the know:</p>
<p>Email: <input id="emailAddr" /></p> <p>Email: <input id="emailAddr" /></p>
<p><button class="fa mail-button" id="mailbtn" onclick="signup();"></button></p> <p><button class="fa mail-button" id="mailbtn"></button></p>
</form>
</main> </main>
<footer> <footer>
<p><a href="https://rootprojects.org">Root</a> + <a href="https://point0.tech">Point0</a></p> <p><a href="https://rootprojects.org">Root</a> + <a href="https://point0.tech">Point0</a></p>
</footer> </footer>
</div> </div>
<script src="signup.js"></script>
</body> </body>
</html> </html>

View File

@ -24,3 +24,8 @@ 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,}))$/; 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()); return re.test(String(email).toLowerCase());
} }
document.getElementsByTagName("form")[0].onsubmit = function (e) {
e.preventDefault();
signup();
};