1;(function($) { 2 3 $(document.body).append(options.dom); 4 5 $('.gdpr-popin-customise-button').on('click', function () { 6 $('.gdpr-popin-default').hide(); 7 $('.gdpr-popin-customisation').show(); 8 }); 9 $('.gdpr-popin-back-button').on('click', function () { 10 $('.gdpr-popin-default').show(); 11 $('.gdpr-popin-customisation').hide(); 12 }); 13 14 document.addEventListener('gdprAcceptAll', function () { 15 $('.gdpr-popin').hide(); 16 }, true); 17 18 document.addEventListener('gdprRefuseAll', function () { 19 $('.gdpr-popin').hide(); 20 }, true); 21 22 document.addEventListener('gdprAccept', function () { 23 $('.gdpr-popin').hide(); 24 }, true); 25 26 // Default a data-attribute and a class to open 27 $(document).on('click', '.gdpr-open-popin, [data-gdpr-open-popin]', function () { 28 window.gdprDisplayPopin(); 29 }); 30 31 // Exports a function to window to open the popin 32 window.gdprDisplayPopin = function () { 33 $('.gdpr-popin').show(); 34 $('.gdpr-popin-customise-button').trigger('click'); 35 } 36 37 // Make sure the popin is displayed 38 if (!$.getCookie('gdpr-allowance') && $('.gdpr-banner').length === 0) { 39 $('.gdpr-popin').show(); 40 } 41 42 // Inline shortcodes 43 $('.gdpr-buttons-inline').on('click', '.gdpr-popin-customise-button', function () { 44 $('.gdpr-popin-inline').show(); 45 }); 46 47 $('.gdpr-popin-inline').on('click', '.gdpr-popin-back-button', function () { 48 $('.gdpr-popin-inline').hide(); 49 }); 50 51})(jQuery);
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.