Spaces:
Running
Running
Update index.html
Browse files- index.html +12 -1
index.html
CHANGED
|
@@ -22,6 +22,17 @@
|
|
| 22 |
<p> Use the <strong>same email</strong> each time to keep your progress on the questions tracked. Thanks again for participating! </p>
|
| 23 |
<input type="text" id="email" placeholder="Email"/>
|
| 24 |
<br /> <br />
|
| 25 |
-
<button id="submit"><strong>Let's go!</strong></button>
|
| 26 |
</body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
</html>
|
|
|
|
| 22 |
<p> Use the <strong>same email</strong> each time to keep your progress on the questions tracked. Thanks again for participating! </p>
|
| 23 |
<input type="text" id="email" placeholder="Email"/>
|
| 24 |
<br /> <br />
|
| 25 |
+
<button id="submit" onclick="launch();"><strong>Let's go!</strong></button>
|
| 26 |
</body>
|
| 27 |
+
<script>
|
| 28 |
+
function launch() {
|
| 29 |
+
var email = document.getElementById("email").value;
|
| 30 |
+
if (email == "") {
|
| 31 |
+
// warning message
|
| 32 |
+
alert("No email provided :(");
|
| 33 |
+
} else {
|
| 34 |
+
alert("Email found " + email);
|
| 35 |
+
}
|
| 36 |
+
}
|
| 37 |
+
</script>
|
| 38 |
</html>
|