1function footnotePopup(selector) { 2 3 var $abbr = jQuery(selector); 4 if($abbr.length > 0) 5 { 6 console.log(mobileDetection.any()); 7 if(mobileDetection.any()) { 8 9 jQuery(document).on('click', selector, function(){ 10 event.preventDefault(); 11 let title = $(this).data('title'); 12 let content = $(this).data('content'); 13 $('#abbr-title').html(title); 14 $('#abbr-content').html(content); 15 jQuery("#abbr-panel").addClass('open'); 16 return false; 17 }); 18 19 jQuery(document).on('click', '.abbr-close', function(){ 20 jQuery("#abbr-panel").removeClass('open'); 21 return false; 22 }); 23 } else { 24 25 var abbr = text = title = null; 26 for(let i = 0; i < $abbr.length; i++) { 27 abbr = $abbr.eq(i); 28 29 abbr.attr('data-trigger', 'focus'); 30 abbr.attr('data-toggle', 'popover'); 31 abbr.attr('data-placement', 'top'); 32 abbr.attr('data-container', '#page-wrapper'); 33 abbr.attr('tabindex', 0); 34 } 35 36 jQuery(selector).popover(); 37 } 38 } 39}; 40 41$(function() 42{ 43 if(typeof(mobileDetection.any) === 'function') 44 { 45 if(mobileDetection.any()) 46 { 47 $('.fotorama').each(function() { 48 $(this).on('fotorama:fullscreenenter', function(e, fotorama) { 49 fotorama.setOptions({ 50 nav: false, 51 captions: false, 52 maxheight: '100%', 53 }); 54 }); 55 56 $(this).on('fotorama:fullscreenexit', function(e, fotorama) { 57 fotorama.setOptions({ 58 nav: 'thumbs', 59 captions: true, 60 maxheight : '600', 61 }); 62 }); 63 }); 64 } 65 } 66 footnotePopup('.abbr'); 67});
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.