-
Notifications
You must be signed in to change notification settings - Fork 4
/
gdpr.src.js
763 lines (691 loc) · 36.5 KB
/
gdpr.src.js
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
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
'use strict';
(function () {
if (!window.GDPR) {
if (Element.prototype.getAttributeNames == undefined) {
Element.prototype.getAttributeNames = function () {
var attributes = this.attributes;
var length = attributes.length;
var result = new Array(length);
for (var i = 0; i < length; i++) {
result[i] = attributes[i].name;
}
return result;
};
}
if (Object.values == undefined) {
Object.values = function (object) {
return Object.keys(object).map(function (key) {
return object[key];
});
}
}
window.GDPR = new GDPR();
}
function GDPR() {
var optIns = {};
var cookiePrefix = 'vo_';
var gdprCookieName = 'gdpr';
var gdprCookieDateName = 'gdpr_date';
var gdprResetDate = new Date('2019/05/14');
var matomoScriptId = 'gdpr_matomo_script';
var matomoPiwikScriptId = 'gdpr_matomo_piwik_script';
var matomoOntwikkelUrl = '//stats-ontwikkel.milieuinfo.be/';
var matomoOefenUrl = '//stats-oefen.milieuinfo.be/';
var matomoProdUrl = '//stats.milieuinfo.be/';
var modalElement;
var overlayElement;
initialize();
this.open = function () {
open(true);
};
this.close = close;
this.addOptIn = addOptIn;
this.reset = function () {
deleteCookie(gdprCookieName);
deleteCookie(gdprCookieDateName);
Object.values(optIns).forEach(function (optIn) {
deleteCookie(optIn.name);
resetOptInValue(optIn);
if (optIn.deactivate) {
optIn.deactivate();
}
});
};
this.isOptInActive = function (name) {
return optIns[name] ? optIns[name].value : false;
};
this.addActivationCallback = function (name, callback) {
optIns[name].activate = callback;
};
this.addDeactivationCallback = function (name, callback) {
optIns[name].deactivate = callback;
};
if (getScriptBooleanAttribute('auto-open', false) && Object.keys(optIns).length > 0) {
open();
}
if (getCookie(gdprCookieName) && (!getCookie(gdprCookieDateName) || gdprCookieDateOngeldig())) {
open(true);
}
function gdprCookieDateOngeldig() {
var value = getCookie(gdprCookieDateName);
if (isNaN(value)) {
return true;
} else {
return (new Date(getCookie(gdprCookieDateName)) < gdprResetDate);
}
}
function addOptIn(name, label, description, value, required, activationCallback, deactivationCallback) {
if (!optIns[name]) {
const storedValue = getCookie(name);
optIns[name] = {
'name': name,
'label': label,
'description': description,
'value': storedValue !== undefined ? storedValue : value,
'activate': activationCallback,
'deactivate': deactivationCallback,
'required': !!required
};
}
}
function resetOptInValue(optIn) {
optIn.value = getOptInValueAttribute(optIn.name);
}
function addFunctionalOptIn() {
addOptIn('functional', 'Noodzakelijke cookies toestaan (verplicht)', 'Noodzakelijke cookies helpen een website bruikbaarder te maken, door basisfuncties als paginanavigatie en toegang tot beveiligde gedeelten van de website mogelijk te maken. Zonder deze cookies kan de website niet naar behoren werken.', false, true);
}
function aantalOptIns() {
return Object.values(optIns).length;
}
function addAnalytics() {
if (!document.getElementById(matomoScriptId)) {
document.head.appendChild(createMatomoScript());
}
}
function getGDPRScript() {
return document.querySelector('#gdpr_script');
}
function initialize() {
addStyleLink();
if (isOptIn('functional', true)) {
addFunctionalOptIn();
if (isOptIn('analytics', true)) {
addAnalytics();
}
}
getGDPRScript().getAttributeNames().forEach(function (attributeName) {
var matches = /^data-opt-in-([^-]+)(-(.+))?$/.exec(attributeName);
if (matches) {
var name = matches[1];
addOptIn(name, getOptInLabelAttribute(name), getOptInDescriptionAttribute(name), getOptInValueAttribute(name), getOptInRequiredAttribute(name));
}
});
}
function open(forced) {
if (!getCookie(gdprCookieName) || forced) {
document.body.appendChild(createModalElement());
document.body.appendChild(overlayElement || createOverlayElement());
} else {
processOptIns();
}
}
function close() {
if (modalElement) {
document.body.removeChild(modalElement);
}
if (overlayElement) {
document.body.removeChild(overlayElement);
}
processOptInCookies();
processOptIns();
setCookie(gdprCookieName, true);
setCookie(gdprCookieDateName, new Date().getTime());
}
function getScriptAttribute(key) {
return getGDPRScript().getAttribute(key);
}
function getScriptDataAttribute(name, fallback) {
var value = getScriptAttribute("data-" + name);
if (value) {
try {
return JSON.parse(value);
} catch (e) {
return value;
}
} else {
return fallback;
}
}
function getScriptBooleanAttribute(name, fallback) {
var value = getScriptAttribute("data-" + name);
if (value) {
try {
return JSON.parse(value);
} catch (e) {
return value;
}
} else if (value != undefined) {
return !!new Boolean("");
} else {
return fallback;
}
}
function isOptIn(name, fallback) {
return getScriptDataAttribute("opt-in-" + name, fallback);
}
function getOptInAttribute(name, attribute, fallback) {
return getScriptDataAttribute("opt-in-" + name + "-" + attribute, fallback);
}
function getOptInBooleanAttribute(name, attribute, fallback) {
return getScriptBooleanAttribute("opt-in-" + name + "-" + attribute, fallback);
}
function getOptInLabelAttribute(name) {
return getOptInAttribute(name, "label", name);
}
function getOptInDescriptionAttribute(name) {
return getOptInAttribute(name, "description");
}
function getOptInValueAttribute(name) {
return getOptInBooleanAttribute(name, "value", false);
}
function getOptInRequiredAttribute(name) {
return getOptInBooleanAttribute(name, "required", false);
}
function getContextPath() {
return getScriptDataAttribute("context-path", "/");
}
function createModalElement() {
var modal = document.createElement('div');
modal.setAttribute('id', 'gdpr_modal');
modal.appendChild(createModalTitleElement());
modal.appendChild(createModalTextElement());
Object.values(optIns).forEach(function (optIn) {
modal.appendChild(createOptieElement(optIn));
});
modal.appendChild(createModalConfirmButton());
return modalElement = modal;
}
function createModalTitleElement() {
var element = document.createElement('h2');
element.textContent = 'Cookie-toestemming';
element.setAttribute('id', 'gdpr_modal_titel');
return element;
}
function createModalTextElement() {
var element = document.createElement('div');
element.setAttribute('id', 'gdpr_modal_tekst');
var element1 = document.createElement('p');
element1.innerHTML = 'Het Departement Omgeving maakt op de websites waarvoor zij verantwoordelijk is gebruik van "cookies" en vergelijkbare internettechnieken. Cookies zijn kleine "tekstbestanden" die worden gebruikt om onze websites en apps beter te laten werken en jouw surfervaring te verbeteren. Zij kunnen worden opgeslagen in de context van de webbrowser(s) die je gebruikt bij het bezoeken van onze website(s).';
var element2 = document.createElement('p');
element2.innerHTML = 'Er zijn verschillende soorten cookies, en deze hebben ook een verschillende doelstelling en geldigheidsduur. Een beperkt aantal cookies (essentiële cookies) zijn absoluut noodzakelijk, deze zijn altijd anoniem. Andere cookies dragen bij aan het gebruikscomfort, je hebt de keuze om deze al dan niet te aanvaarden.';
var element3 = document.createElement('p');
element3.innerHTML = 'Op <a href="https://www.omgevingvlaanderen.be/privacy" target="_blank">https://www.omgevingvlaanderen.be/privacy</a> vind je meer informatie over de manier waarop het Departement Omgeving omgaat met uw privacy:';
var element4 = document.createElement('ul');
var element4_1 = document.createElement('li');
element4_1.innerHTML = '- ons privacybeleid, vertaald in de Privacyverklaring';
var element4_2 = document.createElement('li');
element4_2.innerHTML = '- algemene informatie over de nieuwe Privacywet';
var element4_3 = document.createElement('li');
element4_3.innerHTML = '- de contactgegevens van de functionaris voor gegevensbescherming of DPO';
element4.appendChild(element4_1);
element4.appendChild(element4_2);
element4.appendChild(element4_3);
var element5 = document.createElement('p');
element5.innerHTML = 'De cookie-toestemming die je geeft is van toepassing op meerdere websites, subsites en apps van het Departement Omgeving. Welke dit zijn, vind je via de Privacyverklaring. Je kunt naderhand een eerdere toestemming intrekken of wijzigen.';
element.appendChild(element1);
element.appendChild(element2);
element.appendChild(element3);
element.appendChild(element4);
element.appendChild(element5);
return element;
}
function createModalConfirmButton() {
var element = document.createElement('button');
if (aantalOptIns() > 1) {
element.textContent = 'Bewaar keuze';
} else {
element.textContent = 'Ik begrijp het';
}
element.setAttribute('id', 'gdpr_modal_confirm_btn');
element.onclick = function () {
close();
};
return element;
}
function createOptieElement(data) {
var container = document.createElement('div');
container.classList.add('checkbox-container');
var label = document.createElement('span');
label.setAttribute('id', data.name + '_label');
label.textContent = data ? data.label : '';
var description = document.createElement('div');
description.setAttribute('id', data.name + '_description');
description.textContent = data ? data.description : '';
var checkbox = document.createElement('input');
checkbox.setAttribute('id', data.name + '_input');
checkbox.type = 'checkbox';
checkbox.checked = data.value;
checkbox.onchange = function (event) {
var checked = event && event.currentTarget ? event.currentTarget.checked : false;
optIns[data.name].value = checked;
};
if (data.required) {
checkbox.checked = true;
checkbox.disabled = true;
optIns[data.name].value = true;
}
container.appendChild(checkbox);
container.appendChild(label);
container.appendChild(description);
return container;
}
function createOverlayElement() {
var element = document.createElement('div');
element.setAttribute('id', 'gdpr_overlay');
return overlayElement = element;
}
function createMatomoScript() {
var matomo = getMatomoId();
var element = document.createElement('script');
element.setAttribute('id', matomoScriptId);
if (matomo) {
var script = document.createTextNode("" +
"if (!window._paq) {" +
"var _paq = window._paq || [];" +
"_paq.push(['trackPageView']);" +
"_paq.push(['enableLinkTracking']);" +
"(function() {" +
"var u='" + matomo.url + "';" +
"_paq.push(['setTrackerUrl', u+'piwik.php']);" +
"_paq.push(['setSiteId', " + matomo.id + "]);" +
"var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];" +
"g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; g.id='" + matomoPiwikScriptId + "'; s.parentNode.insertBefore(g,s);" +
"})();" +
"" +
"var currentUrl = window.location.href;" +
"window.addEventListener('hashchange', function() {" +
"_paq.push(['setReferrerUrl', currentUrl]);" +
"currentUrl = '' + window.location.hash.substr(1);" +
"_paq.push(['setCustomUrl', currentUrl]);" +
"_paq.push(['setDocumentTitle', document.title]);" +
"_paq.push(['deleteCustomVariables', 'page']);" +
"_paq.push(['setGenerationTimeMs', 0]);" +
"_paq.push(['trackPageView']);" +
"var content = document.getElementById('content');" +
"_paq.push(['MediaAnalytics::scanForMedia', content]);" +
"_paq.push(['FormAnalytics::scanForForms', content]);" +
"_paq.push(['trackContentImpressionsWithinNode', content]);" +
"_paq.push(['enableLinkTracking']);" +
"});" +
"}"
);
element.appendChild(script);
}
return element;
}
function deleteScript(id) {
var script = document.getElementById(id);
if (script) {
document.head.removeChild(document.getElementById(id));
}
}
function getMatomoId() {
var matchers = [
{
pattern: /^https?:\/\/vsm\.milieuinfo\.be/,
id: 9,
url: matomoProdUrl
},
{
pattern: /^https?:\/\/rupadviestoets\.milieuinfo\.be/,
id: 11,
url: matomoProdUrl
},
{
pattern: /^https?:\/\/zendantennes\.milieuinfo\.be/,
id: 12,
url: matomoProdUrl
},
{
pattern: /^https?:\/\/www\.omgevingsloket\.be/,
id: 14,
url: matomoProdUrl
},
{
pattern: /^https?:\/\/www2\.omgeving\.vlaanderen\.be/,
id: 27,
url: matomoProdUrl
},
{
pattern: /^https?:\/\/mobiscore\.omgeving\.vlaanderen\.be/,
id: 29,
url: matomoProdUrl
},
{
pattern: /^https?:\/\/ruimtelijkeordening\.be/,
id: 30,
url: matomoProdUrl
},
{
pattern: /^https?:\/\/complexeprojecten\.be/,
id: 31,
url: matomoProdUrl
},
{
pattern: /^https?:\/\/rsv\.ruimtevlaanderen\.be/,
id: 32,
url: matomoProdUrl
},
{
pattern: /^https?:\/\/ena\.ruimtevlaanderen\.be/,
id: 33,
url: matomoProdUrl
},
{
pattern: /^https?:\/\/erkenningencontactgegevens\.omgeving\.vlaanderen\.be/,
id: 44,
url: matomoProdUrl
},
{
pattern: /^https?:\/\/www\.vhrm\.be/,
id: 45,
url: matomoProdUrl
},
{
pattern: /^https?:\/\/www\.milieuinfo\.be(:\d+)?\/servicedesk/,
id: 48,
url: matomoProdUrl
},
{
pattern: /^https?:\/\/stats-oefen\.milieuinfo\.be/,
id: 1,
url: matomoOefenUrl
},
{
pattern: /^https?:\/\/oefen\.ruimtemonitor\.be/,
id: 2,
url: matomoOefenUrl
},
{
pattern: /^https?:\/\/oefen\.omgevingsloket\.be/,
id: 4,
url: matomoOefenUrl
},
{
pattern: /^https?:\/\/vsm-oefen\.milieuinfo\.be/,
id: 8,
url: matomoOefenUrl
},
{
pattern: /^https?:\/\/rupadviestoets-oefen\.milieuinfo\.be/,
id: 9,
url: matomoOefenUrl
},
{
pattern: /^https?:\/\/zendantennes-oefen\.milieuinfo\.be/,
id: 10,
url: matomoOefenUrl
},
{
pattern: /^https?:\/\/www2-oefen\.omgeving\.vlaanderen\.be/,
id: 12,
url: matomoOefenUrl
},
{
pattern: /^https?:\/\/mobiscore-oefen\.omgeving\.vlaanderen\.be/,
id: 14,
url: matomoOefenUrl
},
{
pattern: /^https?:\/\/erkenningencontactgegevens-oefen\.omgeving\.vlaanderen\.be/,
id: 16,
url: matomoOefenUrl
},
{
pattern: /^https?:\/\/oefen\.milieuinfo\.be(:\d+)?\/servicedesk/,
id: 19,
url: matomoOefenUrl
},
{
pattern: /^https?:\/\/oefen\.milieuinfo\.be(:\d+)?\/acdrupal/,
id: 21,
url: matomoOefenUrl
},
{
pattern: /^https?:\/\/stats-ontwikkel\.milieuinfo\.be/,
id: 1,
url: matomoOntwikkelUrl
},
{
pattern: /^https?:\/\/ontwikkel\.milieuinfo\.be/,
id: 2,
url: matomoOntwikkelUrl
},
{
pattern: /^https?:\/\/ontwikkel\.omgevingsloket\.be/,
id: 3,
url: matomoOntwikkelUrl
},
{
pattern: /^https?:\/\/bredero-ontwikkel\.ruimteinfo\.be/,
id: 5,
url: matomoOntwikkelUrl
},
{
pattern: /^https?:\/\/bredero-bupo-ontwikkel\.ruimteinfo\.be/,
id: 6,
url: matomoOntwikkelUrl
},
{
pattern: /^https?:\/\/bredero-xfr-ontwikkel\.ruimteinfo\.be/,
id: 7,
url: matomoOntwikkelUrl
},
{
pattern: /^https?:\/\/ontwikkel\.ruimtemonitor\.be/,
id: 8,
url: matomoOntwikkelUrl
},
{
pattern: /^https?:\/\/rupadviestoets-ontwikkel\.milieuinfo\.be/,
id: 9,
url: matomoOntwikkelUrl
},
{
pattern: /^https?:\/\/zendantennes-ontwikkel\.milieuinfo\.be/,
id: 13,
url: matomoOntwikkelUrl
},
{
pattern: /^https?:\/\/vsm-ontwikkel\.milieuinfo\.be/,
id: 16,
url: matomoOntwikkelUrl
},
{
pattern: /^https?:\/\/mobiscore-ontwikkel\.omgeving\.vlaanderen\.be/,
id: 22,
url: matomoOntwikkelUrl
},
{
pattern: /^https?:\/\/erkenningencontactgegevens-ontwikkel\.omgeving\.vlaanderen\.be/,
id: 24,
url: matomoOntwikkelUrl
},
{
pattern: /^https?:\/\/ontwikkel\.milieuinfo\.be(:\d+)?\/servicedesk/,
id: 27,
url: matomoOntwikkelUrl
},
{
pattern: /^https?:\/\/ontwikkel\.milieuinfo\.be(:\d+)?\/acdrupal/,
id: 28,
url: matomoOntwikkelUrl
}
];
for (var i = 0; i < matchers.length; i++) {
var match = matchers[i];
if(match.pattern.test(window.location.href)) {
return match;
}
}
console.error('de website is nog niet gekend bij ons dus er zullen geen gebruikersstatistieken bijgehouden worden');
return null;
}
function addStyleLink() {
document.head.appendChild(getStyleLink());
}
function getStyleLink() {
var link = document.createElement('link');
link.setAttribute('rel', 'stylesheet');
link.setAttribute('type', 'text/css');
link.setAttribute('href', 'data:text/css;charset=UTF-8,' + encodeURIComponent(getStyle()));
return link;
}
function getCookie(name) {
name = cookiePrefix + name + '=';
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = cookies[i];
while (cookie.charAt(0) == ' ') {
cookie = cookie.substring(1);
}
if (cookie.indexOf(name) == 0) {
try {
return JSON.parse(cookie.substring(name.length, cookie.length));
} catch (error) {
return cookie.substring(name.length, cookie.length);
}
}
}
}
function setCookie(name, value) {
document.cookie = cookiePrefix + name + '=' + value + ';Max-Age=2147483647;path=' + getContextPath() + ';';
}
function deleteCookie(name) {
document.cookie = cookiePrefix + name + "=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=" + getContextPath() + ";";
}
function processOptInCookies() {
Object.values(optIns).forEach(function (optIn) {
setCookie(optIn.name, optIn.value || false);
});
}
function processOptIns() {
Object.values(optIns).forEach(function (optIn) {
if (optIn.value) {
if (optIn.activate) {
optIn.activate();
}
} else {
if (optIn.deactivate) {
optIn.deactivate();
}
}
});
}
function getStyle() {
return "" +
"#gdpr_overlay {" +
"position: fixed;" +
"width: 100%;" +
"height: 100%;" +
"background: #FFF;" +
"opacity: 0.8;" +
"top: 0px;" +
"z-index: 10000;" +
"}" +
"" +
"#gdpr_modal {" +
"position: fixed;" +
"width: 60rem;" +
"max-width: 95vw;" +
"max-height: 95vh;" +
"top: 30%;" +
"left: 50%;" +
"transform: translate(-50%, -30%);" +
"padding: 1.5rem;" +
"background: #FFF;" +
"box-shadow: 0 0 0.1rem 0 rgba(0, 0, 0, 0.3);" +
"z-index: 10001;" +
"font-size: 1em;" +
"overflow: auto" +
"}" +
"" +
"#gdpr_modal #gdpr_modal_titel {" +
"margin-top: 0px;" +
"font-size: 2rem;" +
"margin-bottom: 1.5rem;" +
"}" +
"#gdpr_modal #gdpr_modal_tekst p {" +
"margin-bottom: 1.8rem;" +
"}" +
"#gdpr_modal #gdpr_modal_tekst ul {" +
"list-style-type: none;" +
"padding-left: 20px;" +
"}" +
"" +
"#gdpr_modal button {" +
"background: #333;" +
"border: 1px solid #000;" +
"color: #FFF;" +
"padding: 0 4rem;" +
"height: 3.5rem;" +
"float: right;" +
"outline: none;" +
"font-size: 1em;" +
"margin-top: 15px;" +
"}" +
"" +
"#gdpr_modal button:hover {" +
"background: #666;" +
"}" +
"" +
"#gdpr_modal .checkbox-container {" +
"position: relative;" +
"}" +
"" +
"#gdpr_modal .checkbox-container:not(:first-child) {" +
"margin-top: 10px;" +
"}" +
"" +
"#gdpr_modal .checkbox-container input[type=checkbox] {" +
"position: absolute;" +
"opacity: 0;" +
"z-index: 1;" +
"width: 100%;" +
"height: 100%;" +
"}" +
"" +
"#gdpr_modal .checkbox-container input[type=checkbox] + span {" +
"position: relative;" +
"padding-left: 30px;" +
"}" +
"" +
"#gdpr_modal .checkbox-container div {" +
"padding-left: 30px;" +
"font-size: 0.8em;" +
"}" +
"" +
"#gdpr_modal .checkbox-container input[type=checkbox] + span:before {" +
"position: absolute;" +
"top: 50%;" +
"left: 0px;" +
"transform: translate(0, -50%);" +
"height: 1em;" +
"content: '';" +
"width: 20px;" +
"height: 20px;" +
"display: inline-block;" +
"margin-right: 10px;" +
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAIAAAAC64paAAAACXBIWXMAABYlAAAWJQFJUiTwAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+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SuQmCC');" +
"}" +
"" +
"#gdpr_modal .checkbox-container input[type=checkbox]:checked + span:before {" +
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAIAAAAC64paAAAACXBIWXMAABYlAAAWJQFJUiTwAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHa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iUvS8NUK1tr72fGv97W8P29yp5x+XS9+bsEwjdg2vDG8oatm88GLL0frImHX16ecvuy0j0qP5HuvIDg6QZhApSY6toWg/88YsaXrbSykIgOMyFA2dJ/+mgD3ZdDiZVBrif+Vq7h/JwZXAQy53NavEqJSShuyK/dZId2HEwuLfAHHg3T3sUqDGAAAAAElFTkSuQmCC');" +
"}" +
"" +
"#gdpr_modal .checkbox-container input[type=checkbox]:disabled + span:before {" +
"opacity: 0.5" +
"}";
}
}
})(this);