1(function ($, Drupal) { 2 3 'use strict'; 4 5 Drupal.behaviors.initColorbox = { 6 attach: function (context, settings) { 7 if (!$.isFunction($.colorbox) || typeof settings.colorbox === 'undefined') { 8 return; 9 } 10 11 if (settings.colorbox.mobiledetect && window.matchMedia) { 12 // Disable Colorbox for small screens. 13 var mq = window.matchMedia('(max-device-width: ' + settings.colorbox.mobiledevicewidth + ')'); 14 if (mq.matches) { 15 return; 16 } 17 } 18 19 settings.colorbox.rel = function () { 20 return $(this).data('colorbox-gallery') 21 }; 22 23 $('.colorbox', context) 24 .once('init-colorbox') 25 .colorbox(settings.colorbox); 26 } 27 }; 28 29})(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.