-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
408 lines (356 loc) · 14.2 KB
/
Copy pathindex.html
File metadata and controls
408 lines (356 loc) · 14.2 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
<!doctype html>
<html lang="en">
<head>
<meta property="og:title" content="Sonos Battery - Tap or Hold">
<meta property="og:description" content="Advanced SMS Templete Click">
<meta property="og:image" content="https://cdn.playable.video/sonos.playable.video/v:4896427360387072/0/4896427360387072/16:9/-/0.gif">
<meta property="og:url" content="">
<meta property="og:video" content="https://cdn.playable.video/sonos.playable.video/v:4896427360387072/1/4896427360387072/16:9/-/n1.mp4">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Playable Sonos">
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<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'>
<link href="https://db.onlinewebfonts.com/c/e770a9e3ae1a8be2089472bc6391f697?family=Electronic+Arts+Display"
rel="stylesheet">
<link href="https://db.onlinewebfonts.com/c/48656eabd3fef6464367d956315c749a?family=Electronic+Arts+Text"
rel="stylesheet">
<title>SONOS</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: "Sonos Product Name", Arial;
--font-button: "Sonos Product Description", Arial;
--font-description: "Sonos Product Description", Arial;
}
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Remove default padding */
ul[class],
ol[class] {
padding: 0;
}
/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
margin: 0;
}
/* Set core body defaults */
body {
scroll-behavior: smooth;
text-rendering: optimizeSpeed;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
list-style: none;
}
/* A elements that don't have a class get default styles */
a:not([class]) {
text-decoration-skip-ink: auto;
}
/* Make images easier to work with */
img {
max-width: 100%;
display: block;
}
/* Natural flow and rhythm in articles by default */
article>*+* {
margin-top: 1em;
}
/* Inherit fonts for inputs and buttons */
input,
button,
a,
textarea,
select {
font: inherit;
}
button,
a {
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, 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 0px 0px;
}
.modal__content {
display: flex;
flex-direction: column;
position: relative;
padding: 20px 14px 20px 14px;
background-color: rgb(21, 23, 22);
border-radius: 0px 0px 10px 10px;
}
.cta-button {
border-width: 2px;
border-style: solid;
padding-left: 1.5rem;
padding-right: 1.5rem;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
width: fit-content;
color: #ffffff; /* Replace with actual color value if known */
}
.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;
font-weight: 400;
line-height: 1.2;
color: #ffffff;
font-family: var(--font-title);
text-align: center;
}
.modal__sub-title {
margin-bottom: 12px;
font-family: var(--font-description);
font-size: 1rem;
font-weight: normal;
color: hsla(0, 0%, 100%, 1);
text-align: center;
}
.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: 0px;
justify-content: center;
}
.modal__btn {
border-radius: 26px;
font-family: var(--font-button);
font-weight: 400;
min-height: 45px;
max-height: 45px;
align-items: center;
display: flex;
justify-content: center;
text-align: center;
transition: transform 0.2s ease;
}
.modal__btn--main {
color: rgb(0, 0, 0, 0.1);
font-size: 16px;
background-size: 150px 55px;
background-repeat: no-repeat;
}
/* this is the secondary button style, can be used if they want the buttons to appear different*/
.modal__btn--secondary {
color: rgb(0, 0, 0);
font-size: 16px;
background-color: rgb(255, 88, 56);
background-size: 150px 55px;
background-repeat: no-repeat;
}
.modal__btn--third {
color: rgb(255, 255, 255);
font-size: 16px;
background-color: rgb(21, 23, 22);
border: 1px solid;
border-color: #ffffff;
background-size: 150px 55px;
background-repeat: no-repeat;
}
.modal__btn:hover {
transform: scale(0.95); /* Shrinks the button by 5% when hovered */
}
.icon {
filter: invert(1);
width: 16px;
/* Shrink the icon size */
height: 16px;
margin-left: 8px;
/* Add padding between the text and icon */
}
.hide {
display: none;
}
.fade {
opacity: 0;
transition: opacity 1s ease-in-out;
}
.show {
opacity: 1;
}
.txt-style {
border-radius: 20px;
}
/*Phones*/
/* Small devices (portrait tablets and large phones) */
@media (max-width: 360px) and (min-width: 0px) {
.modal__image {
height: 260px;
}
.modal__title {
font-size: 19px;
}
.modal__sub-title {
font-size: 0.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: 0.7rem;
}
}
/* Medium devices (landscape tablets, 768px and up) */
@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: 13px;
}
}
</style>
</head>
<body>
<div class="overlay">
<div class="modal">
<a data-button-id="close" class="modal__cross" onclick="window.close()"
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 loop>
<source id="source" src="https://cdn.playable.video/sonos.playable.video/v:4896427360387072/1/4896427360387072/16:9/-/native.mp4"
type="video/mp4">
</video>
</div>
<div class="modal__content">
<h1 id="title" class="modal__title">How to replace the battery on Sonos Move</h1>
<h2 id="sub_title" class="modal__sub-title">Improve the battery life for Sonos Move or Move 2 using the Replacement Battery Kit. In this video, we’ll show you how to swap out your old battery in just a few minutes.</h2>
<div class="modal__button-wrap">
<a href="https://www.sonos.com/en-au/shop/move-2-battery-replacement?srsltid=AfmBOorCFIUgVEkV57k9qO4LCywJuG9c0nXoo8jv2Ww-G2144Xl71BRfKqo" target="_blank"
class="modal__btn cta-button">Buy Now
<img class="icon" src="https://img.icons8.com/ios-glyphs/30/shopping-cart--v1.png"/>
</a>
</div>
</div>
</div>
</div>
<script>
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>';
}
}
</script>
</body>
</html>