-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget-a-copy.html
388 lines (352 loc) · 14.5 KB
/
get-a-copy.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Get-a-Copy - FT website</title>
<meta property="og:title" content="Get-a-Copy - FT website" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="utf-8" />
<meta property="twitter:card" content="summary_large_image" />
<style data-tag="reset-style-sheet">
html { line-height: 1.15;}body { margin: 0;}* { box-sizing: border-box; border-width: 0; border-style: solid;}p,li,ul,pre,div,h1,h2,h3,h4,h5,h6,figure,blockquote,figcaption { margin: 0; padding: 0;}button { background-color: transparent;}button,input,optgroup,select,textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0;}button,select { text-transform: none;}button,[type="button"],[type="reset"],[type="submit"] { -webkit-appearance: button;}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner { border-style: none; padding: 0;}button:-moz-focus,[type="button"]:-moz-focus,[type="reset"]:-moz-focus,[type="submit"]:-moz-focus { outline: 1px dotted ButtonText;}a { color: inherit; text-decoration: inherit;}input { padding: 2px 4px;}img { display: block;}html { scroll-behavior: smooth }
</style>
<style data-tag="default-style-sheet">
html {
font-family: Merriweather;
font-size: 16px;
}
body {
font-weight: 700;
font-style:normal;
text-decoration: none;
text-transform: uppercase;
letter-spacing: normal;
line-height: 1.3;
color: var(--dl-color-scheme-darkblue);
background-color: var(--dl-color-scheme-white);
}
</style>
<link
rel="shortcut icon"
href="public/playground_assets/ft_favicon.png"
type="icon/png"
sizes="32x32"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital,wght@0,400;1,400&display=swap"
data-tag="font"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap"
data-tag="font"
/>
<style>
.services-card:hover > div{
background-color: #fff
}
</style>
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div>
<link href="./get-a-copy.css" rel="stylesheet" />
<script
type="text/javascript"
src="https://unpkg.com/[email protected]/dist/default/lib.umd.js"
></script>
<div class="get-a-copy-container">
<header data-role="Header" class="navigation-header">
<div class="navigation-max-width">
<div class="navigation-nav">
<nav
class="navigation-links-nav navigation-links-root-class-name17"
>
<a
href="index.html"
class="navigation-links-navlink Navigation-Link"
>
<span>HOME</span>
</a>
<span class="navigation-links-text Navigation-Link">
<span>ISSUES</span>
</span>
<a
href="get-a-copy.html"
class="navigation-links-navlink1 Navigation-Link"
>
<span>GET A COPY</span>
</a>
<a
href="contact.html"
class="navigation-links-navlink2 Navigation-Link"
>
<span>CONTACT</span>
</a>
</nav>
</div>
<div data-role="BurgerMenu" class="navigation-burger-menu">
<svg viewBox="0 0 1024 1024" class="navigation-icon">
<path
d="M128 554.667h768c23.552 0 42.667-19.115 42.667-42.667s-19.115-42.667-42.667-42.667h-768c-23.552 0-42.667 19.115-42.667 42.667s19.115 42.667 42.667 42.667zM128 298.667h768c23.552 0 42.667-19.115 42.667-42.667s-19.115-42.667-42.667-42.667h-768c-23.552 0-42.667 19.115-42.667 42.667s19.115 42.667 42.667 42.667zM128 810.667h768c23.552 0 42.667-19.115 42.667-42.667s-19.115-42.667-42.667-42.667h-768c-23.552 0-42.667 19.115-42.667 42.667s19.115 42.667 42.667 42.667z"
></path>
</svg>
</div>
<div data-role="MobileMenu" class="mobile-menu">
<div class="navigation-nav1">
<div class="navigation-container">
<div
data-role="CloseMobileMenu"
class="navigation-close-mobile-menu"
>
<svg viewBox="0 0 1024 1024" class="navigation-icon2">
<path
d="M810 274l-238 238 238 238-60 60-238-238-238 238-60-60 238-238-238-238 60-60 238 238 238-238z"
></path>
</svg>
</div>
</div>
<nav
class="navigation-links-nav navigation-links-root-class-name18"
>
<a
href="index.html"
class="navigation-links-navlink Navigation-Link"
>
<span>HOME</span>
</a>
<span class="navigation-links-text Navigation-Link">
<span>ISSUES</span>
</span>
<a
href="get-a-copy.html"
class="navigation-links-navlink1 Navigation-Link"
>
<span>GET A COPY</span>
</a>
<a
href="contact.html"
class="navigation-links-navlink2 Navigation-Link"
>
<span>CONTACT</span>
</a>
</nav>
<button class="button-secondary button button-md">
<span>Get in touch</span>
</button>
</div>
</div>
</div>
</header>
<span></span>
<div class="get-a-copy-container1">
<span>
<span>Get a copy of fool tide shipped to your door :)</span>
<br />
<span>world shipping for 35 kr</span>
<br />
<span class="get-a-copy-text06">SEND US AN EMAIL (</span>
<span class="get-a-copy-text07">TIDEFOOL AT GMAIL DOT COM)</span>
<br class="get-a-copy-text08" />
<br class="get-a-copy-text09" />
<span class="get-a-copy-text10">
OR USE OUR CONVENIENT "PAY WHAT YOU WANT" ORDER FORM BELOW:
</span>
<br class="get-a-copy-text11" />
<span class="get-a-copy-text12">
LET US KNOW HOW MANY COPIES YOU WANT, AND FEEL FREE TO ADD A
MESSAGE TO THE MESSAGE BOARD :)
</span>
<br />
<br />
<br />
</span>
</div>
<span class="get-a-copy-text16">
<br />
<br />
<br />
<br />
<br />
</span>
<div class="get-a-copy-div">
<div id='smart-button-container'>
<div style='text-align: center'><label for='description'>Message: (e.g. 'ONE COPY PLEASE. MESSAGE BOARD: 'PORRIDGE WITH RAISINS FOR BREAKFAST TODAY'') </label><input type='text' name='descriptionInput' id='description' maxlength='127' value=''></div>
<p id='descriptionError' style='visibility: hidden; color:red; text-align: center;'>Please enter a message</p>
<div style='text-align: center'><label for='amount'>Amount (min. 35kr for shipping): </label><input name='amountInput' type='number' id='amount' value='35' ><span> DKK</span></div>
<p id='priceLabelError' style='visibility: hidden; color:red; text-align: center;'>Please enter a price</p>
<div id='invoiceidDiv' style='text-align: center; display: none;'><label for='invoiceid'> </label><input name='invoiceid' maxlength='127' type='text' id='invoiceid' value='' ></div>
<p id='invoiceidError' style='visibility: hidden; color:red; text-align: center;'>Please enter an Invoice ID</p>
<div style='text-align: center; margin-top: 0.625rem;' id='paypal-button-container'></div>
</div>
<script src='https://www.paypal.com/sdk/js?client-id=AfobipCYQS_LpA-Zlzvyc7S8d3ioerY5jTtamcpCAo3Snim9o_bNWsyVvF5p7denzUDMFE6Xkw5nNy_d&enable-funding=venmo&currency=DKK' data-sdk-integration-source='button-factory'></script>
<script>
function initPayPalButton() {
var description = document.querySelector('#smart-button-container #description');
var amount = document.querySelector('#smart-button-container #amount');
var descriptionError = document.querySelector('#smart-button-container #descriptionError');
var priceError = document.querySelector('#smart-button-container #priceLabelError');
var invoiceid = document.querySelector('#smart-button-container #invoiceid');
var invoiceidError = document.querySelector('#smart-button-container #invoiceidError');
var invoiceidDiv = document.querySelector('#smart-button-container #invoiceidDiv');
var elArr = [description, amount];
if (invoiceidDiv.firstChild.innerHTML.length > 1) {
invoiceidDiv.style.display = 'block';
}
var purchase_units = [];
purchase_units[0] = {};
purchase_units[0].amount = {};
function validate(event) {
return event.value.length > 0;
}
paypal.Buttons({
style: {
color: 'gold',
shape: 'rect',
label: 'paypal',
layout: 'vertical',
},
onInit: function (data, actions) {
actions.disable();
if(invoiceidDiv.style.display === 'block') {
elArr.push(invoiceid);
}
elArr.forEach(function (item) {
item.addEventListener('keyup', function (event) {
var result = elArr.every(validate);
if (result) {
actions.enable();
} else {
actions.disable();
}
});
});
},
onClick: function () {
if (description.value.length < 1) {
descriptionError.style.visibility = 'visible';
} else {
descriptionError.style.visibility = 'hidden';
}
if (amount.value.length < 1) {
priceError.style.visibility = 'visible';
} else {
priceError.style.visibility = 'hidden';
}
if (invoiceid.value.length < 1 && invoiceidDiv.style.display === 'block') {
invoiceidError.style.visibility = 'visible';
} else {
invoiceidError.style.visibility = 'hidden';
}
purchase_units[0].description = description.value;
purchase_units[0].amount.value = amount.value;
if(invoiceid.value !== '') {
purchase_units[0].invoice_id = invoiceid.value;
}
},
createOrder: function (data, actions) {
return actions.order.create({
purchase_units: purchase_units,
});
},
onApprove: function (data, actions) {
return actions.order.capture().then(function (orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// Show a success message within this page, e.g.
const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
onError: function (err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();
</script>
</div>
</div>
</div>
<script src="https://unpkg.com/@teleporthq/teleport-custom-scripts"></script>
<script>
window.onload = () => {
const runAllScripts = () => {
initializeAllSliders();
};
const listenForUrlChanges = () => {
let url = location.href;
document.body.addEventListener(
"click",
() => {
requestAnimationFrame(() => {
if (url !== location.href) {
runAllScripts();
url = location.href;
}
});
},
true
);
};
const initializeAllSliders = () => {
const allSliders = document.querySelectorAll('[data-type="slider"]');
allSliders.forEach((slider) => {
initializeSlider(slider);
});
};
const initializeSlider = (slider) => {
const slides = slider.querySelectorAll('[data-type="slide"]');
const middle = Math.ceil(slides.length / 2);
let currentSlide = middle;
const nextSlideBtns = document.querySelectorAll(
'[data-action="nextSlide"]'
);
const previousSlideBtns = document.querySelectorAll(
'[data-action="previousSlide"]'
);
const changeSlide = (slideIndex, action) => {
currentSlide = slideIndex;
switch (action) {
case "next":
slideIndex === slides.length
? (currentSlide = 1)
: currentSlide++;
break;
case "previous":
slideIndex === 1
? (currentSlide = slides.length)
: currentSlide--;
}
const slide = slides[0];
if (!slide) {
console.error("No slides present");
return;
}
const style = window.getComputedStyle(slide);
slideWidth =
parseInt(style.width) +
parseInt(style.marginLeft) +
parseInt(style.marginRight);
const transformValue = -slideWidth * (currentSlide - middle);
slider.style.transform = `translateX(${transformValue}px)`;
};
previousSlideBtns.forEach((btn) => {
btn.addEventListener("click", () =>
changeSlide(currentSlide, "previous")
);
});
nextSlideBtns.forEach((btn) => {
btn.addEventListener("click", () =>
changeSlide(currentSlide, "next")
);
});
};
runAllScripts();
};
</script>
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
</body>
</html>