-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
117 lines (92 loc) · 2.82 KB
/
Copy pathindex.html
File metadata and controls
117 lines (92 loc) · 2.82 KB
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
<!DOCTYPE html>
<html lang="he">
<head>
<meta charset="utf-8">
<title>תפוס ת'פרי</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<style>
.settings {
position: absolute;
right: 50%;
width: 200px;
text-align: center;
height: 40px;
line-height: 40px;
background-color: green;
box-shadow: 1px 1px 1px #000;
color: #fff;
}
.settings:hover {
box-shadow: 1px 1px 8px #000;
cursor: pointer;
}
.settings:hover:active {
box-shadow: inset 1px 1px 8px #000;
}
.settings:hover:active {
box-shadow: inset 1px 1px 8px #000;
cursor: pointer;
}
.setting_content {
text-align: center;
border: 1px solid;
padding: 35px;
position: absolute;
width: 580px;
top: 10%;
display: none;
background-color: rgba(255, 255, 255, 0.36);
}
span#timer {
position: absolute;
bottom: 0px;
font-size: 50px;
border: 1px solid #dadada;
margin-left: 30px;
}
</style>
</head>
<body>
<script src="js/game.js"></script>
<div class="settings"> הגדרות המשחק</div>
<div class="setting_content">
<label>תפוז</label>
<br>
<input id="orange_time" type="number" name="time_on_map">: זמן על המפה
<br>
<input id="orange_score" type="number" name="score"> : שווי ניקוד
<br>
<label>בננה</label>
<br>
<input id="banana_time" type="number" name="time_on_map">: זמן על המפה
<br>
<input id="banana_score" type="number" name="score"> : שווי ניקוד
<br>
<label>אסאי</label>
<br>
<input id="acai_time" type="number" name="time_on_map">: זמן על המפה
<br>
<input id="acai_score" type="number" name="score"> : שווי ניקוד
<br>
<label>תפוח</label>
<br>
<input id="apple_time" type="number" name="time_on_map">: זמן על המפה
<br>
<input id="apple_score" type="number" name="score"> : שווי ניקוד
<br>
<br>
<button id="change_submit" type="button">החל שינויים</button>
</div>
<span id="timer"></span>
<script>
$('.settings').click( function() {
$('.setting_content').fadeToggle();
});
$(document).keyup(function(e) {
if (e.keyCode == 27) { // escape key maps to keycode `27`
$('.setting_content').fadeToggle();
}
});
</script>
</body>
</html>