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 // Security fix (SECURITY-AUDIT.md Finding 1): nonce required by 55 // check_ajax_referer('gdpr_consent_cookie', 'nonce') server-side. 56 nonce: gdpr_policy_page.nonce, 57 }, 58 success: function (data) { 59 $(".cc-close").click(); 60 if (gdpr_policy_page.gdpr_hide) { 61 $(".cc-revoke").hide(); 62 } 63 }, 64 }); 65 }); 66 }); 67 } else if (chosenBefore == "false" || status == "deny") { 68 jQuery(document).ready(function ($) { 69 $.getJSON("https://api.ipify.org?format=json", function (data) { 70 $.ajax({ 71 url: gdpr_policy_page.ajaxurl, 72 type: "POST", 73 data: { 74 action: "gdpr_add_consent_deny_cookies", 75 userip: data.ip, 76 // Security fix (SECURITY-AUDIT.md Finding 1): nonce required by 77 // check_ajax_referer('gdpr_consent_cookie', 'nonce') server-side. 78 nonce: gdpr_policy_page.nonce, 79 }, 80 success: function (data) { 81 console.log(data); 82 $(".cc-close").click(); 83 if (gdpr_policy_page.gdpr_hide) { 84 $(".cc-revoke").hide(); 85 } 86 }, 87 }); 88 }); 89 }); 90 } 91 }, 92 }); 93});
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.