Install A Custmor Notification Of COOkies On The Blogger - 2020 Th3safelink About the custom notification message ihavecookies.js is a simp...
Install A Custmor Notification Of COOkies On The Blogger - 2020 Th3safelink
About the custom notification message
ihavecookies.js is a simple and lightweight jQuery plugin to inform users that your site contains cookies and to bring your website into compliance with the General Data Protection Act and the European Union Cookie Law.
The plugin displays a cookie consent message on the first visit or after how many days you specify from its last visit and it also contains an option that allows the visitor to select the files they want to accept - of course after allocating them
Add to this the ease of controlling the view only from a tool on the layout page..like color, font, display speed, etc. and add that the script allows you to disable Google's default notification
How to install the tool
Don't forget to take a backup copy of the template
The first step
Scroll to Appearance >> and then click Edit HTML
Press in the center of the code editor and then Ctrl+F to bring up the search box
Using the Ctrl+C button to copy and Ctrl+V to paste, place the codes in the right place
Search for this tag </b:section> above it, before it, put the following HTML code ..
important note
You will find the tag </b:section> that we are looking for duplicates more than once, regardless of what is needed, because we will change the location of the tool from the layout page.
<b:widget id='LinkList967' locked='true' title='Cookie message setting' type='LinkList' version='1'>
<b:widget-settings>
<b:widget-setting name='text-26'>Font</b:widget-setting>
<b:widget-setting name='text-22'>expires</b:widget-setting>
<b:widget-setting name='text-23'>TTl-color</b:widget-setting>
<b:widget-setting name='text-24'>TXT-color</b:widget-setting>
<b:widget-setting name='text-25'>URL-color</b:widget-setting>
<b:widget-setting name='text-9'>btn-advanced-text</b:widget-setting>
<b:widget-setting name='text-8'>btn-ccept-text</b:widget-setting>
<b:widget-setting name='text-20'>link</b:widget-setting>
<b:widget-setting name='text-21'>delay</b:widget-setting>
<b:widget-setting name='text-1'>allow-googlecookie</b:widget-setting>
<b:widget-setting name='text-0'>allow-mycookie</b:widget-setting>
<b:widget-setting name='text-3'>allow-types</b:widget-setting>
<b:widget-setting name='text-2'>allow-advanced</b:widget-setting>
<b:widget-setting name='text-5'>title-text</b:widget-setting>
<b:widget-setting name='text-4'>id-googleanalytics</b:widget-setting>
<b:widget-setting name='text-7'>btn-information-text</b:widget-setting>
<b:widget-setting name='text-6'>message-text</b:widget-setting>
<b:widget-setting name='text-19'>direction</b:widget-setting>
<b:widget-setting name='text-15'>analytics-text</b:widget-setting>
<b:widget-setting name='text-16'>analytics-desc-text</b:widget-setting>
<b:widget-setting name='text-17'>marketing-text</b:widget-setting>
<b:widget-setting name='text-18'>marketing-desc-text</b:widget-setting>
<b:widget-setting name='text-11'>necessary-text</b:widget-setting>
<b:widget-setting name='text-12'>necessary-desc-text</b:widget-setting>
<b:widget-setting name='text-13'>preferences-text</b:widget-setting>
<b:widget-setting name='text-14'>preferences-desc-text</b:widget-setting>
<b:widget-setting name='text-10'>types-text</b:widget-setting>
<b:widget-setting name='link-17'>ŲŖŲ³ŁŁŁ</b:widget-setting>
<b:widget-setting name='link-16'>Cookies related to site visits, browser types ... etc.</b:widget-setting>
<b:widget-setting name='link-19'>rtl</b:widget-setting>
<b:widget-setting name='sorting'>NONE</b:widget-setting>
<b:widget-setting name='link-18'>Marketing-related cookies such as newsletters, social media, etc.</b:widget-setting>
<b:widget-setting name='link-1'>true</b:widget-setting>
<b:widget-setting name='link-13'>Preferences</b:widget-setting>
<b:widget-setting name='link-2'>true</b:widget-setting>
<b:widget-setting name='link-12'>This is necessary for the website to work properly.</b:widget-setting>
<b:widget-setting name='link-15'>Analytics</b:widget-setting>
<b:widget-setting name='link-0'>true</b:widget-setting>
<b:widget-setting name='link-14'>These are cookies related to your site preferences eg remember your username, website colors, etc.</b:widget-setting>
<b:widget-setting name='link-11'>essential</b:widget-setting>
<b:widget-setting name='link-10'>Select the cookies you want to accept</b:widget-setting>
<b:widget-setting name='link-9'>Customize more</b:widget-setting>
<b:widget-setting name='link-7'>more information</b:widget-setting>
<b:widget-setting name='link-8'>I understand that</b:widget-setting>
<b:widget-setting name='link-5'>Approval of Cookies and Privacy ؟</b:widget-setting>
<b:widget-setting name='link-6'>We use cookies to understand how you use our site and to improve your experience. This includes personalizing content and ads ....</b:widget-setting>
<b:widget-setting name='link-3'><![CDATA[['preferences', 'analytics', 'marketing']]]></b:widget-setting>
<b:widget-setting name='link-4'>UA-000000000</b:widget-setting>
<b:widget-setting name='link-24'>#444444</b:widget-setting>
<b:widget-setting name='link-23'>#FFB900</b:widget-setting>
<b:widget-setting name='link-26'>inherit</b:widget-setting>
<b:widget-setting name='link-25'>#2900FF</b:widget-setting>
<b:widget-setting name='link-20'>https://policies.google.com/technologies/cookies</b:widget-setting>
<b:widget-setting name='link-22'>30</b:widget-setting>
<b:widget-setting name='link-21'>600</b:widget-setting>
</b:widget-settings>
<b:includable id='main'>
<!-- GDPR-Cookie-Consent-Popup-Plugin -->
<b:if cond='not data:view.isPreview'>
<script type='text/javascript'>
SettingsCookie={
<b:loop values='data:links' var='link'>'<data:link.name/>' : <b:if cond='data:link.name in {"delay","expires","allow-mycookie","allow-googlecookie","allow-advanced"}'><data:link.target/><b:else/>'<data:link.target.jsEscaped/>'</b:if>,
</b:loop>
}
/*<![CDATA[*/
$(function(){
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('b 3E=f 0!==6["11-2z"]?6["11-2z"]:"",1m=f 0!==6["2A-h"]?6["2A-h"]:"#3F",19=f 0!==6["2B-h"]?6["2B-h"]:"#3G",F=f 0!==6["2C-h"]?6["2C-h"]:"#3H",1n=f 0!==6.1n?6.1n:"3I, 3J, 3K, 3L-3M",2D=f 0!==6.H?6.H:"26",2E=!1!==6["1o-U"],2F=!1!==6["1o-3N"],3O=!1!==6["1o-3P"],2G=f 0!==6["1o-12"]?6["1o-12"]:"[\'O\', \'1a\', \'13\']",2H=f 0!==6.1M?6.1M:"3Q",2I=f 0!==6.1b?6.1b:"30",2J=f 0!==6.1N?6.1N:"3R://3S.3T.3U/3V/1p",2K=f 0!==6["P-8"]?6["P-8"]:"1q & 3W",2L=f 0!==6["7-8"]?6["7-8"]:"3X 2M 1p 14 3Y 3Z 40 2M 41 1O 2N 14 42 27 43. 44 45 46 1P 2N 47.",2O=f 0!==6["12-8"]?6["12-8"]:"48 1p 14 28",2P=f 0!==6["1r-8"]?6["1r-8"]:"4a",2Q=f 0!==6["O-8"]?6["O-8"]:"4b 4c",2R=f 0!==6["1a-8"]?6["1a-8"]:"4d",2S=f 0!==6["13-8"]?6["13-8"]:"4e",2T=f 0!==6["1r-V-8"]?6["1r-V-8"]:"2U 1Q 1p 2V 1Q 4f 1R 4g 4h 14 4i 4j.",2W=f 0!==6["O-V-8"]?6["O-V-8"]:"2U 1Q 1p 2V 1Q 29 14 27 1O O, e.g. 4k 27 4l, 1O 4m, 2a.",2X=f 0!==6["1a-V-8"]?6["1a-V-8"]:"1q 29 14 1O 4n, 4o 12, 2a.",2Y=f 0!==6["13-V-8"]?6["13-V-8"]:"1q 29 14 13, e.g. 4p, 4q 4r, 2a",2Z=f 0!==6["1c-31-8"]?6["1c-31-8"]:"4s 1q",32=f 0!==6["1c-U-8"]?6["1c-U-8"]:"4t 1q",33=f 0!==6["1c-2b-8"]?6["1c-2b-8"]:"4u 2b";$("<1s u=\'8/1t\'>:4v{--1m:"+1m+";--19:"+19+";--F:"+F+";}#4-3-7{1u:4w;2c:0;W:34;I:0 34;35-1v:4x;Q-h:1d;1S:1w;C-36:"+1n+";z-2d:4y;-v-1e-1f:q;-4z-1e-1f:q;-R-1e-1f:q;-D-1e-1f:q;-o-1e-1f:q;1e-1f:q;}#4-3-7.26{H:26;}#4-3-7.37{H:37;}#4-3-7 1T{h:b(--1m);C-15:1g;C-38:39;I:J 0;1h-X:1i;}#4-3-7 1T i{C-15:1w;C-1s:1i;I:0 E;}#4-3-7 2e{h:b(--1m);C-15:2f;C-38:39;I:0 0 J 0;1h-X:1i;}#4-3-7 p,#4-3-7 2g{h:b(--19);C-15:2f;1h-X:1.4A;I-W:1w;1h-X:1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="4-3-U" u="B">\'+t.3k+"</B>");b d=\'<21 11="4-3-7" 3t="\'+t.H+\'"><1T>\'+t.P+"</1T><p>"+t.7+\' <a 51="\'+t.1N+\'">\'+t.3l+\'</a><21 11="4-3-12" 1s="16:q;"><2e>\'+t.3m+"</2e><2g>"+s+\'</2g></21><p><B 11="4-3-28" u="B">\'+t.3j+"</B>"+l+"</p></21>";52(m(){p(i).53(d),p("#4-3-7").54().3u("55",m(){"3s"==o&&(p("#4-3-U").56("2w"),p.2t(O,m(e,o){p("A#4-2v-"+o).1K("S",!0)}))}),0<p("#4-3-7").22&&(p("#4-3-7 1l").1V(m(e){b o=p(18).2x("P");p(18).1J("3v",o).57("P"),p(\'<3w 3t="3-17"></3w>\').8(o).3h(i).1t("3x",e.3y-0+"23").1t("2c",e.3z+5+"23").3u("2y")},m(){p(18).2x("P",p(18).1J("3v")),p(".3-17").1Y()}).58(m(e){p(".3-17").1t("3x",e.3y+10+"23").1t("2c",e.3z+10+"23")}),p(59).5a(m(){p(".3-17").1Y()}))},t.1M),p("3A").20("2w","#4-3-28",m(){k(!0,t.1b),p(\'A[1I="4[]"][1J-1z="20"]\').1K("S",!0);b i=[];p.2t(p(\'A[1I="4[]"]\').5b(),m(e,o){i.5c(o.G)}),g("1X",1Z.5d(i),5e),t.3q.5f(18)}),p("3A").20("2w","#4-3-U",m(){p(\'A[1I="4[]"]:5g(:Y)\').2x("1J-1z","5h").1K("S",!1),p("#4-3-12").5i("2y",m(){p("#4-3-U").1K("Y",!0)})})}!0===t.3r&&p(\'A[u="K"].1W\').1K("S",!1)},p.2o.1W.3=m(){b e=x("1X");1L 1Z.2r(e)},p.2o.1W.5j=m(e){b o=x("2p"),i=x("1X");1L i=1Z.2r(i),!1!==o&&(!1!==i&&-1!==i.2u(e))};b k=m(e,o){g("2p",e,o),p("#4-3-7").5k("2y",m(){p(18).1Y()})},g=m(e,o,i){b t=5l 5m;t.5n(t.5o()+24*i*3B*3B*5p);b n="1b="+t.5q();1L 3C.3=e+"="+o+";"+n+";5r=/",x(e)},x=m(e){1R(b o=e+"=",i=5s(3C.3).5t(";"),t=0;t<i.22;t++){1R(b n=i[t];" "==n.5u(0);)n=n.3D(1);2q(0===n.2u(o))1L n.3D(o.22,n.22)}1L!1}}(5v);',62,342,'|||cookie|gdpr||SettingsCookie|message|text|||var||||void||color||border|||function||||none||||type|webkit|box||radius||input|button|font|ms|2px|URLcolor|value|direction|margin|10px|checkbox|shadow|3px|rgba|preferences|title|background|moz|checked|center|advanced|desc|bottom|height|disabled|flex||id|types|marketing|to|size|display|tooltip|this|TXTcolor|analytics|expires|btn|white|user|select|15px|line|normal|align|li|label|TTlcolor|Font|allow|cookies|Cookies|necessary|style|css|position|width|20px|inline|cursor|auto|appearance|8px|100|transition|all|ease|in|description|name|data|prop|return|delay|link|site|content|are|for|padding|h4|12px|hover|ihavecookies|cookieControlPrefs|remove|JSON|on|div|length|px|||rtl|your|accept|related|etc|information|left|index|h5|13px|ul|5px|pointer|dadce0|relative|before|pack|column|fn|cookieControl|if|parse||each|indexOf|cookietype|click|attr|fast|googleanalytics|TTl|TXT|URL|Cookie_direction|Cookie_allowadvanced|Cookie_allowgooglecookie|Cookie_allowtypes|Cookie_delay|Cookie_expires|Cookie_privacy_link|Cookie_title|Cookie_message|use|and|Cookie_cookieTypesTitle|Cookie_T_necessary|Cookie_T_preferences|Cookie_T_analytics|Cookie_T_marketing|Cookie_D_necessary|These|that|Cookie_D_preferences|Cookie_D_analytics|Cookie_D_marketing|Cookie_acceptBtnLabel||ccept|Cookie_advancedBtnLabel|Cookie_moreInfoLabel|30px|max|family|ltr|weight|bold|last|child|block|1px|vertical|justify|items|appendTo|cookieTypes|acceptBtnLabel|advancedBtnLabel|moreInfoLabel|cookieTypesTitle|fixedCookieTypeLabel|fixedCookieTypeDesc|allowBoxes|onAccept|uncheckBoxes|reinit|class|fadeIn|tiptext|span|top|pageY|pageX|body|60|document|substring|id_googleanalytics|FFB900|444444|2900FF|Tahoma|Helvetica|FreeSans|sans|serif|googlecookie|Cookie_allowmycookie|mycookie|600|https|policies|google|com|technologies|Privacy|We|understand|how|you|our|improve|experience|This|includes|personalizing|advertising|Select||Necessary|Site|Preferences|Analytics|Marketing|essential|the|website|work|correctly|remembering|username|colours|visits|browser|newsletters|social|media|Accept|Customise|More|root|fixed|375px|100000000000000|khtml|5em|75em|start|list|decoration|dotted|transparent|solid|e8e8e8|b5b5b5|90|f8f8f8|float|middle|outline|absolute|opacity|1000000000000000|space|11px|orient|head|cookieChoices|extend|x1F36A|false|else|href|setTimeout|append|hide|slow|trigger|removeAttr|mousemove|window|scroll|serializeArray|push|stringify|365|call|not|off|slideDown|preference|fadeOut|new|Date|setTime|getTime|1e3|toUTCString|path|decodeURIComponent|split|charAt|jQuery'.split('|'),0,{}))
$(window).one('load',function() {
function preferences_code() {
console.log('%cpreferences: is accepted', 'color:tomato');
};
function analytics_code() {
console.log('%canalytics: is accepted', 'color:tomato');
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', id_googleanalytics, 'auto', 'blogger');
ga('blogger.send', 'pageview');
};
function marketing_code() {
console.log('%cmarketing: is accepted', 'color:tomato');
};
function domcookie() {
!0===$.fn.ihavecookies.preference("preferences")&&preferences_code();
!0===$.fn.ihavecookies.preference("analytics")&&analytics_code();
!0===$.fn.ihavecookies.preference("marketing")&&marketing_code();
};
var options = {
onAccept:function(){
var myPreferences = $.fn.ihavecookies.cookie();
console.log('%cYay! The following preferences were saved...', 'color:tomato');
console.log(myPreferences);
domcookie();
}
};
// allow my cookie
if (Cookie_allowmycookie === true) {
$('body').ihavecookies(options);
domcookie();
$('#ihavecookiesBtn').on('click', function(){$('body').ihavecookies(options, 'reinit');});
}
});//load
});
/*]]>*/
</script>
</b:if>
</b:includable>
</b:widget>
Important note when you find the tool, change its position in any position it deems appropriate, and the best place it directly below the blog message tool and then click the Save Arrange button
Then edit the tool to find it already set up like this.
No comments