-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpetDog.html
57 lines (49 loc) · 1.31 KB
/
petDog.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html>
<head>
<title>10 Minute Activity</title>
<link rel="stylesheet" type="text/css" href="ideaStyles.css">
</head>
<body>
<article>
<h2>
Pet <b>at least</b> two passing dogs within 10 minutes
</h2>
</article>
<div class="cover">
<header>
<h1>HERE'S AN IDEA!</h1>
</header>
<div class="gap"></div>
<nav>
<ul>
<li class="buttonFloatLeft">
<p class="buttonLeft"><a href="index.html">Change Time</a></p>
</li>
<li class="buttonFloatRight">
<p class="buttonRight"> <a onClick="nextTen()">Another suggestion</a></p>
</li>
</ul>
</nav>
</div>
</body>
</html>
<script>
function nextTen() {
var page;
var pageNumber = Math.floor(Math.random() * 5);
console.log(pageNumber);
if (pageNumber == 0) {
page = "frost.html";
} else if (pageNumber == 1) {
page = "limerick.html";
} else if (pageNumber == 2) {
page = "browsePhone.html";
} else if (pageNumber == 3) {
page = "representative.html";
} else {
page = "favoriteRecipe.html";
}
window.open(page, "_self");
}
</script>