Added cookieconsent.js

This commit is contained in:
CommanderRedYT
2020-12-06 15:23:27 +01:00
parent 739fc13d72
commit 5f0fde16d1
2 changed files with 15 additions and 0 deletions

View File

@@ -23,6 +23,20 @@
</script>
<!-- Place this tag in your head or just before your close body tag. -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
<script>
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#000"
},
"button": {
"background": "#f1d600"
}
},
"position": "bottom-right"
});
</script>
</body>
</html>

View File

@@ -12,6 +12,7 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous" />
<title><?php echo htmlentities(PAGE_TITLE); ?> | Pfosten Dynamics</title>
<link rel="icon" href="./img/favicon.png" />
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" />
</head>
<body style="width: 100vw !important; overflow-x: hidden !important;" class="couldDark <?php if ($_COOKIE["darkmode"] == "true") echo "darkMode"; ?>">