https://www.esl-languages.com/modules/contrib/civicccookiecontrol/js/cookieControlSettings.js?tlvj14
1(function ($,Drupal, once, drupalSettings) { 2 "use strict"; 3 4 Drupal.behaviors.cookieControlWidget = { 5 attach: function (context, setting) { 6 7 // Can not use 'document' directly. 8 if (!once('cookieControlWidget', 'html').length) { 9 10 // Early return avoid changing the indentation for the rest of 11 // the code. 12 return; 13 } 14 15 $(document, context).each(function () { 16 17 try { 18 var config = JSON.parse(drupalSettings.civiccookiecontrol); 19 if (config.debug) { 20 console.log(config); 21 } 22 23 config.onLoad = ccEval(config.onLoad); 24 if (config.optionalCookies != null) { 25 config.optionalCookies.forEach( 26 function (optCookie) { 27 optCookie.onAccept = ccEval(optCookie.onAccept); 28 optCookie.onRevoke = ccEval(optCookie.onRevoke); 29 /*if (optCookie.thirdPartyCookies != null) { 30 optCookie.thirdPartyCookies = JSON.parse(optCookie.thirdPartyCookies); 31 }*/ 32 } 33 ); 34 } else { 35 if (config.iabCMP === false) { 36 console.error("No Cookie Categories added in Cookie Control module. You need to add at least one Cookie Category for the Cookie Control module to properly operate."); 37 } 38 } 39 CookieControl.load(config); 40 } catch (e) { 41 console.log(e.message.toString()); 42 } 43 }); 44 function ccEval(cc) 45 { 46 try { 47 return new Function('return ' + cc)(); 48 } catch (e) { 49 console.log(e); 50 } 51 } 52 53 function ccFunc(cc) 54 { 55 return new Function(cc)(); 56 } 57 } 58 } 59})(jQuery,Drupal, once, drupalSettings);
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.