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="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>
|
||||||
<p>WebDNS</p>
|
<form action="">
|
||||||
<p>API integrations for Route53, DNSSimple, Digital Ocean, and more.</p>
|
<p>WebDNS</p>
|
||||||
<p>Stay in the know:</p>
|
<p>API integrations for Route53, DNSSimple, Digital Ocean, and more.</p>
|
||||||
<p>Email: <input id="emailAddr" /></p>
|
<p>Stay in the know:</p>
|
||||||
<p><button class="fa mail-button" id="mailbtn" onclick="signup();"></button></p>
|
<p>Email: <input id="emailAddr" /></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>
|
|
@ -23,4 +23,9 @@ function signup() {
|
||||||
function validateEmail(email) {
|
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