Skip to content

Commit 212281f

Browse files
Add cookie consent
1 parent f6def19 commit 212281f

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

index.html

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
4949
<link rel="stylesheet" href="https://storage.googleapis.com/code.getmdl.io/1.1.3/material.indigo-pink.min.css">
5050
<link rel="stylesheet" href="stylesheets/styles.css">
51+
52+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" />
5153
</head>
5254
<body class="mdl-demo mdl-color--grey-100 mdl-color-text--grey-700 mdl-base">
5355
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
@@ -255,6 +257,7 @@ <h4 class="mdl-card__title-text"><b>LMS Slim Snippets</b>&nbsp;for Visual Studio
255257
</ul>
256258
</div>
257259
</footer>
260+
<div id="cookieconsent"></div>
258261
</div>
259262
</main>
260263
</div>
@@ -313,9 +316,25 @@ <h4 class="mdl-card__title-text"><b>LMS Slim Snippets</b>&nbsp;for Visual Studio
313316
$(this).addClass('is-active');
314317
})
315318
</script>
316-
319+
320+
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
321+
<script>
322+
window.cookieconsent.initialise({
323+
"palette": {
324+
"popup": {
325+
"background": "#000"
326+
},
327+
"button": {
328+
"background": "#e91e63"
329+
}
330+
}
331+
});
332+
</script>
333+
334+
317335
<script async src='js/autotrack.js'></script>
318336

337+
319338
</body>
320339
</html>
321340

0 commit comments

Comments
 (0)