1/** 2 * Jonny 3 * https://www.21tools.it 4 * 5 */ 6 7(function($) { 8 if($('.jonny .countdown').length > 0) { 9 $('.jonny .countdown').countdown($('.jonny .countdown').data('countdown'), function(e) { 10 $(this).find('.days > div').html(e.strftime('%D')); 11 $(this).find('.hours > div').html(e.strftime('%H')); 12 $(this).find('.minutes > div').html(e.strftime('%M')); 13 $(this).find('.seconds > div').html(e.strftime('%S')); 14 }); 15 } 16 17 if($('.jonny .infos > .videoCover').length > 0) { 18 if(Modernizr.touchevents) { 19 $('.jonny .infos > .videoCover').hide(); 20 } else { 21 $(window).resize(function() { 22 resizeBackgroundVideo(); 23 }); 24 25 setTimeout(function() { 26 resizeBackgroundVideo(); 27 }, 700); 28 } 29 } 30 31 $('.gallery-btn').each(function() { 32 var galleryId = $(this).data('galleryid'); 33 $('#' + galleryId).lightGallery(); 34 35 $(this).on('click', function(e){ 36 e.preventDefault(); 37 $('#' + galleryId).find('> a:first-child')[0].click(); 38 }); 39 }); 40 41 if($('.share-btn').length > 0) { 42 $('.share-btn').popover({ 43 html: true, 44 placement: 'top', 45 content: $('#share-plugin-content') 46 }); 47 } 48}(jQuery)); 49 50function resizeBackgroundVideo() { 51 var videoCover = jQuery('.videoCover'); 52 var video = jQuery('.videoCover iframe'); 53 54 var aspectRatio = videoCover.data('width') / videoCover.data('height'); 55 var videoH = video.outerHeight(); 56 var newW = videoH*aspectRatio; 57 var halfNewW = newW/2; 58 59 video.css({"width":newW+"px","left":"50%","margin-left":"-"+halfNewW+"px"}); 60}
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.