-
Notifications
You must be signed in to change notification settings - Fork 0
/
gameSelection.html
96 lines (74 loc) · 1.86 KB
/
gameSelection.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
<html>
<head>
<style>
.button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 16px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
-webkit-transition-duration: 0.4s; /* Safari */
transition-duration: 0.4s;
cursor: pointer;
}
.button1 {
background-color: white;
color: black;
border: 2px solid #4CAF50;
}
.button1:hover {
background-color: #4CAF50;
color: white;
}
.button2 {
background-color: white;
color: black;
border: 2px solid #008CBA;
}
.button2:hover {
background-color: #008CBA;
color: white;
}
.button3 {
background-color: white;
color: black;
border: 2px solid #f44336;
}
.button3:hover {
background-color: #f44336;
color: white;
}
.button4 {
background-color: white;
color: black;
border: 2px solid #e7e7e7;
}
.button4:hover {background-color: #e7e7e7;}
.button5 {
background-color: white;
color: black;
border: 2px solid #555555;
}
.button5:hover {
background-color: #555555;
color: white;
}
</style>
<title> Pedir random </title>
<script type="text/javascript">
function choice(game_name){
location.href = "http://localhost:8080" + "?game_Name=" + game_name;
}
</script>
</head>
<body>
<h1>Games List</h1>
<button class="button button1" onClick="choice(Maths_Mania.id)" id="Maths_Mania" value="Maths_Mania">Maths_Mania</button>
<button class="button button2" onClick="choice(TicTacToe.id)" id="TicTacToe" value="TicTacToe">TicTacToe</button>
<button class="button button3" onClick="choice(Pong.id)" id="Pong" value="Pong">Pong</button>
</body>
<html>