-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrock.html
61 lines (51 loc) · 1.41 KB
/
rock.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
<!DOCTYPE html>
<html>
<head>
<title>5 Minute Activity</title>
<link rel="stylesheet" type="text/css" href="ideaStyles.css">
</head>
<body>
<article>
<h2>
Find a rock and think about the experiences it has been through
</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="nextFive()">Another suggestion</a></p>
</li>
</ul>
</nav>
</div>
</body>
</html>
<script>
function nextFive() {
var page;
var pageNumber = Math.floor(Math.random() * 6);
console.log(pageNumber);
if (pageNumber == 0) {
page = "bucket.html";
} else if (pageNumber == 1) {
page = "photo.html";
} else if (pageNumber == 2) {
page = "trash.html";
} else if (pageNumber == 3) {
page = "goals.html";
} else if (pageNumber == 4) {
page = "mindful.html";
} else {
page = "greetLanguage.html";
}
window.open(page, "_self");
}
</script>