1(function ($, undefined) { 2 'use strict'; 3 4 /** 5 * << accessiBe widget behaviors >> 6 * 7 * @type {Drupal~behavior} 8 * 9 * @prop {Drupal~behaviorAttach} attach 10 * Attach the accessiBe widget. 11 * 12 */ 13 Drupal.behaviors.accessibe_widget = { 14 attach: function (context, settings) { 15 once('accessibe-widget', 'body', context).forEach(() => { 16 const 17 widget_config = settings.accessibe_widget.widget || {}, 18 do_debug = settings.accessibe_widget.debug, 19 widget_defined = typeof acsbJS !== 'undefined' 20 ; 21 if (widget_defined) { 22 // Note that the init() method does not return anything. 23 acsbJS.init(widget_config); 24 console.info('accessiBe accessWidget has been loaded'); 25 } 26 else { 27 console.warn('accessieBe accessWidget library not found'); 28 } 29 if (do_debug) { 30 console.groupCollapsed('cwb_accessibe debugging info'); 31 console.debug('widget configuration', widget_config); 32 if (widget_defined) { 33 console.trace('acsbJS', acsbJS); 34 } 35 console.groupEnd() 36 } 37 }); 38 } 39 } 40})(jQuery); 41;
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.