-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
173 lines (160 loc) · 6.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
/>
<meta property="og:title" content="Vòng quay may mắn - nhận ngay voucher" />
<meta
property="og:description"
content="Vòng quay may mắn - nhận ngay voucher"
/>
<meta property="og:image" content="./images/web1xxx.png" />
<meta
property="og:url"
content="https://tokyolife.vn/lucky-wheel/index.html"
/>
<title>Vòng quay may mắn - nhận ngay voucher</title>
<link rel="stylesheet" type="text/css" href="./styles.css" />
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
</head>
<body onload="onDocumentLoad()">
<!-- Start: Content -->
<div class="wrapper">
<div class="header">
<svg
id="btn-back"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M9.04287 18.6011C9.19287 18.7511 9.38287 18.8211 9.57287 18.8211C9.76287 18.8211 9.96287 18.7511 10.1029 18.6011C10.3929 18.3111 10.3929 17.8311 10.1029 17.5411L5.31275 12.751H20.5029C20.9129 12.751 21.2529 12.411 21.2529 12.001C21.2529 11.591 20.9129 11.251 20.5029 11.251H5.31299L10.1029 6.4611C10.3929 6.1711 10.3929 5.6911 10.1029 5.4011C9.81287 5.1111 9.33287 5.1111 9.04287 5.4011L2.97287 11.4711C2.68287 11.7611 2.68287 12.2411 2.97287 12.5311L9.04287 18.6011Z"
fill="white"
/>
</svg>
</div>
<img
id="end-game"
class="end-game"
src="./images/end-game.png"
alt="End game"
/>
<img id="game-title" class="title" src="./images/title.png" alt="Title" />
<div id="wheel-wrapper" class="wheel-wrapper">
<div class="container">
<div class="spin">
<img
class="spin-arrow"
src="./images/spin-arrow.png"
alt="Spin arrow"
/>
<img class="btn-spin" src="./images/spin-flower.png" alt="Spin" />
</div>
<div class="wheel"></div>
</div>
</div>
<div id="turns" class="turns">
Bạn còn <span id="play-count">0</span> lượt quay
</div>
<div id="missions" class="missions">
<img class="missions-img" src="./images/more-turn.png" />
<div class="missions-item">
<img class="missions-item-img" src="./svgs/share-svg.svg" />
<div class="missions-item-content">
<span>Chia sẻ nhận thêm một lượt quay</span>
<span>Đã nhận <span id="count-share">0/1</span> lượt quay</span>
</div>
<div id="btn-share" class="missions-item-share"></div>
</div>
</div>
<img onload="setImageFlag(0)" id="bg-body" />
</div>
<!-- End: Content -->
<!-- Start: Actions -->
<div class="actions">
<div class="actions-guide">
<img class="guide-icon" src="./images/guide-icon.png" />
<div id="btn-guide" class="red-button">Hướng dẫn</div>
</div>
<div class="actions-gift">
<img class="gift-icon" src="./images/gift-icon.png" />
<div id="btn-gift" class="red-button">Quà đã nhận</div>
</div>
</div>
<!-- End: Actions -->
<!-- Start: Loading -->
<div id="loading" class="loading">
<div class="overlay">
<img id="loading-img" src="./images/loading.gif" alt="Loading" />
<div id="loading-error" class="loading-error">
<div class="loading-error-title"></div>
<div id="loading-error-button" class="loading-error-button">
Quay trở lại
</div>
</div>
</div>
</div>
<!-- End: Loading -->
<!-- Start: Modal receive gift -->
<div id="modal" class="modal-success">
<div class="overlay">
<div class="content">
<svg
id="close-icon"
class="close-icon"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2ZM15.36 14.3C15.65 14.59 15.65 15.07 15.36 15.36C15.21 15.51 15.02 15.58 14.83 15.58C14.64 15.58 14.45 15.51 14.3 15.36L12 13.06L9.7 15.36C9.55 15.51 9.36 15.58 9.17 15.58C8.98 15.58 8.79 15.51 8.64 15.36C8.35 15.07 8.35 14.59 8.64 14.3L10.94 12L8.64 9.7C8.35 9.41 8.35 8.93 8.64 8.64C8.93 8.35 9.41 8.35 9.7 8.64L12 10.94L14.3 8.64C14.59 8.35 15.07 8.35 15.36 8.64C15.65 8.93 15.65 9.41 15.36 9.7L13.06 12L15.36 14.3Z"
fill="white"
/>
</svg>
<img
id="img-success"
class="img-success"
src="./images/modal-success.png"
/>
<img id="img-spin" class="img-spin" src="./images/modal-spin.png" />
<div id="text-success" class="text-success"></div>
<div class="success-actions">
<span id="view-gift" class="view-gift"></span>
<span id="continue-spin" class="continue-spin"></span>
<span id="understand" class="understand"></span>
</div>
</div>
</div>
</div>
<!-- End: Modal receive gift -->
<!-- Start: Modal prevent view from normal browser -->
<div id="modal-prevent" class="modal-prevent">
<span>Không hỗ trợ trình duyệt</span>
</div>
<!-- End: Modal prevent view from normal browser -->
<!-- Start: Auth -->
<input id="apiUrl" hidden />
<input id="wheelId" hidden />
<input id="token" hidden />
<input id="refresh-token" hidden />
<input id="start-date" hidden />
<!-- End: Auth -->
<script type="text/javascript" src="./error-codes.js"></script>
<script type="text/javascript" src="./variables.js"></script>
<script type="text/javascript" src="./utils.js"></script>
<script type="text/javascript" src="./axios-client.js"></script>
<script type="text/javascript" src="./api.js"></script>
<script type="text/javascript" src="./scripts.js"></script>
</body>
</html>