-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomePage.html
128 lines (111 loc) · 3.1 KB
/
homePage.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html>
<title>Eagle Flight</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=MuseoModerno:wght@400;500&display=swap">
<style>
body,h1 {font-family: "'MuseoModerno", cursive;}
h1 {margin-left: 60px}
body, html {height: 100%}
.bgimg {
background-image: url('images/eagleFlight.jpg');
min-height: 100%;
background-position: center;
background-size: cover;
}
.button1{
background-color: Transparent;
color: white;
border: 3px solid white; /* Green */
padding: 15px 30px;
text-align: center;
font-size: 25px;
box-shadow: 0 10px 16px 0 rgba(0,0,0,0.2), 10px 10px 20px 0 rgba(0,0,0,0.19);
margin-left: 170px;
margin-top: 10px;
cursor: pointer;
}
.button1:hover {
background-color: Transparent;
opacity: 0.8;
}
.accordion {
background-color: Transparent ;
border: 3px solid white;
color: white;
cursor: pointer;
padding: 10px 20px;
outline: none;
text-align: center;
box-shadow: 0 10px 16px 0 rgba(0,0,0,0.2), 10px 10px 20px 0 rgba(0,0,0,0.19);
margin-top: 20px;
margin-left: 205px;
transition: 0.4s;
}
.active, .accordion:hover {
background-color: Transparent;
opacity: 0.8;
}
.panel {
padding: 0 18px;
background: rgba(255, 153, 102, 0.3);
max-height: 0;
text-align: center;
overflow: hidden;
transition: max-height 0.2s ease-out;
box-shadow: 0 10px 16px 0 rgba(0,0,0,0.2), 10px 10px 20px 0 rgba(0,0,0,0.19);
}
.custom{
color: #3399ff;
margin-left: 105px;
}
</style>
</style>
<body>
<div class="bgimg w3-display-container w3-animate-opacity w3-text-white">
<div class="w3-display-middle">
<h1 class="w3-jumbo w3-animate-top" >EAGLE FLIGHT</h1>
<p class="custom"> Developed by Damiano Zappia and Gianluca Maselli</p>
<hr class="w3-border-grey" style="margin:auto;width:50%">
<p>
<button class="button1" onclick="myFunction()"> Start Flying </button>
</p>
<hr class="w3-border-grey" style="margin:auto;width:50%">
<button class="accordion">Instructions</button>
<div class="panel">
<p>Press space bar to start the eagle flight <br>
Press W to put the camera follow the eagle, <br>
press it again while in first person to return in orbit control mode <br>
Press S to change between first and third person view <br>
Press A to make the eagle scream
</p>
</div>
</div>
</div>
<script>
var acc = document.getElementsByClassName("accordion");
var i;
function myFunction() {
location.replace("main.html")
}
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
console.log(panel);
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
</script>
<audio autoplay>
<source src="sound/Homeland.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</body>
</html>