1var translating = false; 2var autoplaying = true; 3 4 5// Folding header 6$(window).scroll(function (event) { 7 8 var scroll = $(window).scrollTop(); 9 10 if (scroll > 150) 11 { 12 $('header').addClass('active'); 13 } 14 else 15 { 16 $('header').removeClass('active'); 17 } 18 19}); 20 21 22// Mobile menu 23$('#trigger').click(function(){ 24 $('body').toggleClass('slide-in'); 25}); 26 27// top level 28$('#my-menu > ul > li').each(function(){ 29 30 // has a list inside 31 if ($('ul', this).length) 32 { 33 $(this).append('<a class="menu-toggle">></a>'); 34 $('ul', this).prepend('<li><a class="menu-toggle"><</a></li>'); 35 } 36 37}); 38 39// 40$('.menu-toggle').on('click', function(){ 41 $('#my-menu > ul').toggleClass('out'); 42}); 43 44 45// 46$('.scroll a').click(function(e) { 47 48 e.preventDefault(); 49 50 // allow for header 51 var offset = $('header.header').outerHeight(); 52 53 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { 54 var target = $(this.hash); 55 target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); 56 if (target.length) { 57 $('html, body').animate({ 58 scrollTop: target.offset().top - offset 59 }, 1000); 60 return false; 61 } 62 } 63}); 64 65 66//
67var owl = $("#home-carousel") 68owl.owlCarousel({ 69 items: 1, 70 loop: true, 71 animateIn: 'fadeIn', 72 mouseDrag: false, 73 autoplay: true, 74 autoplayTimeout: 6000, 75 76 onInitialize: function() { }, 77 onInitialized: function() { 78 79 80 $('.hero-foot h1, .hero-foot h4, .hero-foot p').addClass('animated fadeInUp').one($.support.animation.end, function(){ 81 $(this).removeClass('animated fadeInUp'); 82 }); 83 84 }, 85 onChange: function(e) { }, 86 onChanged: function(e) { }, 87 onTranslate: function(e) { 88 89 translating = true; 90 91 $('.hero-foot h1, .hero-foot h4, .hero-foot p').addClass('animated fadeInUp').one($.support.animation.end, function(){ 92 $(this).removeClass('animated fadeInUp'); 93 }); 94 95 }, 96 onTranslated: function(e) { 97 translating = false; 98 } 99}); 100 101$('button.owl-dot').click(function(e) { 102 103 if (autoplaying) 104 { 105 autoplaying = false; 106 owl.trigger('stop.owl.autoplay'); 107 } 108 109 // wait until its finished before allowing another call 110 if (translating) 111 { 112 e.stopPropagation(); 113 } 114 115}); 116 117// 118$(".gallery-carousel").owlCarousel({ 119 items: 1, 120 loop: true, 121 dots: false, 122 nav: true, 123 mouseDrag: true, 124 autoplay: true, 125 autoplayTimeout: 6000 126});
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.