1(function() { 2 var $albumV, $body, $win, SCREEN_DESKTOP, SCREEN_TABLET, generateMosaicGallery, setAlbumHeight; 3 4 SCREEN_TABLET = 768; 5 6 SCREEN_DESKTOP = 1199; 7 8 $body = $('body'); 9 10 $win = $(window); 11 12 $albumV = $('.album-vertical'); 13 14 generateMosaicGallery = function() { 15 return $('.album-mosaic').each(function(_, el) { 16 var fldGrd; 17 return fldGrd = new FldGrd(el, { 18 rowHeight: 450, 19 rowHeightOrphan: function() { 20 return 450; 21 }, 22 itemSelector: '.album-mosaic-item', 23 objSelector: 'img' 24 }); 25 }); 26 }; 27 28 setAlbumHeight = function() { 29 if ($win.width() >= SCREEN_TABLET && $albumV.length) { 30 return $('.row', $albumV).height($win.height() - $albumV.offset().top); 31 } 32 }; 33 34 $(function() { 35 var container, ps; 36 container = document.querySelector('#ps'); 37 if (container) { 38 ps = new PerfectScrollbar(container); 39 } 40 $('.js-product-files-toggle').on('click', function() { 41 $(this).closest('.js-product-files').toggleClass('is-open'); 42 return false; 43 }); 44 $('[data-responsive-nav-toggle-btn]').on('click', function(e) { 45 e.preventDefault(); 46 return $body.toggleClass('responsive-nav--open'); 47 }); 48 if ($win.width() >= SCREEN_TABLET && $body.height() > $win.height() * 2) { 49 $(window).on('scroll', function() { 50 if ($(window).scrollTop() > $(window).height()) { 51 return $('.btt').fadeIn("300"); 52 } else { 53 return $('.btt').fadeOut("300"); 54 } 55 }); 56 } 57 if ($('.album-mosaic').length > 0) { 58 $('.loader').hide(); 59 utils.detectIEEdge(); 60 $('.album-mosaic').animate({ 61 opacity: 1 62 }, 500); 63 generateMosaicGallery(); 64 } 65 if ($(".contact-page").length > 0) { 66 $('textarea.js-auto-size').textareaAutoSize(); 67 $("#contact_form").on("submit", function(e) { 68 window.contactForm.submit(); 69 return e.preventDefault(); 70 }); 71 } 72 return setAlbumHeight(); 73 }); 74 75 $(window).resize(function() { 76 if ($('.album-mosaic').length > 0) { 77 generateMosaicGallery(); 78 } 79 if ($win.width() >= SCREEN_TABLET && $albumV.length) { 80 $('.row', $albumV).css('min-height', $win.height() - ($albumV.offset().top)); 81 } else { 82 $('.row').css('min-height', '0'); 83 } 84 return setAlbumHeight(); 85 }); 86 87 $(window).on("load", function() { 88 if ($('.album-mosaic').length > 0) { 89 return generateMosaicGallery(); 90 } 91 }); 92 93}).call(this);
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.