+
+
+ This website uses cookies.
+We use cookies to ensure you the best experience.
+
+ By using our website, you agree with our Privacy Policy.
+
Lorenzo DellacĂ
diff --git a/pages/about.html b/pages/about.html
index 5d32a36..5be08d5 100644
--- a/pages/about.html
+++ b/pages/about.html
@@ -2,6 +2,7 @@
+
Mind Overflow : About
diff --git a/pages/contact.html b/pages/contact.html
index 2924222..4c7db11 100644
--- a/pages/contact.html
+++ b/pages/contact.html
@@ -2,6 +2,7 @@
+
Mind Overflow : Contact
diff --git a/pages/policy.html b/pages/policy.html
index 9061fc2..ba7a8f3 100644
--- a/pages/policy.html
+++ b/pages/policy.html
@@ -2,6 +2,7 @@
+
Mind Overflow : Policies
diff --git a/scripts/arrow-fade.js b/scripts/arrow-fade.js
index 0bb6aa9..3fe5087 100644
--- a/scripts/arrow-fade.js
+++ b/scripts/arrow-fade.js
@@ -2,9 +2,9 @@
$(document).ready(function(){
$(window).scroll(function(){
if($(this).scrollTop() > $(window).height()*0.3){
- $(".arrow-down").css({"opacity" : "0"})
+ $(".arrow-down").css({"opacity" : "0"});
} else {
- $(".arrow-down").css({"opacity" : "0.4"})
+ $(".arrow-down").css({"opacity" : "0.4"});
}
})
})
\ No newline at end of file
diff --git a/scripts/policy-popup.js b/scripts/policy-popup.js
new file mode 100644
index 0000000..b5b5d2c
--- /dev/null
+++ b/scripts/policy-popup.js
@@ -0,0 +1,28 @@
+function openPolicyPopup() {
+ if(getCookie("consent") === "true") return;
+
+ $("#policy-popup").fadeIn(1000); // Enable the div
+}
+
+function agreePolicyPopup() {
+ const _paq = window._paq || [];
+ _paq.push(['rememberConsentGiven']); // todo: check if this works
+ $("#policy-popup").fadeOut(1000); // Disable the div
+ document.cookie = "consent=true"; // todo: check if already present? also, firefox was throwing a warning...
+}
+
+function getCookie(cname) {
+ var name = cname + "=";
+ var decodedCookie = decodeURIComponent(document.cookie);
+ var ca = decodedCookie.split(';');
+ for(var i = 0; i