|
@@ -8,32 +8,32 @@ function debugRow(y, height) {
|
|
|
|
|
|
$(function() {
|
|
$(function() {
|
|
// EU COOKIE MONSTER
|
|
// EU COOKIE MONSTER
|
|
- var eupref = Cookies.get('eu-disable');
|
|
|
|
- if(eupref == undefined) {
|
|
|
|
- var cmaside = $('<aside id="cookie_monster">'+
|
|
|
|
- ' <div class="content">'+
|
|
|
|
- ' <p>Hello, did you know that I am using <strong>cookies</strong> in this website? I promise they are not tracking you, but I can disable them if you want.</p>'+
|
|
|
|
- ' <button class="button yes" type="button" data-disable="true">Disable them</button><button class="button no" data-disable="false">It\'s ok</button>'+
|
|
|
|
- ' </div>'+
|
|
|
|
- '</aside>');
|
|
|
|
- $('#top_banner').prepend(cmaside)
|
|
|
|
- $('#cookie_monster button').click(function(e) {
|
|
|
|
- t = $(e.target);
|
|
|
|
- if(t.data('disable')) {
|
|
|
|
- Cookies.set('eu-disable', true, { expires: 365 });
|
|
|
|
- } else {
|
|
|
|
- Cookies.set('eu-disable', false, { expires: 365 });
|
|
|
|
- }
|
|
|
|
- cmaside.fadeOut();
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- Cookies.set('eu-disable', Cookies.get('eu-disable'), {expires: 365});
|
|
|
|
- if(Cookies.get('eu-disable') == "true") {
|
|
|
|
- window['ga-disable-UA-1176762-5'] = true;
|
|
|
|
- } else {
|
|
|
|
- window['ga-disable-UA-1176762-5'] = false;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ // var eupref = Cookies.get('eu-disable');
|
|
|
|
+ // if(eupref == undefined) {
|
|
|
|
+ // var cmaside = $('<aside id="cookie_monster">'+
|
|
|
|
+ // ' <div class="content">'+
|
|
|
|
+ // ' <p>Hello, did you know that I am using <strong>cookies</strong> in this website? I promise they are not tracking you, but I can disable them if you want.</p>'+
|
|
|
|
+ // ' <button class="button yes" type="button" data-disable="true">Disable them</button><button class="button no" data-disable="false">It\'s ok</button>'+
|
|
|
|
+ // ' </div>'+
|
|
|
|
+ // '</aside>');
|
|
|
|
+ // $('#top_banner').prepend(cmaside)
|
|
|
|
+ // $('#cookie_monster button').click(function(e) {
|
|
|
|
+ // t = $(e.target);
|
|
|
|
+ // if(t.data('disable')) {
|
|
|
|
+ // Cookies.set('eu-disable', true, { expires: 365 });
|
|
|
|
+ // } else {
|
|
|
|
+ // Cookies.set('eu-disable', false, { expires: 365 });
|
|
|
|
+ // }
|
|
|
|
+ // cmaside.fadeOut();
|
|
|
|
+ // });
|
|
|
|
+ // } else {
|
|
|
|
+ // Cookies.set('eu-disable', Cookies.get('eu-disable'), {expires: 365});
|
|
|
|
+ // if(Cookies.get('eu-disable') == "true") {
|
|
|
|
+ // window['ga-disable-UA-1176762-5'] = true;
|
|
|
|
+ // } else {
|
|
|
|
+ // window['ga-disable-UA-1176762-5'] = false;
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
// EU COOKIE MONSTER
|
|
// EU COOKIE MONSTER
|
|
|
|
|
|
if(screen.width > 1024 && screen.height > 768 && window.devicePixelRatio > 1) {
|
|
if(screen.width > 1024 && screen.height > 768 && window.devicePixelRatio > 1) {
|