1(function ($, Drupal, once) { 2 'use strict'; 3 Drupal.behaviors.meGalleryGridInit = { 4 attach: function (context, settings) { 5 $(once('me-gallery-grid-init', '.me-gallery-grid', context)).each(function () { 6 if ($(this).hasClass('zoom-on')) { 7 var $articles = $(this).find('.field__item.grid-item article'); 8 var articleId, colorboxLink; 9 $articles.each(function() { 10 var $itemDesktop = $(this).find('.me-gallery-image-item.me-im-desktop-image'); 11 var $itemMobile = $(this).find('.me-gallery-image-item.me-im-mobile-image'); 12 articleId = $(this).data('media-id'); 13 colorboxLink = '<a data-colorbox-inline=".colorbox-block-' + articleId + '"></a>'; 14 $itemDesktop.children().wrapAll(colorboxLink); 15 $itemMobile.children().wrapAll(colorboxLink); 16 }); 17 } 18 }); 19 } 20 }; 21})(jQuery, Drupal, once)
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.