From 3aaef3c7c09cd5190170f31cb42c980d670c446c Mon Sep 17 00:00:00 2001 From: ToX02 Date: Sat, 12 Sep 2015 12:06:11 +0200 Subject: [PATCH] Switched from freegeoip to telize --- cookiebar-grey.min.css | 2 +- cookiebar-latest.js | 10 +++++----- cookiebar-latest.min.js | 2 +- cookiebar-white.min.css | 2 +- cookiebar.css | 2 -- cookiebar.min.css | 2 +- 6 files changed, 9 insertions(+), 11 deletions(-) diff --git a/cookiebar-grey.min.css b/cookiebar-grey.min.css index b0ed21c..d474a56 100644 --- a/cookiebar-grey.min.css +++ b/cookiebar-grey.min.css @@ -1 +1 @@ -#cookie-bar,#cookie-bar-prompt{font-family:Arial,Helvetica,sans-serif;font-size:10pt;width:100%;line-height:1.5}#cookie-bar-button,#cookie-bar-button-no{cursor:pointer;display:inline-block;font-weight:700;margin-top:2px;padding:5px 10px 6px;text-decoration:none}#cookie-bar-prompt-content{font-size:13px;max-height:85vh}#cookie-bar-browsers a{width:60px}@media only screen and (max-device-width:800px){#cookie-bar{font-size:12px}#cookie-bar-prompt-content{font-size:11px;max-height:80vh}#cookie-bar-browsers a{width:50px}}#cookie-bar{background:#45484D;left:0;margin:0;padding:3px;position:fixed;z-index:9999}#cookie-bar-prompt{background:#000;background:rgba(0,0,0,.4);height:100%;left:0;position:fixed;top:0;z-index:9998}#cookie-bar *,#cookie-bar-prompt *{margin:0;padding:0;line-height:1.5}#cookie-bar p{float:left;margin:4px 0 0 20px;padding:0;color:#FFF;font-family:sans-serif}#cookie-bar-button,#cookie-bar-button-no{color:#FFF!important;float:right;margin-right:20px}#cookie-bar-prompt p{font-family:Arial,Helvetica,sans-serif;color:#FFF}#cookie-bar-button{background-color:#1FAE16;line-height:1;position:relative}#cookie-bar-button-no{background-color:#D02828;line-height:1;position:relative}#cookie-bar-prompt a,#cookie-bar-prompt-button{cursor:pointer}#cookie-bar-prompt hr{background:#FFF;border:none;height:1px;margin:.7em 0 1em;opacity:.2}#cookie-bar,#cookie-bar-prompt-content{color:#FFF;font-weight:300}#cookie-bar-prompt-content::-webkit-scrollbar-track{background-color:#45484D}#cookie-bar-prompt-content::-webkit-scrollbar{width:15px}#cookie-bar-prompt-content::-webkit-scrollbar-thumb{box-shadow:inset 0 0 6px rgba(0,0,0,.5);background-color:#EEE;background-color:rgba(255,255,255,.3)}#cookie-bar a,#cookie-bar-prompt-content a,#cookie-bar-prompt-content span{color:#31A8F0;text-decoration:none}#cookie-bar a:hover,#cookie-bar-prompt-content a:hover{color:#31A8F0;text-decoration:underline}#cookie-bar-prompt-close{background:url(x.png)no-repeat;display:block;float:right;height:14px;width:14px}#cookie-bar-prompt-logo{background:url(logo.png)no-repeat;display:block;float:left;height:42px;width:190px}#cookie-bar-privacy-page,#cookie-bar-prompt-close span,#cookie-bar-prompt-logo span,#cookie-bar-thirdparty,#cookie-bar-tracking{display:none}#cookie-bar-prompt-content{background:#45484D;box-shadow:2px 2px 4px rgba(0,0,0,.5);color:#FFF;margin:0 auto;max-width:98%;overflow:auto;padding:25px;position:relative;top:5%;width:600px;z-index:9998}#cookie-bar-browsers a{display:inline-block;height:53px;margin:0;padding:0;position:relative}#cookie-bar-browsers a span{background:#FFF;border-radius:2px;color:#000!important;display:none;left:-10px;opacity:.8;padding:3px 10px;position:absolute;text-align:center;top:60px;width:150px}#cookie-bar-browsers .chrome{background:url(browsers/chrome.png)no-repeat}#cookie-bar-browsers .firefox{background:url(browsers/firefox.png)no-repeat}#cookie-bar-browsers .ie{background:url(browsers/ie.png)no-repeat}#cookie-bar-browsers .opera{background:url(browsers/opera.png)no-repeat}#cookie-bar-browsers .safari{background:url(browsers/safari.png)no-repeat}#cookie-bar-browsers a:hover span{display:block}.clear{clear:both} \ No newline at end of file +#cookie-bar-prompt-content{font-size:13px;max-height:85vh}#cookie-bar-browsers a{width:60px}@media only screen and (max-device-width:800px){#cookie-bar{font-size:12px}#cookie-bar-prompt-content{font-size:11px;max-height:80vh}#cookie-bar-browsers a{width:50px}}#cookie-bar,#cookie-bar-prompt{line-height:1.5;font-family:Arial,Helvetica,sans-serif;font-size:10pt;left:0;position:fixed;width:100%}#cookie-bar{background:#45484D;margin:0;padding:3px;z-index:9999}#cookie-bar-prompt{background:#000;background:rgba(0,0,0,.4);height:100%;top:0;z-index:9998}#cookie-bar *,#cookie-bar-prompt *{margin:0;padding:0;line-height:1.5}#cookie-bar p{float:left;margin:4px 0 0 20px;padding:0;color:#FFF;font-family:sans-serif}#cookie-bar-prompt p{font-family:Arial,Helvetica,sans-serif;color:#FFF}#cookie-bar-button,#cookie-bar-button-no{position:relative;float:right;text-decoration:none;cursor:pointer;color:#FFF!important;display:inline-block;font-weight:700;line-height:1;margin-right:20px;margin-top:2px;padding:5px 10px 6px}#cookie-bar-button{background-color:#1FAE16}#cookie-bar-button-no{background-color:#D02828}#cookie-bar-prompt a,#cookie-bar-prompt-button{cursor:pointer}#cookie-bar-prompt hr{background:#FFF;border:none;height:1px;margin:.7em 0 1em;opacity:.2}#cookie-bar,#cookie-bar-prompt-content{color:#FFF;font-weight:300}#cookie-bar-prompt-content::-webkit-scrollbar-track{background-color:#45484D}#cookie-bar-prompt-content::-webkit-scrollbar{width:15px}#cookie-bar-prompt-content::-webkit-scrollbar-thumb{box-shadow:inset 0 0 6px rgba(0,0,0,.5);background-color:#EEE;background-color:rgba(255,255,255,.3)}#cookie-bar a,#cookie-bar-prompt-content a,#cookie-bar-prompt-content span{color:#31A8F0;text-decoration:none}#cookie-bar a:hover,#cookie-bar-prompt-content a:hover{color:#31A8F0;text-decoration:underline}#cookie-bar-prompt-close{background:url(x.png) no-repeat;display:block;float:right;height:14px;width:14px}#cookie-bar-prompt-logo{background:url(logo.png) no-repeat;display:block;float:left;height:42px;width:190px}#cookie-bar-privacy-page,#cookie-bar-prompt-close span,#cookie-bar-prompt-logo span,#cookie-bar-thirdparty,#cookie-bar-tracking{display:none}#cookie-bar-prompt-content{background:#45484D;box-shadow:2px 2px 4px rgba(0,0,0,.5);color:#FFF;margin:0 auto;max-width:98%;overflow:auto;padding:25px;position:relative;top:5%;width:600px;z-index:9998}#cookie-bar-browsers a{display:inline-block;height:53px;margin:0;padding:0;position:relative}#cookie-bar-browsers a span{background:#FFF;border-radius:2px;color:#000!important;display:none;left:-10px;opacity:.8;padding:3px 10px;position:absolute;text-align:center;top:60px;width:150px}#cookie-bar-browsers .chrome{background:url(browsers/chrome.png) no-repeat}#cookie-bar-browsers .firefox{background:url(browsers/firefox.png) no-repeat}#cookie-bar-browsers .ie{background:url(browsers/ie.png) no-repeat}#cookie-bar-browsers .opera{background:url(browsers/opera.png) no-repeat}#cookie-bar-browsers .safari{background:url(browsers/safari.png) no-repeat}#cookie-bar-browsers a:hover span{display:block}.clear{clear:both} \ No newline at end of file diff --git a/cookiebar-latest.js b/cookiebar-latest.js index 0821e5a..dc7e931 100644 --- a/cookiebar-latest.js +++ b/cookiebar-latest.js @@ -3,7 +3,7 @@ Plugin URL: http://cookie-bar.eu/ @author: Emanuele "ToX" Toscano @description: Cookie Bar is a free & simple solution to the EU cookie law. - @version: 1.5.3 + @version: 1.5.4 */ /* @@ -85,7 +85,7 @@ function setupCookieBar() { */ var checkEurope = new XMLHttpRequest(); - checkEurope.open('GET', 'https://freegeoip.net/json/', true); + checkEurope.open('GET', 'http://www.telize.com/geoip', true); checkEurope.onreadystatechange = function() { if (checkEurope.readyState === 4 && checkEurope.status === 200) { clearTimeout(xmlHttpTimeout); @@ -118,10 +118,10 @@ function setupCookieBar() { * @param null * @return null */ - var xmlHttpTimeout = setTimeout(ajaxTimeout, 1000); + var xmlHttpTimeout = setTimeout(ajaxTimeout, 1500); function ajaxTimeout() { checkEurope.abort(); - console.log('cookieBAR - Timeout for freegeoip'); + console.log('cookieBAR - Timeout for ip geolocalion'); if (document.cookie.length > 0 || window.localStorage.length > 0) { var accepted = getCookie(); @@ -147,7 +147,7 @@ function setupCookieBar() { var path = scriptPath.replace(/[^\/]*$/, ''); var stylesheet = document.createElement('link'); stylesheet.setAttribute('rel', 'stylesheet'); - stylesheet.setAttribute('href', path + 'cookiebar' + theme + '.min.css'); + stylesheet.setAttribute('href', path + 'cookiebar' + theme + '.css'); document.head.appendChild(stylesheet); // Load the correct language messages file and set some variables diff --git a/cookiebar-latest.min.js b/cookiebar-latest.min.js index 683322e..7a15e17 100644 --- a/cookiebar-latest.min.js +++ b/cookiebar-latest.min.js @@ -1 +1 @@ -function setupCookieBar(){function e(){if(h.abort(),console.log("cookieBAR - Timeout for freegeoip"),document.cookie.length>0||window.localStorage.length>0){var e=a();void 0===e&&t()}}function t(){var e=n(),t="";m("theme")&&(t="-"+m("theme"));var o=B.replace(/[^\/]*$/,""),a=document.createElement("link");a.setAttribute("rel","stylesheet"),a.setAttribute("href",o+"cookiebar"+t+".min.css"),document.head.appendChild(a);var i=new XMLHttpRequest;i.open("GET",o+"/lang/"+e+".html",!0),i.onreadystatechange=function(){if(4===i.readyState&&200===i.status){var e=document.createElement("div");if(e.innerHTML=i.responseText,document.getElementsByTagName("body")[0].appendChild(e),g=document.getElementById("cookie-bar"),p=document.getElementById("cookie-bar-button"),y=document.getElementById("cookie-bar-button-no"),k=document.getElementById("cookie-bar-prompt"),f=document.getElementById("cookie-bar-prompt-button"),v=document.getElementById("cookie-bar-prompt-close"),b=document.getElementById("cookie-bar-prompt-content"),E=document.getElementById("cookie-bar-no-consent"),thirdparty=document.getElementById("cookie-bar-thirdparty"),tracking=document.getElementById("cookie-bar-tracking"),privacyPage=document.getElementById("cookie-bar-privacy-page"),privacyLink=document.getElementById("cookie-bar-privacy-link"),m("showNoConsent")||(E.style.display="none",y.style.display="none"),m("blocking")&&(r(k,500),v.style.display="none"),m("thirdparty")&&(thirdparty.style.display="block"),m("tracking")&&(tracking.style.display="block"),m("top")?(g.style.top=0,d("top")):(g.style.bottom=0,d("bottom")),m("privacyPage")){var t=decodeURIComponent(m("privacyPage"));privacyLink.href=t,privacyPage.style.display="inline-block"}u(),r(g,250),d()}},i.send()}function o(){for(var e=document.getElementsByTagName("script"),t=0;t-1)return o}}function n(){var e=m("forceLang");return e===!1&&(e=navigator.language||navigator.userLanguage),e=e.substr(0,2),CookieLanguages.indexOf(e)<0&&(e="en"),e}function a(){var e=document.cookie.match(/(;)?cookiebar=([^;]*);?/);return null==e?void 0:decodeURI(e)[2]}function i(e,t){var o=30;m("remember")&&(o=m("remember"));var n=new Date;n.setDate(n.getDate()+parseInt(o));var a=encodeURI(t)+(null===o?"":"; expires="+n.toUTCString()+";path=/");document.cookie=e+"="+a}function c(){document.cookie.split(";").forEach(function(e){document.cookie=e.replace(/^ +/,"").replace(/=.*/,"=;expires="+(new Date).toUTCString()+";path=/")}),localStorage.clear()}function r(e,t){var o=e.style;o.opacity=0,o.display="block",function n(){(o.opacity-=-.1)>.9?null:setTimeout(n,t/10)}()}function l(e,t){var o=e.style;o.opacity=1,function n(){(o.opacity-=.1)<.1?o.display="none":setTimeout(n,t/10)}()}function d(e){setTimeout(function(){var t=document.getElementById("cookie-bar").clientHeight;switch(e){case"top":document.getElementsByTagName("body")[0].style.marginTop=t+"px";break;case"bottom":document.getElementsByTagName("body")[0].style.marginBottom=t+"px"}},300)}function s(){var e=document.getElementById("cookie-bar").clientHeight;if(m("top")){var t=parseInt(document.getElementsByTagName("body")[0].style.marginTop);document.getElementsByTagName("body")[0].style.marginTop=t-e+"px"}else{var o=parseInt(document.getElementsByTagName("body")[0].style.marginBottom);document.getElementsByTagName("body")[0].style.marginBottom=o-e+"px"}}function m(e){var t=B.split(e+"=");return t[1]?t[1].split(/[&?]+/)[0]:!1}function u(){p.addEventListener("click",function(){i("cookiebar","CookieAllowed"),s(),l(k,250),l(g,250)}),y.addEventListener("click",function(){var e=E.textContent.trim(),t=window.confirm(e);t===!0&&(c(),i("cookiebar","CookieDisallowed"),s(),l(k,250),l(g,250))}),f.addEventListener("click",function(){r(k,250)}),v.addEventListener("click",function(){l(k,250)})}var g,p,y,k,f,v,b,E,B=o();"CookieDisallowed"==a()&&(c(),i("cookiebar","CookieDisallowed"));var h=new XMLHttpRequest;h.open("GET","https://freegeoip.net/json/",!0),h.onreadystatechange=function(){if(4===h.readyState&&200===h.status){clearTimeout(T);var e=JSON.parse(h.responseText).country_code;if(cookieLawStates.indexOf(e)>-1){if(m("always")){var o=a();void 0===o&&t()}else if(document.cookie.length>0||window.localStorage.length>0){var o=a();void 0===o&&t()}}else console.log("cookieBAR - Not an EU user, no cookieBAR.")}},h.send();var T=setTimeout(e,1e3)}var CookieLanguages=["en","it","fr","hu","de"],cookieLawStates=["BE","BG","CZ","DK","DE","EE","IE","EL","ES","FR","IT","CY","LV","LT","LU","HU","MT","NL","AT","PL","PT","RO","SI","SK","FI","SE","GB"];document.addEventListener("DOMContentLoaded",function(){setupCookieBar()}); \ No newline at end of file +function setupCookieBar(){function e(){if(h.abort(),console.log("cookieBAR - Timeout for ip geolocalion"),document.cookie.length>0||window.localStorage.length>0){var e=a();void 0===e&&t()}}function t(){var e=n(),t="";m("theme")&&(t="-"+m("theme"));var o=B.replace(/[^\/]*$/,""),a=document.createElement("link");a.setAttribute("rel","stylesheet"),a.setAttribute("href",o+"cookiebar"+t+".css"),document.head.appendChild(a);var i=new XMLHttpRequest;i.open("GET",o+"/lang/"+e+".html",!0),i.onreadystatechange=function(){if(4===i.readyState&&200===i.status){var e=document.createElement("div");if(e.innerHTML=i.responseText,document.getElementsByTagName("body")[0].appendChild(e),g=document.getElementById("cookie-bar"),p=document.getElementById("cookie-bar-button"),y=document.getElementById("cookie-bar-button-no"),k=document.getElementById("cookie-bar-prompt"),v=document.getElementById("cookie-bar-prompt-button"),b=document.getElementById("cookie-bar-prompt-close"),f=document.getElementById("cookie-bar-prompt-content"),E=document.getElementById("cookie-bar-no-consent"),thirdparty=document.getElementById("cookie-bar-thirdparty"),tracking=document.getElementById("cookie-bar-tracking"),privacyPage=document.getElementById("cookie-bar-privacy-page"),privacyLink=document.getElementById("cookie-bar-privacy-link"),m("showNoConsent")||(E.style.display="none",y.style.display="none"),m("blocking")&&(r(k,500),b.style.display="none"),m("thirdparty")&&(thirdparty.style.display="block"),m("tracking")&&(tracking.style.display="block"),m("top")?(g.style.top=0,d("top")):(g.style.bottom=0,d("bottom")),m("privacyPage")){var t=decodeURIComponent(m("privacyPage"));privacyLink.href=t,privacyPage.style.display="inline-block"}u(),r(g,250),d()}},i.send()}function o(){for(var e=document.getElementsByTagName("script"),t=0;t-1)return o}}function n(){var e=m("forceLang");return e===!1&&(e=navigator.language||navigator.userLanguage),e=e.substr(0,2),CookieLanguages.indexOf(e)<0&&(e="en"),e}function a(){var e=document.cookie.match(/(;)?cookiebar=([^;]*);?/);return null==e?void 0:decodeURI(e)[2]}function i(e,t){var o=30;m("remember")&&(o=m("remember"));var n=new Date;n.setDate(n.getDate()+parseInt(o));var a=encodeURI(t)+(null===o?"":"; expires="+n.toUTCString()+";path=/");document.cookie=e+"="+a}function c(){document.cookie.split(";").forEach(function(e){document.cookie=e.replace(/^ +/,"").replace(/=.*/,"=;expires="+(new Date).toUTCString()+";path=/")}),localStorage.clear()}function r(e,t){var o=e.style;o.opacity=0,o.display="block",function n(){(o.opacity-=-.1)>.9?null:setTimeout(n,t/10)}()}function l(e,t){var o=e.style;o.opacity=1,function n(){(o.opacity-=.1)<.1?o.display="none":setTimeout(n,t/10)}()}function d(e){setTimeout(function(){var t=document.getElementById("cookie-bar").clientHeight;switch(e){case"top":document.getElementsByTagName("body")[0].style.marginTop=t+"px";break;case"bottom":document.getElementsByTagName("body")[0].style.marginBottom=t+"px"}},300)}function s(){var e=document.getElementById("cookie-bar").clientHeight;if(m("top")){var t=parseInt(document.getElementsByTagName("body")[0].style.marginTop);document.getElementsByTagName("body")[0].style.marginTop=t-e+"px"}else{var o=parseInt(document.getElementsByTagName("body")[0].style.marginBottom);document.getElementsByTagName("body")[0].style.marginBottom=o-e+"px"}}function m(e){var t=B.split(e+"=");return t[1]?t[1].split(/[&?]+/)[0]:!1}function u(){p.addEventListener("click",function(){i("cookiebar","CookieAllowed"),s(),l(k,250),l(g,250)}),y.addEventListener("click",function(){var e=E.textContent.trim(),t=window.confirm(e);t===!0&&(c(),i("cookiebar","CookieDisallowed"),s(),l(k,250),l(g,250))}),v.addEventListener("click",function(){r(k,250)}),b.addEventListener("click",function(){l(k,250)})}var g,p,y,k,v,b,f,E,B=o();"CookieDisallowed"==a()&&(c(),i("cookiebar","CookieDisallowed"));var h=new XMLHttpRequest;h.open("GET","http://www.telize.com/geoip",!0),h.onreadystatechange=function(){if(4===h.readyState&&200===h.status){clearTimeout(T);var e=JSON.parse(h.responseText).country_code;if(cookieLawStates.indexOf(e)>-1){if(m("always")){var o=a();void 0===o&&t()}else if(document.cookie.length>0||window.localStorage.length>0){var o=a();void 0===o&&t()}}else console.log("cookieBAR - Not an EU user, no cookieBAR.")}},h.send();var T=setTimeout(e,1500)}var CookieLanguages=["en","it","fr","hu","de"],cookieLawStates=["BE","BG","CZ","DK","DE","EE","IE","EL","ES","FR","IT","CY","LV","LT","LU","HU","MT","NL","AT","PL","PT","RO","SI","SK","FI","SE","GB"];document.addEventListener("DOMContentLoaded",function(){setupCookieBar()}); \ No newline at end of file diff --git a/cookiebar-white.min.css b/cookiebar-white.min.css index 0de0690..ae649e5 100644 --- a/cookiebar-white.min.css +++ b/cookiebar-white.min.css @@ -1 +1 @@ -#cookie-bar,#cookie-bar-prompt{width:100%;line-height:1.5;left:0}#cookie-bar-button,#cookie-bar-button-no{text-decoration:none;display:inline-block}#cookie-bar{font-size:13px}#cookie-bar-prompt-content{font-size:13px;max-height:85vh}#cookie-bar-browsers a{width:60px}@media only screen and (max-device-width:800px){#cookie-bar{font-size:12px}#cookie-bar-prompt-content{font-size:11px;max-height:80vh}#cookie-bar-browsers a{width:50px}}#cookie-bar,#cookie-bar-prompt-content{color:#000;font-weight:700;font-family:Arial,Helvetica,sans-serif}#cookie-bar-button,#cookie-bar-button-no{padding:5px 10px 6px;color:#FFF!important}#cookie-bar{background:#f5f5f5;border-top:4px solid #333;margin:0;padding:3px;position:fixed;z-index:9999}#cookie-bar-prompt{background:#000;background:rgba(0,0,0,.7);height:100%;position:fixed;top:0;z-index:9998}#cookie-bar *,#cookie-bar-prompt *{margin:0;padding:0;line-height:1.5}#cookie-bar p{float:left;margin:4px 0 0 20px;padding:0}#cookie-bar-button,#cookie-bar-button-no{float:right;margin-right:20px;margin-top:2px}#cookie-bar-button{background-color:#1FAE16;cursor:pointer;font-weight:700;line-height:1;position:relative}#cookie-bar-button-no{background-color:#D02828;cursor:pointer;font-weight:700;line-height:1;position:relative}#cookie-bar-prompt a,#cookie-bar-prompt-button{cursor:pointer}#cookie-bar-prompt hr{background:#FFF;border:none;height:1px;margin:.7em 0 1em}#cookie-bar-prompt-content::-webkit-scrollbar-track{background-color:#45484D}#cookie-bar-prompt-content::-webkit-scrollbar{width:15px}#cookie-bar-prompt-content::-webkit-scrollbar-thumb{box-shadow:inset 0 0 6px rgba(0,0,0,.5);background-color:#EEE;background-color:rgba(255,255,255,.3)}#cookie-bar a,#cookie-bar-prompt-content a,#cookie-bar-prompt-content span{color:#9B1A1A;text-decoration:none}#cookie-bar a:hover,#cookie-bar-prompt-content a:hover{color:#9B1A1A;text-decoration:underline}#cookie-bar-prompt-close{background:url(x.png)no-repeat;display:block;float:right;height:14px;width:14px}#cookie-bar-prompt-logo{background:url(logo.png)no-repeat;display:block;float:left;height:42px;width:190px}#cookie-bar-privacy-page,#cookie-bar-prompt-close span,#cookie-bar-prompt-logo span,#cookie-bar-thirdparty,#cookie-bar-tracking{display:none}#cookie-bar-prompt-content{background:#aaa;border:2px solid #333;margin:0 auto;max-width:98%;overflow:auto;padding:25px;position:relative;top:5%;width:600px;z-index:9998}#cookie-bar-browsers a{display:inline-block;height:53px;margin:0;padding:0;position:relative}#cookie-bar-browsers a span{background:#555;border-radius:2px;color:#000!important;display:none;left:-10px;opacity:1;padding:3px 10px;position:absolute;text-align:center;top:60px;width:150px}#cookie-bar-browsers .chrome{background:url(browsers/chrome.png)no-repeat}#cookie-bar-browsers .firefox{background:url(browsers/firefox.png)no-repeat}#cookie-bar-browsers .ie{background:url(browsers/ie.png)no-repeat}#cookie-bar-browsers .opera{background:url(browsers/opera.png)no-repeat}#cookie-bar-browsers .safari{background:url(browsers/safari.png)no-repeat}#cookie-bar-browsers a:hover span{display:block}.clear{clear:both} \ No newline at end of file +#cookie-bar{font-size:13px}#cookie-bar-prompt-content{font-size:13px;max-height:85vh}#cookie-bar-browsers a{width:60px}@media only screen and (max-device-width:800px){#cookie-bar{font-size:12px}#cookie-bar-prompt-content{font-size:11px;max-height:80vh}#cookie-bar-browsers a{width:50px}}#cookie-bar,#cookie-bar-prompt{line-height:1.5;left:0;position:fixed;width:100%}#cookie-bar,#cookie-bar-prompt-content{color:#000;font-weight:700;font-family:Arial,Helvetica,sans-serif}#cookie-bar{background:#f5f5f5;border-top:4px solid #333;margin:0;padding:3px;z-index:9999}#cookie-bar-prompt{background:#000;background:rgba(0,0,0,.7);height:100%;top:0;z-index:9998}#cookie-bar *,#cookie-bar-prompt *{margin:0;padding:0;line-height:1.5}#cookie-bar p{float:left;margin:4px 0 0 20px;padding:0}#cookie-bar-button,#cookie-bar-button-no{position:relative;text-decoration:none;cursor:pointer;color:#FFF!important;display:inline-block;font-weight:700;line-height:1;margin-right:20px;margin-top:2px;padding:5px 10px 6px}#cookie-bar-button{background-color:#1FAE16;float:right}#cookie-bar-button-no{background-color:#D02828;float:right}#cookie-bar-prompt a,#cookie-bar-prompt-button{cursor:pointer}#cookie-bar-prompt hr{background:#FFF;border:none;height:1px;margin:.7em 0 1em}#cookie-bar-prompt-content::-webkit-scrollbar-track{background-color:#45484D}#cookie-bar-prompt-content::-webkit-scrollbar{width:15px}#cookie-bar-prompt-content::-webkit-scrollbar-thumb{box-shadow:inset 0 0 6px rgba(0,0,0,.5);background-color:#EEE;background-color:rgba(255,255,255,.3)}#cookie-bar a,#cookie-bar-prompt-content a,#cookie-bar-prompt-content span{color:#9B1A1A;text-decoration:none}#cookie-bar a:hover,#cookie-bar-prompt-content a:hover{color:#9B1A1A;text-decoration:underline}#cookie-bar-prompt-close{background:url(x.png) no-repeat;display:block;float:right;height:14px;width:14px}#cookie-bar-prompt-logo{background:url(logo.png) no-repeat;display:block;float:left;height:42px;width:190px}#cookie-bar-privacy-page,#cookie-bar-prompt-close span,#cookie-bar-prompt-logo span,#cookie-bar-thirdparty,#cookie-bar-tracking{display:none}#cookie-bar-prompt-content{background:#aaa;border:2px solid #333;margin:0 auto;max-width:98%;overflow:auto;padding:25px;position:relative;top:5%;width:600px;z-index:9998}#cookie-bar-browsers a{display:inline-block;height:53px;margin:0;padding:0;position:relative}#cookie-bar-browsers a span{background:#555;border-radius:2px;color:#000!important;display:none;left:-10px;opacity:1;padding:3px 10px;position:absolute;text-align:center;top:60px;width:150px}#cookie-bar-browsers .chrome{background:url(browsers/chrome.png) no-repeat}#cookie-bar-browsers .firefox{background:url(browsers/firefox.png) no-repeat}#cookie-bar-browsers .ie{background:url(browsers/ie.png) no-repeat}#cookie-bar-browsers .opera{background:url(browsers/opera.png) no-repeat}#cookie-bar-browsers .safari{background:url(browsers/safari.png) no-repeat}#cookie-bar-browsers a:hover span{display:block}.clear{clear:both} \ No newline at end of file diff --git a/cookiebar.css b/cookiebar.css index cbc86d4..5ab4fa5 100644 --- a/cookiebar.css +++ b/cookiebar.css @@ -60,8 +60,6 @@ #cookie-bar *, #cookie-bar-prompt * { - margin: 0; - padding: 0; line-height: 1.5; } diff --git a/cookiebar.min.css b/cookiebar.min.css index 9df3049..3ba1e3e 100644 --- a/cookiebar.min.css +++ b/cookiebar.min.css @@ -1 +1 @@ -#cookie-bar,#cookie-bar-prompt{font-family:Arial,Helvetica,sans-serif;font-size:10pt;width:100%;line-height:1.5}#cookie-bar-button,#cookie-bar-button-no{border-radius:5px;display:inline-block;font-weight:700;cursor:pointer;border-bottom:1px solid #222;margin-top:2px;padding:5px 10px 6px;text-decoration:none}#cookie-bar-prompt-content{font-size:13px;max-height:85vh}#cookie-bar-browsers a{width:60px}@media only screen and (max-device-width:800px){#cookie-bar{font-size:12px}#cookie-bar-prompt-content{font-size:11px;max-height:80vh}#cookie-bar-browsers a{width:50px}}#cookie-bar{background:-webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(30,30,30,.95)),color-stop(100%,rgba(0,0,0,.95)));background:-webkit-linear-gradient(top,rgba(30,30,30,.95) 0,rgba(0,0,0,.95) 100%);background:-o-linear-gradient(top,rgba(30,30,30,.95) 0,rgba(0,0,0,.95) 100%);background:-ms-linear-gradient(top,rgba(30,30,30,.95) 0,rgba(0,0,0,.95) 100%);background:linear-gradient(to bottom,rgba(30,30,30,.95) 0,rgba(0,0,0,.95) 100%);left:0;margin:0;padding:3px;position:fixed;z-index:9999;filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#cc45484d', endColorstr='#cc000000', GradientType=0 )}#cookie-bar-prompt{background:#000;background:rgba(0,0,0,.4);height:100%;left:0;position:fixed;top:0;z-index:9998}#cookie-bar *,#cookie-bar-prompt *{margin:0;padding:0;line-height:1.5}#cookie-bar p{float:left;margin:4px 0 0 20px;padding:0;color:#FFF;font-family:sans-serif}#cookie-bar-button,#cookie-bar-button-no{color:#FFF!important;float:right;margin-right:20px}#cookie-bar-prompt p{font-family:Arial,Helvetica,sans-serif;color:#FFF}#cookie-bar-button{background-color:#36BF2D;line-height:1;position:relative;text-shadow:0 -1px 1px #222}#cookie-bar-button-no{background-color:#D02828;line-height:1;position:relative;text-shadow:0 -1px 1px #222}#cookie-bar-prompt a,#cookie-bar-prompt-button{cursor:pointer}#cookie-bar-prompt hr{background:#FFF;border:none;height:1px;margin:.7em 0 1em;opacity:.2}#cookie-bar,#cookie-bar-prompt-content{color:#FFF;font-weight:300}#cookie-bar-prompt-content::-webkit-scrollbar-track{border-radius:10px;background-color:#222;background-color:rgba(255,255,255,.05)}#cookie-bar-prompt-content::-webkit-scrollbar{width:15px}#cookie-bar-prompt-content::-webkit-scrollbar-thumb{box-shadow:inset 0 0 6px rgba(0,0,0,.5);background-color:#EEE;background-color:rgba(255,255,255,.3);border-radius:10px}#cookie-bar a,#cookie-bar-prompt-content a,#cookie-bar-prompt-content span{color:#31A8F0;text-decoration:none}#cookie-bar a:hover,#cookie-bar-prompt-content a:hover{color:#31A8F0;text-decoration:underline}#cookie-bar-prompt-close{background:url(x.png)no-repeat;display:block;float:right;height:14px;width:14px}#cookie-bar-prompt-logo{background:url(logo.png)no-repeat;display:block;float:left;height:42px;width:190px}#cookie-bar-privacy-page,#cookie-bar-prompt-close span,#cookie-bar-prompt-logo span,#cookie-bar-thirdparty,#cookie-bar-tracking{display:none}#cookie-bar-prompt-content{background:#111;border-radius:7px;box-shadow:1px 2px 8px rgba(0,0,0,.5);color:#FFF;margin:0 auto;max-width:98%;opacity:.97;overflow:auto;padding:25px;position:relative;top:5%;width:600px;z-index:9998}#cookie-bar-browsers a{display:inline-block;height:53px;margin:0;padding:0;position:relative}#cookie-bar-browsers a span{background:#FFF;border-radius:2px;color:#000!important;display:none;left:-10px;opacity:.8;padding:3px 10px;position:absolute;text-align:center;top:60px;width:150px}#cookie-bar-browsers .chrome{background:url(browsers/chrome.png)no-repeat}#cookie-bar-browsers .firefox{background:url(browsers/firefox.png)no-repeat}#cookie-bar-browsers .ie{background:url(browsers/ie.png)no-repeat}#cookie-bar-browsers .opera{background:url(browsers/opera.png)no-repeat}#cookie-bar-browsers .safari{background:url(browsers/safari.png)no-repeat}#cookie-bar-browsers a:hover span{display:block}.clear{clear:both} \ No newline at end of file +#cookie-bar,#cookie-bar-prompt{font-size:10pt;width:100%;left:0;font-family:Arial,Helvetica,sans-serif}#cookie-bar,#cookie-bar *,#cookie-bar-prompt *{line-height:1.5}#cookie-bar-button,#cookie-bar-button-no{border-radius:5px;display:inline-block;font-weight:700;cursor:pointer;border-bottom:1px solid #222;margin-top:2px;padding:5px 10px 6px;text-decoration:none}#cookie-bar{font-size:13px}#cookie-bar-prompt-content{font-size:13px;max-height:85vh}#cookie-bar-browsers a{width:60px}@media only screen and (max-device-width:800px){#cookie-bar{font-size:12px}#cookie-bar-prompt-content{font-size:11px;max-height:80vh}#cookie-bar-browsers a{width:50px}}#cookie-bar{background:#45484D;background:-moz-linear-gradient(top,rgba(30,30,30,.95) 0,rgba(0,0,0,.95) 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(30,30,30,.95)),color-stop(100%,rgba(0,0,0,.95)));background:-webkit-linear-gradient(top,rgba(30,30,30,.95) 0,rgba(0,0,0,.95) 100%);background:-o-linear-gradient(top,rgba(30,30,30,.95) 0,rgba(0,0,0,.95) 100%);background:-ms-linear-gradient(top,rgba(30,30,30,.95) 0,rgba(0,0,0,.95) 100%);background:linear-gradient(to bottom,rgba(30,30,30,.95) 0,rgba(0,0,0,.95) 100%);margin:0;padding:3px;position:fixed;z-index:9999;filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#cc45484d', endColorstr='#cc000000', GradientType=0 )}#cookie-bar-prompt{background:#000;background:rgba(0,0,0,.4);height:100%;line-height:1.5;position:fixed;top:0;z-index:9998}#cookie-bar p{float:left;margin:4px 0 0 20px;padding:0;color:#FFF;font-family:sans-serif}#cookie-bar-button,#cookie-bar-button-no{color:#FFF!important;float:right;margin-right:20px}#cookie-bar-prompt p{font-family:Arial,Helvetica,sans-serif;color:#FFF}#cookie-bar-button{background-color:#36BF2D;line-height:1;position:relative;text-shadow:0 -1px 1px #222}#cookie-bar-button-no{background-color:#D02828;line-height:1;position:relative;text-shadow:0 -1px 1px #222}#cookie-bar-prompt a,#cookie-bar-prompt-button{cursor:pointer}#cookie-bar-prompt hr{background:#FFF;border:none;height:1px;margin:.7em 0 1em;opacity:.2}#cookie-bar,#cookie-bar-prompt-content{color:#FFF;font-weight:300}#cookie-bar-prompt-content::-webkit-scrollbar-track{border-radius:10px;background-color:#222;background-color:rgba(255,255,255,.05)}#cookie-bar-prompt-content::-webkit-scrollbar{width:15px}#cookie-bar-prompt-content::-webkit-scrollbar-thumb{box-shadow:inset 0 0 6px rgba(0,0,0,.5);background-color:#EEE;background-color:rgba(255,255,255,.3);border-radius:10px}#cookie-bar a,#cookie-bar-prompt-content a,#cookie-bar-prompt-content span{color:#31A8F0;text-decoration:none}#cookie-bar a:hover,#cookie-bar-prompt-content a:hover{color:#31A8F0;text-decoration:underline}#cookie-bar-prompt-close{background:url(x.png)no-repeat;display:block;float:right;height:14px;width:14px}#cookie-bar-prompt-logo{background:url(logo.png)no-repeat;display:block;float:left;height:42px;width:190px}#cookie-bar-privacy-page,#cookie-bar-prompt-close span,#cookie-bar-prompt-logo span,#cookie-bar-thirdparty,#cookie-bar-tracking{display:none}#cookie-bar-prompt-content{background:#111;border-radius:7px;box-shadow:1px 2px 8px rgba(0,0,0,.5);color:#FFF;margin:0 auto;max-width:98%;opacity:.97;overflow:auto;padding:25px;position:relative;top:5%;width:600px;z-index:9998}#cookie-bar-browsers a{display:inline-block;height:53px;margin:0;padding:0;position:relative}#cookie-bar-browsers a span{background:#FFF;border-radius:2px;color:#000!important;display:none;left:-10px;opacity:.8;padding:3px 10px;position:absolute;text-align:center;top:60px;width:150px}#cookie-bar-browsers .chrome{background:url(browsers/chrome.png)no-repeat}#cookie-bar-browsers .firefox{background:url(browsers/firefox.png)no-repeat}#cookie-bar-browsers .ie{background:url(browsers/ie.png)no-repeat}#cookie-bar-browsers .opera{background:url(browsers/opera.png)no-repeat}#cookie-bar-browsers .safari{background:url(browsers/safari.png)no-repeat}#cookie-bar-browsers a:hover span{display:block}.clear{clear:both} \ No newline at end of file