-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindexmulti.html
More file actions
432 lines (381 loc) · 16.7 KB
/
Copy pathindexmulti.html
File metadata and controls
432 lines (381 loc) · 16.7 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
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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
<!doctype html>
<html lang="en">
<head>
<!-- Open Graph Tags -->
<meta property="og:title" content="Tap or Hold - Playable">
<meta property="og:description" content="Advanced HTML Page for SMS, WhatsApp++, Click & Be Amazed">
<meta property="og:image" content="https://developerplayable.github.io/developerplayable.msgs.io/ww-optimised.gif">
<meta property="og:url" content="">
<meta property="og:video" content="https://cdn.playable.video/demo.playable.video/demo:5128992466927616/0/5128992466927616/16:9/-/1.mp4">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Playable SMS">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://fonts.googleapis.com/css?family=Metamorphous" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open Sans" rel="stylesheet">
<title>THE WAR WITHIN™</title>
<style>
@font-face {
font-family: 'Sailec Bold';
src: url(https://appboy-images.com/appboy/communication/assets/font_assets/files/5f2d540126e78f1669f53229/original.otf?1596806145) format('truetype')
}
@font-face {
font-family: 'Sailec Normal';
src: url(https://appboy-images.com/appboy/communication/assets/font_assets/files/5f2d5401ff0a7415251998d6/original.otf?1596806145) format('truetype')
}
:root {
--font-title: "Metamorphous", sans-serif;
--font-button: "Roboto", sans-serif;
--font-description: "Open Sans", sans-serif
}
*,
::after,
::before {
box-sizing: border-box
}
ol[class],
ul[class] {
padding: 0
}
blockquote,
body,
dd,
dl,
figcaption,
figure,
h1,
h2,
h3,
h4,
li,
ol[class],
p,
ul[class] {
margin: 0
}
body {
scroll-behavior: smooth;
text-rendering: optimizeSpeed;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale
}
ol[class],
ul[class] {
list-style: none
}
a:not([class]) {
text-decoration-skip-ink: auto
}
img {
max-width: 100%;
display: block
}
article>*+* {
margin-top: 1em
}
a,
button,
input,
select,
textarea {
font: inherit
}
a,
button {
border: none;
background-color: transparent;
text-decoration: none
}
.overlay {
display: flex;
position: fixed;
top: 0;
left: 0;
height: 100vh;
width: 100vw;
background-color: rgba(0, 0, 0, .7);
z-index: 99999
}
.modal {
height: auto;
max-width: 330px;
flex-basis: 330px;
margin: auto;
display: flex;
flex-direction: column;
position: relative
}
.modal__image {
height: 330px
}
.modal__image video {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 10px 10px 0 0
}
.modal__content {
display: flex;
flex-direction: column;
position: relative;
padding: 20px 14px 20px 14px;
background-color: #000;
border-radius: 0 0 10px 10px
}
.modal__cross {
position: absolute;
top: 12px;
right: 12px;
height: 28px;
width: 28px;
cursor: pointer;
z-index: 1;
border-radius: 50%;
background: rgba(128, 128, 128, .2);
display: flex !important;
justify-content: center;
padding: 1px
}
.modal__mute {
position: absolute;
top: 50px;
right: 12px;
height: 28px;
width: 28px;
cursor: pointer;
z-index: 1;
border-radius: 50%;
background: rgba(128, 128, 128, .2);
display: flex !important;
justify-content: center;
padding: 1px
}
.modal__title {
margin-bottom: 10px;
font-size: 22px;
line-height: 1.2;
color: #fff;
font-family: var(--font-title);
text-align: center
}
.modal__sub-title {
margin-bottom: 8px;
font-family: var(--font-description);
font-size: 1rem;
color: hsla(0, 0%, 100%, .7);
text-align: left
}
.modal__text {
font-family: var(--body-font-stack);
font-size: 14px;
color: #101b24;
line-height: 1.5
}
.modal__button-wrap {
display: flex;
margin-top: auto;
margin-left: 0;
justify-content: space-between
}
.modal__btn {
border-radius: 4px;
font-family: var(--font-button);
font-weight: 600;
min-height: 55px;
max-height: 55px;
width: 150px;
align-items: center;
display: flex;
justify-content: center;
text-align: center
}
.modal__btn--main {
color: #000;
font-size: 14px;
background-image: url(https://world-of-warcraft-dragon-flight.s3.us-west-2.amazonaws.com/Grey+WoW+Button.png);
background-size: 150px 55px;
background-repeat: no-repeat
}
.modal__btn--secondary {
color: #fff;
font-size: 14px;
background-image: url(https://world-of-warcraft-dragon-flight.s3.us-west-2.amazonaws.com/Blue+WoW+Button.png);
background-size: 150px 55px;
background-repeat: no-repeat
}
.hide {
display: none
}
.fade {
opacity: 0;
transition: opacity 1s ease-in-out
}
.show {
opacity: 1
}
.txt-style {
border-radius: 20px
}
@media (max-width:360px) and (min-width:0px) {
.modal__image {
height: 260px
}
.modal__title {
font-size: 19px
}
.modal__sub-title {
font-size: .7rem
}
}
@media (max-width:380px) and (min-width:350px),
(max-height:700px) and (min-height:600px) {
.modal__image {
height: 260px
}
.modal__title {
font-size: 19px
}
.modal__sub-title {
font-size: .7rem
}
}
@media (max-width:400px) and (min-width:380px),
(max-height:800px) and (min-height:700px) {
.modal__image {
height: 290px
}
.modal__title {
font-size: 20px
}
.modal__sub-title {
font-size: .9rem
}
}
</style>
</head>
<body>
<div class="overlay">
<div class="modal"><a data-button-id="close" class="modal__cross" onclick="brazeBridge.closeMessage()"><svg
xmlns="http://www.w3.org/2000/svg" fill="none" stroke="rgba(0, 0, 0, 0.7)" stroke-linecap="round"
stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" part="icon blz-icon">
<path d="M18 6 6 18M6 6l12 12"></path>
</svg></a><a button-id="mute" class="modal__mute" onclick="toggleSound()"><svg
xmlns="http://www.w3.org/2000/svg" fill="rgba(0, 0, 0, 0.7)" viewBox="0 0 640 512">
<path
d="M301.1 34.8C312.6 40 320 51.4 320 64V448c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h67.8L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3zM425 167l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0z">
</path>
</svg></a>
<div class="modal__image"><video id="video" muted autoplay playsinline>
<source id="source" src="https://cdn.playable.video/editor/5881057547911168/clickplay.mp4"
type="video/mp4">
</video></div>
<div class="modal__content">
<h1 id="title" class="modal__title">Take wing to a new beginning</h1>
<h2 id="sub_title" class="modal__sub-title">Join forces with the dragonflights of Azeroth as they return
to the Dragon Isles, a lost realm of magic and wonder. There await the dracthyr evokers, an all-new
playable race and class of humanoid dragonkin who stand ready to join the ranks of the Horde and
Alliance.</h2>
<div id="options" class="modal__button-wrap hide fade"><a href="#" class="modal__btn modal__btn--main"
onclick="PlayDracthyr()">Dracthyr</a><a href="#" class="modal__btn modal__btn--secondary"
onclick="PlayDragonIsles()">Dragon Isles</a></div>
<div id="DracthyrDiv" class="modal__button-wrap hide fade"><a href="#"
class="modal__btn modal__btn--main" onclick="PlayDragonIsles()">Dragon Isles</a><a
href="https://us.shop.battle.net/en-gb/product/world-of-warcraft-the-war-within" target="_blank"
class="modal__btn modal__btn--secondary">Pre-Purchase</a></div>
<div id="DragonIslesDiv" class="modal__button-wrap hide fade"><a href="#"
class="modal__btn modal__btn--main" onclick="PlayDracthyr()">Dracthyr</a><a
href="https://us.shop.battle.net/en-gb/product/world-of-warcraft-the-war-within" target="_blank"
class="modal__btn modal__btn--secondary">Pre-Purchase</a></div>
<div id="modal_complete" class="modal__button-wrap hide fade"><a
href="https://dragonflight.blizzard.com/en-us/" target="_blank"
class="modal__btn modal__btn--main">Learn More</a><a
href="https://us.shop.battle.net/en-gb/product/world-of-warcraft-the-war-within" target="_blank"
class="modal__btn modal__btn--secondary">Pre-Purchase</a></div>
</div>
</div>
</div>
<script>let videoCurrent = '';
let videosPlayed = 0; // This will increment at the start of each video
let lastVideoSrc = ''; // To keep track of the last video source
let aud = document.getElementById("video");
// Increment videosPlayed at the start of each video
aud.addEventListener('play', function () {
if (aud.currentSrc !== lastVideoSrc) {
videosPlayed++;
lastVideoSrc = aud.currentSrc;
if (videosPlayed === 3) { // When the third video starts
hideAllDivs();
showDiv("modal_complete");
} else {
showRelevantDiv();
}
}
});
function hideAllDivs() {
document.querySelectorAll('.modal__button-wrap').forEach((div) => {
div.classList.remove('show');
div.classList.add('hide');
});
}
function showDiv(id) {
const div = document.getElementById(id);
div.classList.remove('hide');
setTimeout(() => {
div.classList.add('show');
}, 10);
}
function showRelevantDiv() {
if (videoCurrent === '') {
showDiv("options");
} else if (videoCurrent === 'Dracthyr') {
showDiv("DracthyrDiv");
} else if (videoCurrent === 'DragonIsles') {
showDiv("DragonIslesDiv");
}
}
document.querySelectorAll('[data-button-id]').forEach(function (node) {
node.addEventListener('click', function () {
brazeBridge.closeMessage();
});
});
function toggleSound() {
var video = document.getElementById('video');
var muteButton = document.querySelector('.modal__mute');
video.muted = !video.muted;
console.log('Sound toggled. Muted:', video.muted);
if (video.muted) {
muteButton.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" fill="rgba(0, 0, 0, 0.7)" viewBox="0 0 640 512"><path d="M301.1 34.8C312.6 40 320 51.4 320 64V448c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h67.8L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3zM425 167l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0z"></path></svg>';
} else {
muteButton.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" fill="rgba(0, 0, 0, 0.7)" viewBox="0 0 640 512"><path d="M533.6 32.5C598.5 85.3 640 165.8 640 256s-41.5 170.8-106.4 223.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C557.5 398.2 592 331.2 592 256s-34.5-142.2-88.7-186.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM473.1 107c43.2 35.2 70.9 88.9 70.9 149s-27.7 113.8-70.9 149c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C475.3 341.3 496 301.1 496 256s-20.7-85.3-53.2-111.8c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zm-60.5 74.5C434.1 199.1 448 225.9 448 256s-13.9 56.9-35.4 74.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C393.1 284.4 400 271 400 256s-6.9-28.4-17.7-37.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM301.1 34.8C312.6 40 320 51.4 320 64V448c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h67.8L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3z"></path></svg>';
}
}
function PlayDracthyr() {
videoCurrent = 'Dracthyr';
var video = document.getElementById('video');
const source = document.getElementById('source');
hideAllDivs();
let video_title = document.getElementById("title");
video_title.textContent = 'All-new Race: The Dracthyr';
video_title.style.fontSize = '20px';
let video_sub_title = document.getElementById("sub_title");
video_sub_title.textContent = 'Created by Neltharion the Earth-Warder, the essence of dragons was combined with the adaptability of the mortal races to create an elite soldier capable of switching from a draconic form to humanoid form.';
source.setAttribute('src', `https://cdn.playable.video/editor/6716589882474496/clickplay.mp4`);
video.load();
}
function PlayDragonIsles() {
videoCurrent = 'DragonIsles';
var video = document.getElementById('video');
const source = document.getElementById('source');
hideAllDivs();
let video_title = document.getElementById("title");
video_title.textContent = 'All-new Zone: The Dragon Isles';
let video_sub_title = document.getElementById("sub_title");
video_sub_title.textContent = 'The ancestral home of the dragonflights of Azeroth. When the world was broke apart in the Great Sundering, magic drained away and the land went dormant. As the Dragon Isles awaken, so too do old feuds and long-dormant threats.';
source.setAttribute('src', `https://cdn.playable.video/editor/4877861887148032/clickplay.mp4`);
video.load();
}</script>
</body>
</html>