ebrowne commited on
Commit
6984a4f
·
verified ·
1 Parent(s): 50e74dc

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +4 -2
index.html CHANGED
@@ -20,6 +20,9 @@
20
  <li> You don't need to answer every question in the same session. Feel free to start and stop when convenient! </li>
21
  </ul>
22
  <p> Use the <strong>same email</strong> each time to save your progress. 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>
@@ -28,8 +31,7 @@
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
  }
 
20
  <li> You don't need to answer every question in the same session. Feel free to start and stop when convenient! </li>
21
  </ul>
22
  <p> Use the <strong>same email</strong> each time to save your progress. Thanks again for participating! </p>
23
+ <div class="alert alert-danger" role="alert" id="email warning" style="display: none;">
24
+ Provide an email, please!
25
+ </div>
26
  <input type="text" id="email" placeholder="Email"/>
27
  <br /> <br />
28
  <button id="submit" onclick="launch();"><strong>Let's go!</strong></button>
 
31
  function launch() {
32
  var email = document.getElementById("email").value;
33
  if (email == "") {
34
+ document.getElementById("email warning").style.display = "block";
 
35
  } else {
36
  alert("Email found " + email);
37
  }