1(function ($, Drupal, drupalSettings) { 2 3 "use strict"; 4 5 Drupal.behaviors.magnific_popup_video_embed_field = { 6 attach: function (context) { 7 $(once("mfp-processed", ".mfp-video-embed-first-item, .mfp-video-embed-all-items", context)).each(function () { 8 var gallery_items = []; 9 10 $(this).find(".mfp-video-embed-popup").each(function () { 11 gallery_items.push({ 12 src: 13 '<div class="mfp-embedded-video-popup">'+ 14 $(this).data("mfp-video-embed") + 15 '</div>' 16 }); 17 }); 18 19 $(this).magnificPopup({ 20 items: gallery_items, 21 gallery: { 22 enabled: true 23 }, 24 type: 'inline' 25 }); 26 }); 27 28 $(".mfp-video-embed-separate-items", context).each(function () { 29 $(once("mfp-processed",".mfp-video-embed-popup", context)).click(function (e) { 30 // Stop linking to video URL instead of showing popup. 31 // See video-embed-field.colorbox.js in video_embed_field for more. 32 e.preventDefault(); 33 34 $.magnificPopup.open({ 35 items: { 36 src: 37 '<div class="mfp-embedded-video-popup">'+ 38 $(this).data("mfp-video-embed") + 39 '</div>' 40 }, 41 type: 'inline' 42 }); 43 }); 44 }); 45 } 46 }; 47 48})(jQuery, Drupal, drupalSettings);
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.