-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbff.html
More file actions
36 lines (34 loc) · 1.28 KB
/
bff.html
File metadata and controls
36 lines (34 loc) · 1.28 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
<!DOCTYPE html>
<html>
<head>
<!-- Bootstrap -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet">
<!-- Below is my own styles.css -->
<link href="ButtersStyles.css" rel="stylesheet">
<title>BFFs!</title>
</head>
<body>
<h1>Butters visits his BFFs!</h1>
<div>
<figure>
<img src="BOwChloe.jpg" usemap="#mappy" alt="so much love" style="width:70%" onclick="showFriends()">
<figcaption id="figcap">Click on picture to learn about his friends!</figcaption>
</figure>
<p id="friends"></p>
</div>
<br>
<div>
<button type="button" class="btn btn-primary" onclick="window.location.href = 'index.html';">Homepage</button>
<br><br>
<button type="button" class="btn btn-primary" onclick="window.location.href = 'tricks.html';">Tricks!</button>
<button type="button" class="btn btn-primary" onclick="window.location.href = 'treats.html';">Treats!</button>
</div>
</body>
<script>
function showFriends() {
document.getElementById("figcap").innerHTML = "";
var friends = document.getElementById("friends");
friends.innerHTML = "Chloe is the pug, Oski is the Eskimo, they're all buddies!!!";
};
</script>
</html>