https://www.bevcoservice.com/wp-content/themes/bevco/js/main.js?ver=0e68165610ae4f911ba56c11ee36a8da
1(function ($, window, document) { 2 "use strict"; 3 4 $(function () { 5 6 //Home Slider 7 $('.home-slider').bxSlider({ 8 pager: false, 9 auto: true, 10 pause: 6000, 11 adaptiveHeight: true, 12 autoHover: true, 13 controls: true, 14 preloadImages: 'visible', 15 nextSelector: '#slider-next', 16 prevSelector: '#slider-prev', 17 nextText: '<i class="fa fa-chevron-right" aria-hidden="true">', 18 prevText: '<i class="fa fa-chevron-left" aria-hidden="true">', 19 /*onSlideNext: function () { 20 $('.slide-content .content').addClass('animated fadeInUpShort'); 21 }, 22 onSlidePrev: function () { 23 $('.slide-content .content').removeClass('animated fadeInUpShort'); 24 }*/ 25 }); 26 27 //Resize Head On Scroll 28 function init() { 29 window.addEventListener('scroll', function(e){ 30 var distanceY = window.pageYOffset || document.documentElement.scrollTop, 31 shrinkOn = 250, 32 header = document.querySelector("header"); 33 if (distanceY > shrinkOn) { 34 classie.add(header,"smaller"); 35 } else { 36 if (classie.has(header,"smaller")) { 37 classie.remove(header,"smaller"); 38 } 39 } 40 }); 41 //bindSelectList(); 42 } 43 window.onload = init(); 44 //End Resize Head On Scroll 45 46 //Contrast and Font Size Toggles 47 $(document).ready(function() { 48 $('.contrast').click(function() { 49 $('body').toggleClass('site-wide-contrast'); 50 $('.contrast').toggleClass('active-toggle'); 51 }); 52 $('.font-size').click(function() { 53 $('body').toggleClass('site-wide-font-size'); 54 $('.font-size').toggleClass('active-toggle'); 55 }); 56 }); 57 58 /*Accordion Menu 59 $('#cssmenu > ul > li > a').click(function() { 60 61 var checkElement = $(this).next(); 62 63 $('#cssmenu li').removeClass('active'); 64 $(this).closest('li').addClass('active'); 65 66 if((checkElement.is('ul')) && (checkElement.is(':visible'))) { 67 $(this).closest('li').removeClass('active'); 68 checkElement.slideUp('normal'); 69 } 70 71 if((checkElement.is('ul')) && (!checkElement.is(':visible'))) { 72 $('#cssmenu ul ul:visible').slideUp('normal'); 73 checkElement.slideDown('normal'); 74 } 75 76 if (checkElement.is('ul')) { 77 return false; 78 } else { 79 return true; 80 } 81 }); 82 //End Accordion Menu*/ 83 84 //*BACK TO TOP ARROW*// 85 $(document).ready(function($){ 86 // browser window scroll (in pixels) after which the "back to top" link is shown 87 var offset = 300, 88 //browser window scroll (in pixels) after which the "back to top" link opacity is reduced 89 offset_opacity = 1200, 90 //duration of the top scrolling animation (in ms) 91 scroll_top_duration = 700, 92 //grab the "back to top" link 93 $back_to_top = $('.cd-top'); 94 95 //hide or show the "back to top" link 96 $(window).scroll(function(){ 97 ( $(this).scrollTop() > offset ) ? $back_to_top.addClass('cd-is-visible') : $back_to_top.removeClass('cd-is-visible cd-fade-out'); 98 if( $(this).scrollTop() > offset_opacity ) { 99 $back_to_top.addClass('cd-fade-out'); 100 } 101 }); 102 //smooth scroll to top 103 $back_to_top.on('click', function(event){ 104 event.preventDefault(); 105 $('body,html').animate({ 106 scrollTop: 0 , 107 }, scroll_top_duration 108 ); 109 }); 110 }); 111 //*END BACK TO TOP ARROW*// 112 113 //Mobile Menu Open & Close 114 $(document).ready(function() { 115 $('.menu-open').click(function() { 116 $('.sidenav').addClass('active'); 117 }); 118 $('.menu-close').click(function() { 119 $('.sidenav').removeClass('active'); 120 }); 121 }); 122 123 }); 124}) 125 126(jQuery, this, this.document); // fin.
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.