1jQuery(document).ready(function($){ 2$(".testimonials-layout-1").find("#home-page-testimonials").owlCarousel({ 3 loop: true, 4 margin: 30, 5 autoplay: true, 6 nav: true, 7 dots: true, 8 autoplaySpeed: 1000, 9 pagination: true, 10 navText: ['‹', '›'], 11 navContainer: ".testimonials-control .navi", 12 dotsContainer: ".testimonials-control .dots", 13 responsive: { 14 0: { 15 items: 1 16 }, 17 768: { 18 items: 1 19 }, 20 1170: { 21 items: 1, 22 } 23 } 24 }); 25// makes the parallax elements 26function parallaxIt() { 27 // create variables 28 var $fwindow = $(window) 29 var scrollTop = window.pageYOffset || document.documentElement.scrollTop; 30 31 var $contents = []; 32 var $backgrounds = []; 33 34 // for each of content parallax element 35 $('.parallax-section').each(function(index, e) { 36 var $contentObj = $(this); 37 38 $contentObj.__speed = 3; 39 $contentObj.__fgOffset = $contentObj.offset().top; 40 $contents.push($contentObj); 41 }); 42 43 // for each of background parallax element 44 $('.parallax-section').each(function() { 45 var $backgroundObj = $(this); 46 47 $backgroundObj.__speed = 6; 48 $backgroundObj.__fgOffset = $backgroundObj.offset().top; 49 $backgrounds.push($backgroundObj); 50 }); 51 52 // update positions 53 $fwindow.on('scroll resize', function() { 54 scrollTop = window.pageYOffset || document.documentElement.scrollTop; 55 56/* $contents.forEach(function($contentObj) { 57 var yPos = $contentObj.__fgOffset - scrollTop / $contentObj.__speed; 58 59 $contentObj.css('top', yPos); 60 }) */ 61 62 63 if ($(window).width() > 767) { 64 65 $backgrounds.forEach(function($backgroundObj) { 66 var yPos = -((scrollTop - $backgroundObj.__fgOffset) / $backgroundObj.__speed); 67 68 $backgroundObj.css({ 69 backgroundPosition: '45% ' + yPos + 'px' 70 }); 71 }); 72 73 } 74 75 }); 76 77 // triggers winodw scroll for refresh 78 $fwindow.trigger('scroll'); 79}; 80 81 parallaxIt(); 82 83 var yourNavigation = $("nav.main-menu"); 84 stickyDiv = "fixed-top"; 85 Header = $('.inner-page header#masthead'); 86 yourHeader = $('header#masthead').height(); 87 88$(window).scroll(function() { 89 if ($(window).width() > 1000) { 90 91 if( $(this).scrollTop() > yourHeader ) { 92 yourNavigation.addClass(stickyDiv); 93 Header.css('z-index', 100); 94 } else { 95 yourNavigation.removeClass(stickyDiv); 96 Header.css('z-index', 0); 97 } 98 99 } 100 101}); 102 103 jQuery('#nav-slide-right ul.sub-menu').parents('li').append("<span class='rslide-li-dropdown-arrow'><i class='fa fa-caret-down' aria-hidden='true'></i></span>"); 104 105 jQuery('.rslide-li-dropdown-arrow').on('click', function(e){ 106 107 jQuery(this).closest('li').find('.sub-menu').first().slideToggle(); 108 return false; 109 110 }); 111 112 113}); 114 115 116 function closeNavR() { 117 jQuery("#nav-slide-right").css('visibility',"hidden"); 118 jQuery("#nav-slide-right").removeClass('nav-open'); 119 /* document.getElementById("mySidenavR").style.width = "0";*/ 120 jQuery("#nav-slide-right").css('width',"0"); 121 jQuery('.close-nav').hide(); 122 jQuery('.open-nav').show(); 123 124 } 125 126 function openNavR() { 127 jQuery("#nav-slide-right").addClass('nav-open'); 128 jQuery("#nav-slide-right").css('width',"250px"); 129 jQuery("#nav-slide-right").css('visibility',"visible"); 130 jQuery('.open-nav').hide(); 131 jQuery('.close-nav').show(); 132 } 133 134 135 136 function openNav() { 137 document.getElementById("mySidenav").style.width = "250px"; 138 } 139 140 function closeNav() { 141 document.getElementById("mySidenav").style.width = "0"; 142 }
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.