1(function ($, Drupal) { 2 Drupal.behaviors.wb_dtm = { 3 attach: function (context, settings) { 4 var interval = setInterval(function(){ 5 var isDone = true; 6 jQuery( document ).ready(function() { 7 customLinks = drupalSettings.custom_links; 8 for (var key in customLinks) { 9 for (var subkey in customLinks[key]) { 10 $(key).attr(customLinks[key][subkey][0], customLinks[key][subkey][1]); 11 if ($(key).html() === undefined) { 12 isDone = false; 13 } 14 } 15 } 16 }); 17 18 if (isDone) { 19 clearInterval(interval); // Clear the interval for next update 20 interval = null; 21 } 22 23 }, 1000); 24 25 } 26 }; 27})(jQuery, Drupal);
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.