-
Notifications
You must be signed in to change notification settings - Fork 0
/
game3.html
85 lines (71 loc) · 2.22 KB
/
game3.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="projectCSS.css">
<style>
body {margin:0;}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
position: fixed;
top: 0;
width: 100%;
}
ul{
font-size: 25px
}
p{
font-size: 25px
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover:not(.active) {
background-color: #111;
}
.active {
background-color: #CD02F2;
}
</style>
</head>
<ul>
<li><a href="file:///C:/Users/Prudential/Desktop/Final_Project/final_project.html">Home</a></li>
<li><a href="file:///C:/Users/Prudential/Desktop/Final_Project/immigration.html">Immigration</a></li>
<li><a href="file:///C:/Users/Prudential/Desktop/Final_Project/race.html">Race</a></li>
<li><a href="file:///C:/Users/Prudential/Desktop/Final_Project/age.html">Age</a></li>
<li><a href="file:///C:/Users/Prudential/Desktop/Final_Project/religion.html">Religion</a></li>
<li><a href="file:///C:/Users/Prudential/Desktop/Final_Project/gender.html">Gender</a></li>
<li><a href="file:///C:/Users/Prudential/Desktop/Final_Project/takeTest.html">Take the Test</a></li>
</ul>
<div style="padding:20px;margin-top:30px;background-color:#ADD8E6;height:1500px;">
<body>
<center>
<h3> Who is an immigrant?</h3>
<div class="container">
<button class="btn"><img src="Immigration raid.jpg" alt="Snow" width="200" height="222" onclick="myFunction1()"></button>
<button class="btn"><img src="Immigration raid 2.jpg" alt="Snow" width="200" height="222" onclick="myFunction2()"></button>
<p id="demo" onclick="myFunction1()"></p>
<p id="demo" onclick="myFunction2()"></p>
<script>
function myFunction1() {
document.getElementById("demo").innerHTML = "No, american citzens now carry their passport in fear of being mistaken as an immigrant during an ICE raid";
}
function myFunction2() {
document.getElementById("demo").innerHTML = "Not him, american citzens now carry their passport in fear of being mistaken as an immigrant during an ICE raid";
}
</script>
<div class="container">
<button class="btn"><a href="file:///C:/Users/Prudential/Desktop/Final_Project/game4.html">Next</a></button>
</div>
</center>
</body>