1$.extend(true, $.magnificPopup.defaults, { 2 iframe: { 3 markup: '<div class="mfp-iframe-scaler">'+ 4 '<div class="mfp-close"></div>'+ 5 '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>'+ 6 '</div>', // HTML markup of popup, `mfp-close` will be replaced by the close button 7 8 patterns: { 9 youtube_playlist: { 10 index: 'youtube.com/playlist?list=', 11 id: 'list=', 12 src: '//www.youtube.com/embed/videoseries?list=%id%&autoplay=1' 13 }, 14 youtube: { 15 index: 'youtube.com/watch?v=', 16 id: 'v=', 17 src: '//www.youtube.com/embed/%id%?autoplay=1' 18 } 19 } 20 } 21}); 22 23$(document).ready(function(){ 24 $('.popup-iframe').magnificPopup({ 25 iframe: { 26 markup: '<div class="mfp-iframe-scaler">'+ 27 '<div class="mfp-close"></div>'+ 28 '<div class="mfp-title"></div>'+ 29 '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>'+ 30 '</div>', // HTML markup of popup, `mfp-close` will be replaced by the close button 31 titleSrc: 'title', 32 }, 33 callbacks: { 34 markupParse: function(template, values, item) { 35 values.title = item.el.attr('title'); 36 } 37 }, 38 39 alignTop: true, 40 disableOn: 700, 41 type: 'iframe', 42 mainClass: 'mfp-fade', 43 removalDelay: 160, 44 preloader: false, 45 fixedContentPos: false 46 }); 47});
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.