1window.addEventListener("load", function () { 2 if (gdpr_policy_page.gdpr_url) { 3 if (gdpr_policy_page.gdpr_popup) { 4 var layoutcheck = "gdpr-cool-layout"; 5 } else { 6 var layoutcheck = "gdpr-cool-layout-wlink"; 7 } 8 } else { 9 var layoutcheck = "gdpr-cool-layout-wlink"; 10 } 11 window.cookieconsent.initialise({ 12 layout: layoutcheck, 13 layouts: { 14 "gdpr-cool-layout": 15 '{{header}}{{message}}{{link}}{{compliance}}<span aria-label="dismiss cookie message" role="button" tabindex="0" class="gdpr-close"><span class="emoji gdpr-close-popup cc-close">✕</span></span>', 16 "gdpr-cool-layout-wlink": 17 '{{header}}{{message}}{{compliance}}<span aria-label="dismiss cookie message" role="button" tabindex="0" class="gdpr-close"><span class="emoji gdpr-close-popup cc-close">✕</span></span>', 18 }, 19 palette: { 20 popup: { 21 background: gdpr_policy_page.gdpr_popup_background, 22 text: gdpr_policy_page.gdpr_popup_text, 23 }, 24 button: { 25 background: gdpr_policy_page.gdpr_button_background, 26 text: gdpr_policy_page.gdpr_button_text, 27 border: gdpr_policy_page.gdpr_button_border, 28 }, 29 }, 30 position: gdpr_policy_page.gdpr_popup_position, 31 static: gdpr_policy_page.gdpr_popup_static, 32 theme: gdpr_policy_page.gdpr_popup_theme, 33 type: gdpr_policy_page.gdpr_popup_type, 34 content: { 35 header: gdpr_policy_page.gdpr_header, //"Cookies used on the website!" 36 message: gdpr_policy_page.gdpr_message, 37 href: gdpr_policy_page.gdpr_url, 38 link: gdpr_policy_page.gdpr_link, 39 deny: gdpr_policy_page.gdpr_dismiss, 40 allow: gdpr_policy_page.gdpr_allow, 41 policy: gdpr_policy_page.policy, 42 target: gdpr_policy_page.gdpr_link_target, 43 }, 44 onStatusChange: function (status, chosenBefore) { 45 if (chosenBefore == "false" || status == "allow") { 46 jQuery(document).ready(function ($) { 47 $.getJSON("https://api.ipify.org?format=json", function (data) { 48 $.ajax({ 49 url: gdpr_policy_page.ajaxurl, 50 type: "POST", 51 data: { 52 action: "gdpr_add_consent_accept_cookies", 53 userip: data.ip, 54 }, 55 success: function (data) { 56 $(".cc-close").click(); 57 if (gdpr_policy_page.gdpr_hide) { 58 $(".cc-revoke").hide(); 59 } 60 }, 61 }); 62 }); 63 }); 64 } else if (chosenBefore == "false" || status == "deny") { 65 jQuery(document).ready(function ($) { 66 $.getJSON("https://api.ipify.org?format=json", function (data) { 67 $.ajax({ 68 url: gdpr_policy_page.ajaxurl, 69 type: "POST", 70 data: { 71 action: "gdpr_add_consent_deny_cookies", 72 userip: data.ip, 73 }, 74 success: function (data) { 75 console.log(data); 76 $(".cc-close").click(); 77 if (gdpr_policy_page.gdpr_hide) { 78 $(".cc-revoke").hide(); 79 } 80 }, 81 }); 82 }); 83 }); 84 } 85 }, 86 }); 87});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.