Skip to content

Commit

Permalink
Added eu cookie law plugin #5
Browse files Browse the repository at this point in the history
  • Loading branch information
alkampfergit committed Apr 29, 2020
1 parent 3eceaee commit e90e720
Show file tree
Hide file tree
Showing 4 changed files with 449 additions and 0 deletions.
10 changes: 10 additions & 0 deletions content/page/privacy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Privacy
description: Privacy policy of site
comments: false
menu: main
---

## List of Cookies used in this site

**Google Analytics cookies**: __utma, __utmb, __utmc, __utmv, __utmz, used to gather site statistic usage. You can read more info on Google Policies on: How Google uses data when you use our partners’ sites or apps and Safeguarding your Data.
49 changes: 49 additions & 0 deletions layouts/partials/scripts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{{ if $.Param "jquery" -}}
{{ $jquery := resources.Get "js/lib/jquery.slim.min.js" | fingerprint -}}
<script defer src="{{ $jquery.RelPermalink }}"></script>
{{ end -}}
{{ $umbrella := resources.Get "js/lib/umbrella.min.js" | fingerprint -}}
<script defer src="{{ $umbrella.RelPermalink }}"></script>
{{ if $.Param "mobilemenu" -}}
{{ $mobilemenu := resources.Get "js/mobile.js" | minify | fingerprint -}}
<script defer src="{{ $mobilemenu.RelPermalink }}"></script>
{{ end -}}
{{ if $.Param "contactform" -}}
{{ $contact := resources.Get "js/contact.js" | minify | fingerprint -}}
<script defer src="{{ $contact.RelPermalink }}"></script>
{{ end -}}
{{ if $.Param "searchform" -}}
{{ $flexsearch := resources.Get "js/lib/flexsearch.min.js" | fingerprint -}}
<script defer src="{{ $flexsearch.RelPermalink }}"></script>
{{ $search := resources.Get "js/search.js" | resources.ExecuteAsTemplate "js/search.js" . | minify | fingerprint -}}
<script defer src="{{ $search.RelPermalink }}"></script>
{{ end -}}
{{ $script := resources.Get "js/script.js" | minify | fingerprint -}}
<script defer src="{{ $script.RelPermalink }}"></script>

<!--Customization-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="{{ "js/jquery-eu-cookie-law-popup.js" | absURL }}"></script>
<link rel="stylesheet" href="{{ "css/jquery-eu-cookie-law-popup.css" | absURL }}">

<script>
$( document ).ready(function() {
console.log("ready");
$(document).euCookieLawPopup().init({
cookiePolicyUrl : '/page/privacy/',
popupPosition : 'top',
colorStyle : 'default',
compactStyle : false,
popupTitle : 'This website is using cookies',
popupText : 'By continuing I assume your permission to deploy cookies, as detailed in the Privacy &amp; Cookies Policy.',
buttonContinueTitle : 'Continue',
buttonLearnmoreTitle : 'Learn more about this site Privacy &amp; Cookies Policy',
buttonLearnmoreOpenInNewWindow : true,
agreementExpiresInDays : 30,
autoAcceptCookiePolicy : false,
htmlMarkup : null
});
console.log("finished");
});

</script>
124 changes: 124 additions & 0 deletions static/css/jquery-eu-cookie-law-popup.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
.clearfix {
clear: both;
}

.eupopup-container {
background-color: rgba(25, 25, 25, 0.9);
color: #efefef;
padding: 5px 20px;
font-size: 12px;
line-height: 1.2em;
text-align: center;
display: none;
z-index: 9999999;
}

.eupopup-container-top,
.eupopup-container-fixedtop {
position: absolute;
top: 0; left: 0; right: 0;
}

.eupopup-container-fixedtop {
position: fixed;
}

.eupopup-container-bottom {
position: fixed;
bottom: 0; left: 0; right: 0;
}

.eupopup-container-bottomleft {
position: fixed;
bottom: 10px;
left: 10px;
width: 300px;
}

.eupopup-container-bottomright {
position: fixed;
bottom: 10px;
right: 10px;
width: 300px;
}

.eupopup-closebutton {
font-size: 16px;
font-weight: 100;
line-height: 1;
color: #a2a2a2;
filter: alpha(opacity=20);
position: absolute;
font-family: helvetica, arial, verdana, sans-serif;
top: 0; right: 0;
padding: 5px 10px;
}
.eupopup-closebutton:hover,
.eupopup-closebutton:active {
color: #fff;
text-decoration: none;
}

.eupopup-head {
font-size: 1.2em;
font-weight: bold;
padding: 7px;
color: #fff;
}

.eupopup-body {
color: #a2a2a2;
}

.eupopup-buttons {
padding: 7px 0 5px 0;
}

.eupopup-button_1 {
color: #f6a21d;
font-weight: bold;
font-size: 14px;
}

.eupopup-button_2 {
color: #f6a21d;
font-weight: normal;
font-size: 12px;
}

.eupopup-button {
margin: 0 10px;
}

.eupopup-button:hover,
.eupopup-button:focus {
text-decoration: underline;
color: #f6a21d;
}

body .eupopup-color-inverse {
color: #000;
background-color: rgba(255, 255, 255, 0.9);
}

body .eupopup-color-inverse .eupopup-head {
color: #000;
}

body .eupopup-style-compact {
text-align: left;
padding: 8px 30px 7px 20px;
line-height: 15px;
}

body .eupopup-style-compact .eupopup-head,
body .eupopup-style-compact .eupopup-body,
body .eupopup-style-compact .eupopup-buttons {
display: inline;
padding: 0;
margin: 0;
}

body .eupopup-style-compact .eupopup-button {
margin: 0 5px;
}
Loading

0 comments on commit e90e720

Please sign in to comment.