-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakeWebsite.html
58 lines (49 loc) · 1.35 KB
/
makeWebsite.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
<!DOCTYPE html>
<html>
<head>
<title>20 Minute Activity</title>
<link rel="stylesheet" type="text/css" href="ideaStyles.css">
</head>
<body>
<article>
<h2>
Develop a website suggesting things to do<br>for people waiting at a bus stop
</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="nextTwenty()">Another suggestion</a></p>
</li>
</ul>
</nav>
</div>
</body>
</html>
<script>
function nextTwenty() {
var page;
var pageNumber = Math.floor(Math.random() * 5);
console.log(pageNumber);
if (pageNumber == 0) {
page = "pacerTest.html";
} else if (pageNumber == 1) {
page = "barbershop.html";
} else if (pageNumber == 2) {
page = "foreignSong.html";
} else if (pageNumber == 3) {
page = "manuscript.html";
} else if (page == 4) {
page = "shortStory.html";
}
window.open(page, "_self");
}
</script>