1(function ($, Drupal, drupalSettings) { 2 "use strict"; 3 Drupal.behaviors.taboolaBodyScript = { 4 attach: function (context, settings) { 5 window._taboola = window._taboola || []; 6 if (!drupalSettings.ads_widget || !drupalSettings.ads_widget.configs) { 7 return; 8 } 9 const mediaQuery = window.matchMedia('(max-width: 960px)'); 10 const isMobile = mediaQuery.matches; 11 $.each(drupalSettings.ads_widget.configs, function (key, config) { 12 const containerTabola = isMobile 13 ? config.mobile_container 14 : config.desktop_container; 15 16 17 _taboola.push({ 18 mode: config.mode, 19 container: containerTabola, 20 placement: config.placement, 21 target_type: config.target_type, 22 }); 23 }); 24 _taboola.push({ flush: true }); 25 }, 26 }; 27})(jQuery, Drupal, 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.