Form
This commit is contained in:
parent
99b2d04628
commit
275198a389
14
index.html
14
index.html
|
@ -4,7 +4,6 @@
|
|||
<link rel="stylesheet" href="style.css" />
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" />
|
||||
<script src="zodiac.min.js"></script>
|
||||
<script src="signup.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="zodiac"></canvas>
|
||||
|
@ -30,15 +29,18 @@
|
|||
</script>
|
||||
<div id="container">
|
||||
<main>
|
||||
<p>WebDNS</p>
|
||||
<p>API integrations for Route53, DNSSimple, Digital Ocean, and more.</p>
|
||||
<p>Stay in the know:</p>
|
||||
<p>Email: <input id="emailAddr" /></p>
|
||||
<p><button class="fa mail-button" id="mailbtn" onclick="signup();"></button></p>
|
||||
<form action="">
|
||||
<p>WebDNS</p>
|
||||
<p>API integrations for Route53, DNSSimple, Digital Ocean, and more.</p>
|
||||
<p>Stay in the know:</p>
|
||||
<p>Email: <input id="emailAddr" /></p>
|
||||
<p><button class="fa mail-button" id="mailbtn"></button></p>
|
||||
</form>
|
||||
</main>
|
||||
<footer>
|
||||
<p><a href="https://rootprojects.org">Root</a> + <a href="https://point0.tech">Point0</a></p>
|
||||
</footer>
|
||||
</div>
|
||||
<script src="signup.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
document.getElementsByTagName("form")[0].onsubmit = function (e) {
|
||||
e.preventDefault();
|
||||
signup();
|
||||
};
|
Loading…
Reference in New Issue