1(function($) { 2 $(document).ready(function(){ 3 $('.menu-toggle').on('click', function() { 4 $(this).toggleClass('active'); 5 $('.nav-primary, .mobile-header-area').stop().slideToggle(300); 6 $('.site-header').toggleClass('active'); 7 }); 8 9 $('a[href="#top"]').click(function (e) { 10 e.preventDefault(); 11 $("html, body").animate({scrollTop: 0}, 1000); 12 }); 13 14 var resizeTimer, ct, winWidth = $(window).width(); 15 if (winWidth >= 1024) { 16 $('.vimeo').colorbox({speed:500, opacity:0.5, iframe:true, innerWidth:'80%', innerHeight:'80%', maxWidth:'80%', maxHeight:'80%'}); 17 $('a.youtube, .youtube a').colorbox({speed:500, opacity:0.5, iframe:true, innerWidth:'80%', innerHeight:'80%', maxWidth:'80%', maxHeight:'80%'}); 18 } if (winWidth < 1024) { 19 $('.vimeo').colorbox({transition:'fade', speed:500, opacity:0.5, iframe:true, innerWidth:'80%', innerHeight:'50%', maxWidth:'80%', maxHeight:'50%'}); 20 $('a.youtube, .youtube a').colorbox({transition:'fade', speed:500, opacity:0.5, iframe:true, innerWidth:'80%', innerHeight:'50%', maxWidth:'80%', maxHeight:'50%'}); 21 } // etc... 22 23 $('.menu-item-has-children').append('<button class="sub-menu-toggle"><i class="fa-solid fa-angle-down"></i></button>'); 24 if (winWidth <= 1112) { 25 $('.sub-menu').hide(); 26 } 27 $('.sub-menu-toggle').on('click', function(e) { 28 $(this).siblings('.sub-menu').slideToggle(300); 29 }); 30 31 32 33 // Optional: Close Colorbox programmatically 34 $(document).on('click', '.close-popup', function() { 35 $.colorbox.close(); 36 }); 37 $('.ready-link .fl-col').each(function () { 38 var $col = $(this); 39 var link = $col.find('a').first().attr('href'); 40 41 if (link) { 42 $col.css('cursor', 'pointer'); 43 44 $col.on('click', function (e) { 45 // Don't trigger if an actual link inside was clicked 46 if ($(e.target).closest('a').length) { 47 return; 48 } 49 50 window.location.href = link; 51 }); 52 } 53 }); 54 }); 55})(jQuery); 56 57 58 59 60 61 62
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.