-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathpage.html
More file actions
34 lines (33 loc) · 1.04 KB
/
page.html
File metadata and controls
34 lines (33 loc) · 1.04 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
<!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!";
}
</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">
Sign out
</button>
<div class="alert alert-success" role="alert" id="hello">
</div>
<div class="alert alert-danger" role="alert" id="goodbye">
</div>
</div>
</body>
</html>