forked from ThisIsFaar/cut-a-challan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
206 lines (192 loc) · 10.3 KB
/
Copy pathindex.html
File metadata and controls
206 lines (192 loc) · 10.3 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cut A Challan</title>
<link rel="icon" href="img/favicon.png" type="image/png" sizes="16x16">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- Background Virus Images -->
<div id="bg_virus" >
<img class="bg_virus_small virus_sound_hover" src="img/virus.png" alt="virus" width="100px" style="margin-top: 40px; margin-left: 20px;">
<img class="bg_virus_medium virus_sound_hover" src="img/virus.png" alt="virus" width="150px" style="margin-top: 100px; margin-left: 70px;">
<img class="bg_virus_large virus_sound_hover" src="img/virus.png" alt="virus" width="250px" style="margin-top: 190px; margin-left: -40px;">
<img class="bg_virus_small virus_sound_hover" src="img/virus.png" alt="virus" width="100px" style="margin-top: 340px; margin-left: 150px;">
<img class="bg_virus_medium virus_sound_hover" src="img/virus.png" alt="virus" width="150px" style="margin-top: 440px; margin-left: 70px;">
</div>
<!-- Game Heading -->
<h1>Cut a Challan!</h1>
<!-- Game Main Content -->
<div class="wrapper">
<div class="door door1">
<div class="person"></div>
</div>
<div class="door door2">
<div class="person"></div>
</div>
<div class="door door3">
<div class="person"></div>
</div>
<div class="door door4">
<div class="person"></div>
</div>
<div class="door door5">
<div class="person"></div>
</div>
<div class="door door6">
<div class="person"></div>
</div>
<div class="door door7">
<div class="person"></div>
</div>
<div class="door door8">
<div class="person"></div>
</div>
</div>
<!-- Control Buttons(Music,Restart) -->
<div>
<button id="music_bg" onClick="BgMusicControl();" data-status="muted" style="font-family:Arial, FontAwesome"><i class="fas fa-volume-mute"></i></button>
<button id="restart_game" onClick="restartGame();" data-status="muted" style="font-family:Arial, FontAwesome"><i class="fas fa-sync-alt"></i></button>
</div>
<!-- Target Bar Div-->
<div id="target_bar" >
<span>₹40,000</span>
<img id="money_bg" src="img/money.png" width="120px" alt="">
<div id="target_bar_fill" ></div>
</div>
<!-- Rank Stripes Div -->
<div id="star_bar">
<img src="img/rank_strip.png" alt="">
<span id="star1" ><i class="fas fa-star fa-3x"></i></span>
<span id="star2" ><i class="fas fa-star fa-3x"></i></span>
<span id="star3" ><i class="fas fa-star fa-3x"></i></span>
</div>
<!-- ***** Modal's Html ***** -->
<!-- Welcome Modal -->
<div class="modal_bg" id="welcome_m" >
<!-- welcome_m stands for welcome_modal -->
<button class="welcome_m_d_c_music" id="music_bg" onClick="BgMusicControl();" data-status="muted" style="font-family:Arial, FontAwesome"><i class="fas fa-volume-mute"></i></button>
<div class="modal_fg">
<div id="welcome_m_div">
<img id="police_img" src="img/officer.png" alt="">
<div id="welcome_m_d_content" >
<h1 style="font-size:670%">CUT A CHALLAN</h1>
</div>
</div>
</div>
<button type="button" id="how_to_play" class="modal_bbm" onClick="howToPlay();">How to Play?</button>
<button type="button" class="play modal_bbm" onClick="restartGame();">Skip & Start</button>
</div>
<!-- Tutorial One(Concept) Modal -->
<div class="modal_bg" id="tutorial_1" >
<button class="welcome_m_d_c_music" id="music_bg" onClick="BgMusicControl();" data-status="muted" style="font-family:Arial, FontAwesome"><i class="fas fa-volume-mute"></i></button>
<div class="modal_fg">
<div id="tutorial_1_div">
<img id="police_img" src="img/officer.png" alt="" >
<div id="rules_div" >
<h1 style="font-size:300%">Game Concept</h1>
<p id="demo"></p>
<!-- , -->
</div>
</div>
</div>
<button type="button" class="next_tutorial modal_bbm" onClick="nextTutorial();">Next</button>
<button type="button" class="play modal_bbm" onClick="restartGame();" style="left: 43%;">Skip & Start</button>
</div>
<!-- Tutorial Two(Bar's Intro) Modal -->
<div class="modal_bg" id="controls_modal">
<button class="welcome_m_d_c_music" id="music_bg" onClick="BgMusicControl();" data-status="muted" style="font-family:Arial, FontAwesome"><i class="fas fa-volume-mute"></i></button>
<div class="modal_fg">
<div id="tutorial_1_div">
<img id="police_img" src="img/officer.png" alt="" >
<div id="controls_div" >
<span id="target_demo" ><i class="fas fa-arrow-left fa-lg"></i>This is Your Target Bar. </span>
<span id="insignia_demo">This is Your Insignia Rank Stripes.</span>
<i class="fas fa-arrow-down fa-4x"></i>
<img id="target_bar_demo" src="img/target_bar.png" alt="">
<img id="star_stripes_demo" src="img/insignia_stripes.png" alt="">
</div>
</div>
</div>
<button type="button" class="next_tutorial modal_bbm" onClick="CutChallanTutorial();">Next</button>
<button type="button" class="play modal_bbm" onClick="restartGame();" style="left: 43%;">Start Now</button>
</div>
<!-- Tutorial Three(Cut Challan) Modal -->
<div class="modal_bg" id="cut_challan_modal">
<button class="welcome_m_d_c_music" id="music_bg" onClick="BgMusicControl();" data-status="muted" style="font-family:Arial, FontAwesome"><i class="fas fa-volume-mute"></i></button>
<div class="modal_fg">
<div id="tutorial_1_div">
<img id="police_img" src="img/officer.png" alt="" >
<div id="cut_challan_div" >
<h1 style="font-size:300%">How to Cut a challan</h1>
<p>To cut a challan hover your mouse on unmasked persons and click on it. Each challan will collect ₹2000. your target is to collect ₹40,000</p>
<img src="img/mask_challan.gif" alt="">
</div>
</div>
</div>
<button type="button" class="next_tutorial modal_bbm" onClick="InsigniaTutorial();">Next</button>
<button type="button" class="play modal_bbm" onClick="restartGame();" style="left: 43%;">Start Now</button>
</div>
<!-- Tutorial four(Insgnia Rank Stripes) Modal -->
<div class="modal_bg" id="insignia_modal">
<button class="welcome_m_d_c_music" id="music_bg" onClick="BgMusicControl();" data-status="muted" style="font-family:Arial, FontAwesome"><i class="fas fa-volume-mute"></i></button>
<div class="modal_fg">
<div id="insignia_modal_div">
<img id="police_img" src="img/officer.png" alt="" >
<div id="insignia_div" >
<h1 style="font-size:300%">What if you take challan on already masked persons?</h1>
<p>you must be aware not to cut challan of already masked person's. If you cut by mistake it will affect your Insignia Stripes Bar. For Each wrong challan, a star is removed and If all your Star will be removed you are no more Officer now and you lose your game.</p>
<img src="img/wrong_mask_challan.gif" alt="">
</div>
</div>
</div>
<button type="button" class="play modal_bbm" onClick="restartGame();" style="left: 43%;">Start Now</button>
</div>
<!-- Game Over Modal -->
<div class="modal_bg" id="countdown_modal">
<img id="countdown_gif" src="img/countdown.gif" alt="">
</div>
<!-- Game Over Modal -->
<div class="modal_bg" id="game_over_modal">
<button class="welcome_m_d_c_music" id="music_bg" onClick="BgMusicControl();" data-status="muted" style="font-family:Arial, FontAwesome"><i class="fas fa-volume-mute"></i></button>
<div class="modal_fg">
<div id="tutorial_1_div">
<img id="police_img" src="img/officer.png" alt="" >
<div id="game_over_modal_div" >
<h1>GAME OVER!</h1>
<p>You are no more an Officer, You are Suspended</p>
</div>
</div>
</div>
<button type="button" class="play modal_bbm" onClick="restartGame();" style="left: 43%;">Start Again</button>
</div>
<!-- Game won Modal -->
<div class="modal_bg" id="game_won_modal">
<button class="welcome_m_d_c_music" id="music_bg" onClick="BgMusicControl();" data-status="muted" style="font-family:Arial, FontAwesome"><i class="fas fa-volume-mute"></i></button>
<div class="modal_fg">
<div id="tutorial_1_div">
<img id="police_img" src="img/officer.png" alt="" >
<div id="game_won_modal_div" >
<h1>CONGRATS!</h1>
<p>You have done your Job remarkably and you also got promoted</p>
</div>
</div>
</div>
<button type="button" class="play modal_bbm" onClick="restartGame();" style="left: 43%;">Start Again</button>
</div>
<!-- Audio Tags -->
<audio id="bg_music" src="sounds/bg_music.mp3" ></audio>
<audio id="cash_sound" src="sounds/cash.mp3" ></audio>
<audio id="loss_sound" src="sounds/loss.mp3" ></audio>
<audio id="typing_sound" src="sounds/typing.mp3" ></audio>
<audio id="star_remove_sound" src="sounds/star_remove.mp3" ></audio>
<audio id="won_sound" src="sounds/won.mp3" ></audio>
<audio id="countdown_sound" src="sounds/countdown.mp3" ></audio>
<audio id="virus_sound" src="sounds/virus_sound.mp3" ></audio>
<script src="js/script.js" ></script>
<script src="https://kit.fontawesome.com/c1a22938b1.js" crossorigin="anonymous"></script>
</body>
</html>