forked from ChicoState/JSOutBootstrapped
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.html
More file actions
52 lines (51 loc) · 1.65 KB
/
page.html
File metadata and controls
52 lines (51 loc) · 1.65 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Demonstrating JavaScript</title>
<!-- BOOTSTRAP (style only)-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script lang="javascript">
function sayHello() {
document.getElementById("hello").innerHTML = "Hiya, buddy!";
}
function sayGoodbye(){
document.getElementById("goodbye").innerHTML = "See ya!";
}
function sayMyname(){
document.getElementById("myname").innerHTML = "My name is Long!";
}
function Info(){
document.getElementById("class").innerHTML = "CINS 110";
}
</script>
</head>
<body>
<div class="container-fluid">
<button type="button" class="btn btn-default" onclick="sayHello();">
Sign in
</button>
<button type="button" class="btn btn-default" onclick="sayMyname();">
My name
</button>
<button type="button" class="btn btn-default" onclick="Info();">
Class
</button>
<button type="button" class="btn btn-default" onclick="sayGoodbye();">
Sign out
</button>
<div class="alert alert-success" role="alert" id="hello">
</div>
<div class="alert alert-warning" role="alert" id="myname">
</div>
<div class="alert alert-info" role="alert" id="class">
</div>
<div class="alert alert-danger" role="alert" id="goodbye">
</div>
</div>
</body>
</html>