-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrost.html
66 lines (58 loc) · 1.55 KB
/
frost.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
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html>
<head>
<title>10 Minute Activity</title>
<link rel="stylesheet" type="text/css" href="ideaStyles.css">
</head>
<body>
<article style="
display: block;
align-content: center;
position: fixed;
width: 100%;
top: 10%;">
<h2>
Recite the Robert Frost's poem "Road Less Taken" out loud
</h2>
<iframe src="RoadLessTaken.html" width=700 height=400></iframe>
</article>
<div class="cover">
<header>
<h1>HERE'S AN IDEA!</h1>
</header>
<div class="gap"></div>
<nav>
<ul>
<div class="buttonFloatLeft">
<p class="buttonLeft">
<a href="index.html">Change Time</a>
</p>
</div>
<div class="buttonFloatRight">
<p class="buttonRight">
<a onClick="nextTen()">Another suggestion</a> </p>
</div>
</ul>
</nav>
</div>
</body>
</html>
<script>
function nextTen() {
var page;
var pageNumber = Math.floor(Math.random() * 5);
console.log(pageNumber);
if (pageNumber == 0) {
page = "petDog.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>