-
Notifications
You must be signed in to change notification settings - Fork 26
/
index.html
267 lines (238 loc) · 9.77 KB
/
index.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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<title>Formation Absent</title>
<meta name="description" content="Formation Absent is turn-based puzzler made for js13k games competition 2017" />
<meta name="keywords" content="game, javascript, js, html5, puzzle, strategy, tactic" />
<meta name="author" content="Noncho Savov" />
<meta name="copyright" content="Copyright © 2017 by Noncho Savov. All Rights Reserved." />
<meta name="application-name" content="Formation Absent" />
<meta property="og:title" content="Formation Absent by FoumartGames" />
<meta property="og:type" content="article" />
<meta property="og:image" content="http://www.foumartgames.com/games/FormationAbsent/animated_preview.gif" />
<meta property="og:image:width" content="225" />
<meta property="og:image:height" content="225" />
<meta property="og:url" content="http://www.foumartgames.com/games/FormationAbsent/" />
<meta property="og:description"
content="Formation Absent is turn-based puzzler made for js13k games competition 2017." />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Formation Absent by FoumartGames" />
<meta name="twitter:description"
content="Formation Absent is turn-based puzzler made for js13k games competition 2017." />
<meta name="twitter:image" content="http://www.foumartgames.com/games/FormationAbsent/icon.png" />
<link rel="stylesheet" href="style.css">
<!--<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-41782328-9', 'auto');
ga('send', 'pageview');
</script>-->
<link rel="icon" href="./favicon.png" type="image/png" />
<script src="mouseEffect.js"></script>
<link rel="stylesheet" href="mouseEffect.css">
</head>
<body>
<!-- HTML -->
<!-- HTML -->
<div class="loader-container">
</div>
<div id="loader-wrapper">
<div id="loader">
<div class="loader-spinner">
<svg viewBox="0 0 100 100">
<circle cx="50" cy="50" r="40" />
</svg>
</div>
</div>
<div class="loader-section section-left"></div>
<div class="loader-section section-right"></div>
</div>
<div id="frame" class="c">
<div id="container" class="mess c">
<div id="bgr0" class="c bgr mess"></div>
<div id="area" class="c mess"></div>
<div id="titlediv" class="c">
<div id="logo" style="top:12%;left:50%;margin-left:-225px;"></div>
<div id="levelsbtns" class="c"></div>
<button id="CommentBtn" aria-label="Toggle Comment Form"><i class="fas fa-comment"></i></button>
<!-- Comment form -->
<!-- Modal background -->
<div id="modalBackground">
<!-- Comment form -->
<div id="commentForm">
<form id="feedback-form">
<label for="userComment" style="color: rgb(229, 230, 239);">Your Feedback:</label>
<div class="form-group">
<div class="icon">
<i class="fas fa-user"></i>
</div>
<input type="text" id="name" onfocus="changeColor()" placeholder="Your Name" name="name"
required style="
width: 250px;
">
</div>
<div class="form-group">
<div class="icon">
<i class="fas fa-envelope"></i>
</div>
<input type="email" id="email" onfocus="changeColor()" placeholder="Email Id" required
style="
width: 250px;
">
</div>
<div class="form-group">
<textarea cols="30" rows="5" placeholder="Your Feedback" required></textarea>
</div>
<div class="rating">
<h2>Rate us:</h2>
<i class="rating__star far fa-star"></i>
<i class="rating__star far fa-star"></i>
<i class="rating__star far fa-star"></i>
<i class="rating__star far fa-star"></i>
<i class="rating__star far fa-star"></i>
</div>
<button id="ll" style="color: blue;">Submit</button>
</form>
</div>
</div>
<script>
const ratingStars = [...document.getElementsByClassName("rating__star")];
function executeRating(stars) {
const starClassActive = "rating__star fas fa-star";
const starClassInactive = "rating__star far fa-star";
const starsLength = stars.length;
let i;
stars.map((star) => {
star.onclick = () => {
i = stars.indexOf(star);
if (star.className === starClassInactive) {
for (i; i >= 0; --i) stars[i].className = starClassActive;
} else {
for (i; i < starsLength; ++i) stars[i].className = starClassInactive;
}
};
});
}
executeRating(ratingStars);
const ratingInputs = document.querySelectorAll('input[name="rating"]');
ratingInputs.forEach((input) => {
input.addEventListener("click", function () {
const value = parseInt(input.value);
for (let i = 1; i <= value; i++) {
document.getElementById(`star${i}`).checked = true;
}
for (let i = value + 1; i <= 5; i++) {
document.getElementById(`star${i}`).checked = false;
}
});
});
document.getElementById("CommentBtn").addEventListener("click", function () {
document.getElementById("modalBackground").style.display = "flex";
});
// Close the form when clicking outside of it (optional)
document.getElementById("modalBackground").addEventListener("click", function (event) {
if (event.target === this) {
this.style.display = "none";
}
});
let commentForm = document.getElementById("commentForm");
let modalBackground = document.getElementById("modalBackground");
document.getElementById("CommentBtn").addEventListener("click", function (event) {
if (commentForm.style.display === "none") {
commentForm.style.display = "block";
modalBackground.style.display = "flex";
} else {
commentForm.style.display = "none";
modalBackground.style.display = "none";
}
});
document.getElementById("ll").addEventListener("click", function (event) {
commentForm.style.display = "none";
modalBackground.style.display = "none";
});
</script>
<button class="y bb i" onClick="messSelect(103)" style="bottom:7%;left:15px;">
<div id="soundbtn" style="position:relative; right:10px;"></div>
</button>
<button class="g m i pad" onClick="messSelect(1)" style="bottom:32%">
<div id="practicebtn" class="bt"></div>
</button>
<button class="b m i pad" onClick="messSelect(101)" style="bottom:18%">
<div id="versusbtn" class="bt"></div>
</button>
<button class="r m i" onDblClick="messSelect(102)" style="bottom:7%">
<div id="multibtn" class="bt"></div>
</button>
</div>
<div id="fade" class="c mess"></div>
<div id="mess" class="c mess l">
<div id="messtxt" class="c"></div>
<button class="g" onClick="proceedClick();" style="bottom:6px; right:6px;">
<div id="messbtn" style="position:relative;"></div>
</button>
</div>
</div>
<div class="u b" style="height:26px"></div>
<div id="bt" class="c"></div>
<div id="copy" class="a" style="left:18px;"></div>
<div id="author" class="a" style="right:18px;"></div>
<button id="closediv" onClick="closeGame()" class="r m i x">
<div id="closebtn"></div>
</button>
</div>
<footer class="footer">
<div class="footerContainer">
<div class="socialIcons">
<div class="text">
<a>Contact:</a>
</div>
<div class="icon">
<a href="https://www.facebook.com/profile.php?id=61558763492008" target="_blank">
<img src="https://img.icons8.com/ios-filled/50/000000/facebook-new.png" alt="Facebook" />
</a>
<a href="https://www.instagram.com/chromegamingon/" target="_blank">
<img src="https://img.icons8.com/ios-filled/50/000000/instagram-new.png" alt="Instagram" />
</a>
<a href="https://www.linkedin.com/company/chromegaming" target="_blank">
<img src="https://img.icons8.com/ios-filled/50/000000/linkedin.png" alt="linkedin" />
</a>
<a href="https://www.youtube.com/@ChromeGamingOn" target="_blank">
<img src="https://img.icons8.com/ios-filled/50/000000/youtube.png" alt="youtube" />
</a>
<a href="https://discord.com/invite/rZb46cCMmK" target="_blank">
<img src="https://img.icons8.com/ios-filled/50/000000/discord.png" alt="discord" />
</a>
</div>
</div>
<div class="copyrightTx">Copyright © 2024 by Chrome gaming. All Rights Reserved.</div>
</div>
</footer>
<!-- <footer class="footer" id="footer">
Copyright © 2024 by Chrome gaming. All Rights Reserved.
<div class="container">
<div class="social-icons">
Contact:
<a href="https://www.facebook.com/profile.php?id=61558763492008" target="_blank">
<img src="https://img.icons8.com/ios-filled/50/000000/facebook-new.png" alt="Facebook" />
</a>
<a href="https://www.instagram.com/chromegamingon/" target="_blank">
<img src="https://img.icons8.com/ios-filled/50/000000/instagram-new.png" alt="Instagram" />
</a>
<a href="https://www.linkedin.com/company/chromegaming" target="_blank">
<img src="https://img.icons8.com/ios-filled/50/000000/linkedin.png" alt="linkedin" />
</a>
<a href="https://www.youtube.com/@ChromeGamingOn" target="_blank">
<img src="https://img.icons8.com/ios-filled/50/000000/youtube.png" alt="youtube" />
</a>
</div>
</div>
</footer> -->
</div>
<script src="script.js"></script>
</body>
</html>