1(function ($) { 2 3// Check that shadowbox library is available 4if (typeof Shadowbox === 'undefined') return; 5 6Drupal.behaviors.shadowbox = { 7 attach: function(context, settings) { 8 Shadowbox.init(Drupal.settings.shadowbox); 9 if (settings.shadowbox.auto_enable_all_images == 1) { 10 $("a[href$='.jpg'], a[href$='.png'], a[href$='.gif'], a[href$='.jpeg'], a[href$='.bmp'], a[href$='.JPG'], a[href$='.PNG'], a[href$='.GIF'], a[href$='.JPEG'], a[href$='.BMP']").each(function() { 11 if ($(this).attr('rel') == '') { 12 if (settings.shadowbox.auto_gallery == 1) { 13 $(this).attr('rel', 'shadowbox[gallery]'); 14 } 15 else { 16 $(this).attr('rel', 'shadowbox'); 17 } 18 } 19 }); 20 } 21 Shadowbox.clearCache(); 22 Shadowbox.setup(); 23 } 24}; 25 26})(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.