Form
This commit is contained in:
parent
99b2d04628
commit
275198a389
|
@ -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>
|
|
@ -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();
|
||||||
|
};
|
Loading…
Reference in New Issue