-
Notifications
You must be signed in to change notification settings - Fork 0
/
game4.html
89 lines (76 loc) · 2.34 KB
/
game4.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
86
87
88
89
<!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>
<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;">
</head>
<body>
<center>
<h3> Who is more likely to commit a crime?</h3>
<div class="container">
<button class="btn"><img src="black man.jpg" alt="Snow" width="200" height="222" onclick="myFunction1()"></button>
<button class="btn"><img src="criminal.jpg" alt="Snow" width="200" height="222" onclick="myFunction2()"></button>
<button class="btn"><img src="black man 2.jpg" alt="Snow" width="200" height="222" onclick="myFunction3()"></button>
<p id="demo" onclick="myFunction1()"></p>
<p id="demo" onclick="myFunction2()"></p>
<p id="demo" onclick="myFunction3()"></p>
<script>
function myFunction1() {
document.getElementById("demo").innerHTML = "Has no criminal record";
}
function myFunction2() {
document.getElementById("demo").innerHTML = "Has been arrected and convicted multiple times";
}
function myFunction3() {
document.getElementById("demo").innerHTML = " Has no criminal record";
}
</script>
<div class="container">
<button class="btn"><a href="file:///C:/Users/Prudential/Desktop/Final_Project/takeTest.html">Take the Test</a></button>
</div>
</center>
</body>