1(function($) 2{ 3 $(document).ready(on_ready); 4 $(window).on('scroll', on_scroll); 5 6 function on_ready() 7 { 8 $(".animatedBox").waypoint(function () 9 { 10 if ($(this.element).data('animationin') && !$(this.element).hasClass('skip-waypoint')) 11 { 12 $(this.element).addClass('animated '+$(this.element).data('animationin')); 13 } 14 }, { 15 offset: '80%' 16 }); 17 18 /* menù */ 19 $('#menu-primary-mobile').on('show.bs.collapse', function () { 20 $("#hamburger-menu-primary-mobile").addClass('is-active'); 21 $("#menu-primary-mobile-back").addClass('active'); 22 }) 23 24 $('#menu-primary-mobile').on('hide.bs.collapse', function () { 25 $("#hamburger-menu-primary-mobile").removeClass('is-active'); 26 $("#menu-primary-mobile-back").removeClass('active'); 27 }) 28 $("#menu-primary-mobile-back").click(function() 29 { 30 $('#menu-primary-mobile').collapse('hide') 31 }) 32 $('.dropdown').on('show.bs.dropdown', function(e){ 33 $(this).find('.dropdown-menu').first().stop(true, true).slideDown(300); 34 }); 35 36 $('.dropdown').on('hide.bs.dropdown', function(e){ 37 $(this).find('.dropdown-menu').first().stop(true, true).slideUp(300); 38 }); 39 40 41 42 43 $('#back-to-top').click(function (event) { 44 event.preventDefault(); 45 $("body").trigger('smoothscroll',['body']); 46 }); 47 48 49 50 /*remove attribute from link*/ 51 $("a:not(.link-syroop)").removeAttr('title') 52 53 on_scroll(null); 54 }; 55 56 57 function on_scroll(event) 58 { 59 /*main menu affix*/ 60 var scrollValue = $(window).scrollTop(); 61 if (scrollValue > 175) { 62 $('.main-menu').addClass('affix'); 63 } else{ 64 $('.main-menu').removeClass('affix'); 65 } 66 67 /* scroll to top */ 68 if ($(this).scrollTop() > 100) { 69 $('#back-to-top').addClass('active'); 70 } else { 71 $('#back-to-top').removeClass('active'); 72 } 73 } 74 75})(jQuery);
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.