1(function ($) { 2 "use strict"; 3 /** 4 * Enable the colorbox inline functionality. 5 */ 6 Drupal.behaviors.colorboxInline = { 7 attach: function (context, drupalSettings) { 8 $('[data-colorbox-inline]', context).once('colorbox-inline').each(function () { 9 var $link = $(this), 10 data = $link.data(), 11 settings = $.extend({}, drupalSettings.colorbox, { 12 href: false, 13 inline: true 14 }, { 15 className: data.class, 16 href: data.colorboxInline, 17 width: data.width, 18 height: data.height, 19 rel: data.rel, 20 open: false 21 }); 22 23 // Hide the colorbox source after if it was hidden before use. 24 if (!$(settings.href).filter(':visible')[0]) { 25 settings.onClosed = function($link) { 26 $($link.cache.href).hide(); 27 } 28 } 29 30 $link.colorbox(settings); 31 $link.click(function () { 32 $($(this).data('colorboxInline')).show(); 33 $(this).colorbox(); 34 }); 35 }); 36 } 37 }; 38})(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.