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