-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
32 lines (30 loc) · 1.02 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<html>
<head>
<link rel="stylesheet" href="styles.css">
<title>Marlon says apocalypse now</title>
</head>
<body>
<div class = "container">
<button type="button" padding class="btn btn-large btn-block btn-primary" onclick="loadAlert()">It's dangerous to go alone!</button>
<br>
<div class = "fullText">
<h1 id="uniName"></h1>
<h2 id="date"></h2>
<p id="alert"></p>
<h2 id="Eric"></h2>
</div>
</div>
</body>
<script src="function.js"></script>
<script>
function loadAlert() {
let alertObject = getAlert();
document.getElementById("alert").innerHTML = alertObject.alert;
document.getElementById("date").innerHTML = alertObject.date;
document.getElementById("uniName").innerHTML = "The University of Chicago";
document.getElementById("Eric").innerHTML = "Eric M. Heath <br> Associate Vice President for Safety & Security"
}
</script>
</html>