1/** 2 * Hashone Custom JS 3 * 4 * @package HashOne 5 * 6 * Distributed under the MIT license - http://opensource.org/licenses/MIT 7 */ 8 9jQuery(function($){ 10 11 if($('#hs-bx-slider .hs-slide').length > 0){ 12 $('#hs-bx-slider').bxSlider({ 13 'pager': false, 14 'auto' : true, 15 'mode' : 'fade', 16 'pause' : 6000, 17 'onSliderLoad': function(){ 18 $('.slide-banner-overlay').remove(); 19 } 20 }); 21 } 22 23 24 $('.hs-testimonial-slider').bxSlider({ 25 'controls' : false, 26 'pager': true, 27 'auto' : true, 28 'pause' : 5000, 29 'mode' : 'fade' 30 }); 31 32 $(window).scroll(function () { 33 34 if ($(this).scrollTop() > 100) { 35 $('.page-template-home-template #hs-masthead, .home.blog #hs-masthead') 36 .addClass('animated fadeInDown') 37 .fadeIn(); 38 39 } else { 40 $('#hs-masthead') 41 .removeClass('animated fadeInDown'); 42 } 43 44 }); 45 46 $(".hs_client_logo_slider").owlCarousel({ 47 autoPlay: 4000, 48 items : 5, 49 itemsDesktop : [1199,3], 50 itemsDesktopSmall : [979,3], 51 pagination : false 52 }); 53 54 var first_class = $('.hs-portfolio-cat-name:first').data('filter'); 55 $('.hs-portfolio-cat-name:first').addClass('active'); 56 57 var $container = $('.hs-portfolio-posts').imagesLoaded( function() { 58 $container.isotope({ 59 itemSelector: '.hs-portfolio', 60 layoutMode: 'fitRows', 61 filter: first_class, 62 percentPosition: true, 63 }); 64 }); 65 66 $('.hs-portfolio-cat-name-list').on( 'click', '.hs-portfolio-cat-name', function() { 67 var filterValue = $(this).attr('data-filter'); 68 $container.isotope({ filter: filterValue }); 69 $('.hs-portfolio-cat-name').removeClass('active'); 70 $(this).addClass('active'); 71 }); 72 73 $('.hs-portfolio-image').nivoLightbox(); 74 75 $('body').imagesLoaded( { background: '.hs-section' }, function() { 76 $.stellar({ 77 horizontalScrolling: false, 78 verticalOffset: 40, 79 80 }); 81 }); 82 83 $(window).resize(function() { 84 $.stellar('refresh'); 85 }); 86 87 wow = new WOW({ 88 offset: 100, // default 89 mobile: false, // default 90 }) 91 wow.init(); 92 93 94 95 $('.odometer').waypoint(function() { 96 setTimeout(function() { 97 $('.odometer1').html($('.odometer1').data('count')); 98 }, 500); 99 setTimeout(function() { 100 $('.odometer2').html($('.odometer2').data('count')); 101 }, 1000); 102 setTimeout(function() { 103 $('.odometer3').html($('.odometer3').data('count')); 104 }, 1500); 105 setTimeout(function() { 106 $('.odometer4').html($('.odometer4').data('count')); 107 }, 2000); 108 }, { 109 offset: 800, 110 triggerOnce: true 111 }); 112 113 $('.hs-progress-bar-length').waypoint(function() { 114 $(this.element).css({ 115 width: $(this.element).attr('data-width')+'%', 116 visibility : 'visible' 117 }); 118 }, { 119 offset: '90%', 120 triggerOnce: true 121 }); 122 123 $(window).scroll(function(){ 124 if($(window).scrollTop() > 300){ 125 $('#hs-back-top').removeClass('bounceInRight bounceOutRight hs-hide').addClass('bounceInRight'); 126 }else{ 127 $('#hs-back-top').removeClass('bounceInRight bounceOutRight').addClass('bounceOutRight'); 128 } 129 }); 130 131 $('#hs-back-top').click(function(){ 132 $('html,body').animate({scrollTop:0},800); 133 }); 134 135 $('.hs-toggle-menu').click(function(){ 136 $('.hs-main-navigation .hs-menu').slideToggle(); 137 }); 138 139 $('.hs-menu').onePageNav({ 140 currentClass: 'current', 141 changeHash: false, 142 scrollSpeed: 750, 143 scrollThreshold: 0.1, 144 scrollOffset: 82 145 }); 146 147 // *only* if we have anchor on the url 148 if(window.location.hash) { 149 $('html, body').animate({ 150 scrollTop: $(window.location.hash).offset().top - 82 151 }, 1000 ); 152 } 153 154});
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.