Categories: Tecnologia

valigia

‘); } else { jQuery(‘body’).prepend(”); } //add appropriate CSS depending on position chosen if (cookieDiscreetPosition == “topleft”) { jQuery(‘div.cc-cookies’).css(“top”, “0”); jQuery(‘div.cc-cookies’).css(“left”, “0”); } if (cookieDiscreetPosition == “topright”) { jQuery(‘div.cc-cookies’).css(“top”, “0”); jQuery(‘div.cc-cookies’).css(“right”, “0”); } if (cookieDiscreetPosition == “bottomleft”) { jQuery(‘div.cc-cookies’).css(“bottom”, “0”); jQuery(‘div.cc-cookies’).css(“left”, “0”); } if (cookieDiscreetPosition == “bottomright”) { jQuery(‘div.cc-cookies’).css(“bottom”, “0”); jQuery(‘div.cc-cookies’).css(“right”, “0”); } } else if (cookieResetButton) { if (appOrPre) { jQuery(‘body’).append(”); } else { jQuery(‘body’).prepend(”); } } else { var cookieResetButton = “”; } } else { // add message to just after opening body tag if ((cookieNoMessage) && (!cookiePolicyPage)) { // show no link on any pages APART from the policy page } else if ((cookieDiscreetLink) && (!cookiePolicyPage)) { // show discreet link if (appOrPre) { jQuery(‘body’).append(”); } else { jQuery(‘body’).prepend(”); } //add appropriate CSS depending on position chosen if (cookieDiscreetPosition == “topleft”) { jQuery(‘div.cc-cookies’).css(“top”, “0”); jQuery(‘div.cc-cookies’).css(“left”, “0”); } if (cookieDiscreetPosition == “topright”) { jQuery(‘div.cc-cookies’).css(“top”, “0”); jQuery(‘div.cc-cookies’).css(“right”, “0”); } if (cookieDiscreetPosition == “bottomleft”) { jQuery(‘div.cc-cookies’).css(“bottom”, “0”); jQuery(‘div.cc-cookies’).css(“left”, “0”); } if (cookieDiscreetPosition == “bottomright”) { jQuery(‘div.cc-cookies’).css(“bottom”, “0”); jQuery(‘div.cc-cookies’).css(“right”, “0”); } } else if (cookieAnalytics) { // show analytics overlay if (appOrPre) { jQuery(‘body’).append(”); } else { jQuery(‘body’).prepend(”); } } if (cookiePolicyPage) { // show policy page overlay if (appOrPre) { jQuery(‘body’).append(”); } else { jQuery(‘body’).prepend(”); } } else if ((!cookieAnalytics) && (!cookieDiscreetLink)) { // show privacy policy option if (appOrPre) { jQuery(‘body’).append(‘

‘ + cookieMessage + cookieAccept + cookieDecline + ‘

‘); } else { jQuery(‘body’).prepend(‘

‘ + cookieMessage + cookieAccept + cookieDecline + ‘

‘); } } } if ((cookieCutter) && (!cookieCutterDeclineOnly) && ((jQuerycookieDeclined) || (!jQuerycookieAccepted))) { jQuery(cookieDisable).html(”); } if ((cookieCutter) && (cookieCutterDeclineOnly) && (jQuerycookieDeclined)) { jQuery(cookieDisable).html(”); } // if bottom is true, switch div to bottom if not in discreet mode if ((cookieNotificationLocationBottom) && (!cookieDiscreetLink)) { jQuery(‘div.cc-cookies’).css(“top”, “auto”); jQuery(‘div.cc-cookies’).css(“bottom”, “0”); } if ((cookieNotificationLocationBottom) && (cookieDiscreetLink) && (cookiePolicyPage)) { jQuery(‘div.cc-cookies’).css(“top”, “auto”); jQuery(‘div.cc-cookies’).css(“bottom”, “0”); } // setting the cookies // for top bar jQuery(‘.cc-cookie-accept, .cc-cookie-decline’).click( (e) { e.preventDefault(); if (jQuery(this).is(‘[hrefjQuery=#decline]’)) { jQuery.cookie(“cc_cookie_accept”, null, { path: ‘/’ }); jQuery.cookie(“cc_cookie_decline”, “cc_cookie_decline”, { expires: cookieExpires, path: ‘/’ }); if (options.cookieDomain) { // kill google analytics cookies jQuery.cookie(“__utma”, null, { domain: ‘.’ + options.cookieDomain, path: ‘/’ }); jQuery.cookie(“__utmb”, null, { domain: ‘.’ + options.cookieDomain, path: ‘/’ }); jQuery.cookie(“__utmc”, null, { domain: ‘.’ + options.cookieDomain, path: ‘/’ }); jQuery.cookie(“__utmz”, null, { domain: ‘.’ + options.cookieDomain, path: ‘/’ }); } } else { jQuery.cookie(“cc_cookie_decline”, null, { path: ‘/’ }); jQuery.cookie(“cc_cookie_accept”, “cc_cookie_accept”, { expires: cookieExpires, path: ‘/’ }); } jQuery(“.cc-cookies”).fadeOut( () { // reload page to activate cookies location.reload(); }); }); //reset cookies jQuery(‘a.cc-cookie-reset’).click( (f) { f.preventDefault(); jQuery.cookie(“cc_cookie_accept”, null, { path: ‘/’ }); jQuery.cookie(“cc_cookie_decline”, null, { path: ‘/’ }); jQuery(“.cc-cookies”).fadeOut( () { // reload page to activate cookies location.reload(); }); }); //cookie error accept jQuery(‘.cc-cookies-error a.cc-cookie-accept’).click( (g) { g.preventDefault(); jQuery.cookie(“cc_cookie_accept”, “cc_cookie_accept”, { expires: cookieExpires, path: ‘/’ }); jQuery.cookie(“cc_cookie_decline”, null, { path: ‘/’ }); // reload page to activate cookies location.reload(); }); }; })(jQuery);

Autore: Tecnologia

admin

Recent Posts

The Lian Li Hydroshift LCD 360S AIO Cooler Review: Sleek, Stylish, and Lively

Author: AnandTech Among the packed field of PC hardware manufacturers, Lian Li is a company…

28 Giugno 2024

Questa BELLISSIMA tastiera meccanica è in DOPPIO SCONTO con coupon!

Author: Tom's Hardware Alla ricerca di una tastiera meccanica di alta qualità che unisca versatilità,…

28 Giugno 2024

Steam ha svelato il suo tool integrato per la registrazione del gameplay: Beta già disponibile!

Author: GAMEmag Con un annuncio a sorpresa, Valve ha svelato uno strumento integrato di Steam…

28 Giugno 2024

Celebrating Pride month: How Diversity, Equity, and Inclusion drive success at Schneider Electric US Services

Author: Schneider Electric This audio was created using Microsoft Azure Speech Services Pride Month is…

28 Giugno 2024

La verità sui modelli usati per l’intelligenza artificiale: quali non sono open source

Author: IlSoftware Negli ultimi anni, nel settore delle soluzioni basate sull’intelligenza artificiale (IA) si è…

28 Giugno 2024

NASA OSIRIS-REx: trovati fosfati nei campioni dell’asteroide Bennu

Author: Hardware Upgrade La missione statunitense NASA OSIRIS-REx ha riportato sulla Terra 121,6 grammi di…

28 Giugno 2024