-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (58 loc) · 1.91 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Notion Widgets</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" />
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js"></script>
<script>
function loadGoogleAnalytics() {
const script = document.createElement('script');
script.async = true;
script.src = 'https://www.googletagmanager.com/gtag/js?id=G-NSVL56VBN0';
document.head.appendChild(script);
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-NSVL56VBN0', { 'anonymize_ip': true });
}
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#252e39"
},
"button": {
"background": "#EBB303"
}
},
"position": "bottom-right",
"content": {
"message": "This website uses cookies to ensure you get the best experience.",
"dismiss": "Accept",
"link": "Learn more",
"href": "/privacy-policy"
},
"type": "opt-in",
"revokable": true,
onInitialise: function(status) {
if (this.hasConsented()) {
loadGoogleAnalytics();
}
},
onStatusChange: function(status) {
if (this.hasConsented()) {
loadGoogleAnalytics();
}
}
});
});
</script>
</body>
</html>