-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChooseGame.html
190 lines (167 loc) · 5.08 KB
/
ChooseGame.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" href="GameChoice.css" type ="text/css">
<meta charset="utf-8">
<link rel="icon"
href="Asset/euro_flag.jpg" />
<title>ChooseGame</title>
<style type="text/css">
.show {
animation-timing-function:linear;
animation-delay:0s;
animation-name: choose;
animation-duration:.5s;
animation-iteration-count:1;
animation-play-state:running;
animation-fill-mode: forwards;
-webkit-animation-timing-function:linear;
-webkit-animation-delay:0s;
-webkit-animation-name: choose;
-webkit-animation-duration:.5s;
-webkit-animation-iteration-count:1;
-webkit-animation-play-state:running;
-webkit-animation-fill-mode: forwards;
}
@keyframes choose /* Safari and Chrome */ {
from {
visibility:visible;
transform:scale(0, 0);
}
to {
visibility:visible;
}
}
@-webkit-keyframes choose /* Safari and Chrome */ {
from {
visibility:visible;
-webkit-transform:scale(0, 0);
}
to {
visibility:visible;
}
}
/***************************************************/
.go {
animation-timing-function:linear;
animation-delay:0s;
animation-name: go;
animation-duration:.5s;
animation-iteration-count:1;
animation-play-state:running;
animation-fill-mode: forwards;
-webkit-animation-timing-function:linear;
-webkit-animation-delay:0s;
-webkit-animation-name: go;
-webkit-animation-duration:.5s;
-webkit-animation-iteration-count:1;
-webkit-animation-play-state:running;
-webkit-animation-fill-mode: forwards;
}
@keyframes go /* Safari and Chrome */ {
from {
visibility:visible;
}
to {
transform:scale(0, 0);
}
}
@-webkit-keyframes go /* Safari and Chrome */ {
from {
visibility:visible;
}
to {
-webkit-transform:scale(0, 0);
}
}
</style>
</head>
<body onLoad="palayMusic(); ">
<script type="text/javascript">
/***********************************************************************************************/
/***********************************************************************************************/
function palayMusic(){
var contain = document.getElementById("container");
contain.style.backgroundImage = "url(Asset/cyprusfinal1.gif)"
var Images = [ "url(Asset/finlandfinal.gif)" ,
"url(Asset/italy.jpg)" , "url(Asset/polandfinal.gif)" , "url(Asset/spain.jpg)",
"url(Asset/spain.jpg)" , "url(Asset/romaniafinal.gif" , "url(Asset/cyprusfinal1.gif)"];
var is_firefox = navigator.userAgent.indexOf('Firefox');
if(is_firefox !=-1){
var curImgId = 0;
var numberOfImages = 6;
setInterval(function dosome() { contain.style.backgroundImage = Images[curImgId];
curImgId = (curImgId + 1) % numberOfImages;
} , 1700);
}
var music = document.getElementById("music");
music.play();
}
var choose = document.getElementById("choose");
function show_choose(){
document.getElementById("choose").className ='show';
}
function hidde_choose(){
document.getElementById("choose").className ='go';
}
</script>
<div id="container">
<div id="header">
<h2>Choose a game to play!</h2>
</div>
<div id="main"> <img id="garos" src="Asset/logo.gif" width="600px" height="600px" >
<div id="list_menu">
<ul>
<li><a href="#" onClick="show_choose();">Matching</a> </li>
<li></li>
<li><a href="SpotTheCountry.html">Spot The Country</a></li>
<li></li>
<li><a href="who_knows.html">Who Knows?</a></li>
<li></li>
<li><a href="Index2.html">Home</a></li>
</ul>
</div>
</div>
<audio id="music" autoplay loop>
<source src="Asset/background_sounds/Payday.ogg" >
<source src="Asset/background_sounds/Payday.mp3" >
</audio>
<div id="choose">
<p> Choose Country </p>
<div id="cancel"> <a href="#" onClick="hidde_choose();"><img id="canc" src="Asset/cancel.png" width="50" height="50"/></a> </div>
<div id="cy" onClick="cyp()"> <a ><img id="cyflag" src="Asset/CY2.png" width="200" height="143"/ alt="Cyprus" /> </a> </div>
<div id="fin" onClick="finl()"> <a ><img id="finlandflag" src="Asset/The Finnish flag2.png" width="200" height="154" alt="Finland" /> </a> </div>
<div id="rom" onClick="roma()"> <a ><img id="romaniaflag" src="Asset/romania2.png" width="200" height="146" alt="Romania" /> </a> </div>
<div id="pol" onClick="pola()"> <a><img id="polandflag" src="Asset/PL flag2.png" width="200" height="140" alt="Poland" /> </a> </div>
<div id="ita" onClick="ital()"> <a><img id="italyflag" src="Asset/italy2.png" width="200" height="125" alt="Italy" /> </a> </div>
<div id="spn" onClick="spai()"><a><img id="spainflag"src="Asset/Spanish_Flag.png" width="200" height="113" alt="Spain"/> </a></div>
</div>
</div>
<script>
function cyp(){
var url = "matching.html?1";
window.location.href = url;
}
function finl(){
var url = "matching.html?2";
window.location.href = url;
}
function roma(){
var url = "matching.html?3";
window.location.href = url;
}
function pola(){
var url = "matching.html?4";
window.location.href = url;
}
function ital(){
var url = "matching.html?5";
window.location.href = url;
}
function spai(){
var url = "matching.html?6";
window.location.href = url;
}
</script>
</body>
</html>