1$(document).ready(function($) { 2//Mobile Nav 3 4 5 $('.nav-mobile ul').hide(); 6 7 $('ul.button-menu').show(); 8 9 $('ul.button-menu').on('click', function(){ 10 $('.nav-mobile ul.nav-mobile-menu').toggle(); 11 }); 12 13 $('ul.nav-mobile-menu div').on('click', function(){ 14 $('.nav-mobile ul li ul li ul').toggle(); 15 $(this).next('ul li ul').toggle(); 16 }); 17 18 19 $('.all-sport-menu, .radio-menu').hide(); 20// Sport Menu 21 $('.sport-title').on('click', function(){ 22 $('.all-sport-menu').stop().toggle(); 23 $('i.sport-icon').toggleClass("fa-chevron-right").toggleClass("fa-chevron-down"); 24 }); 25 26 $('.sport-menu').mouseleave( function(){ 27 $('.all-sport-menu').hide(); 28 $('i.sport-icon').addClass("fa-chevron-right").removeClass("fa-chevron-down"); 29 }); 30 31//ADDITIONS MADE 3/31/2016 32 $('.all-sport-menu2').hide(); 33 // Sport Menu2 34 $('.sport-title2').on('click', function () { 35 $('.all-sport-menu2').stop().toggle(); 36 $('i.sport-icon2').toggleClass("fa-chevron-right2").toggleClass("fa-chevron-down2"); 37 }); 38 39 $('.sport-menu2').mouseleave(function () { 40 $('.all-sport-menu2').hide(); 41 $('i.sport-icon2').addClass("fa-chevron-right2").removeClass("fa-chevron-down2"); 42 }); 43 44 $('.all-sport-menu3').hide(); 45 // Sport Menu3 46 $('.sport-title3').on('click', function () { 47 $('.all-sport-menu3').stop().toggle(); 48 $('i.sport-icon3').toggleClass("fa-chevron-right3").toggleClass("fa-chevron-down3"); 49 }); 50 51 $('.sport-menu3').mouseleave(function () { 52 $('.all-sport-menu3').hide(); 53 $('i.sport-icon3').addClass("fa-chevron-right3").removeClass("fa-chevron-down3"); 54 }); 55 56 57// Sport Radio 58 $('.radio-title').on('click', function(){ 59 $('.radio-menu').stop().toggle(); 60 $('i.radio-icon').toggleClass("fa-chevron-right").toggleClass("fa-chevron-down"); 61 62 }); 63 64 $('.radio-title').mouseleave( function(){ 65 $('.radio-menu').hide(); 66 $('i.radio-icon').addClass("fa-chevron-right").removeClass("fa-chevron-down"); 67 }); 68 69// Accordion Standart 70 $('.accordion-standart').each(function() { 71 var accordion = $(this); 72 accordion.find('.accordion-title').on('click', function(){ 73 accordion.find('.accordion-content').stop().slideUp(); 74 $(this).parent().siblings().find('.accordion-title').removeClass('active-accordion'); 75 $(this).toggleClass('active-accordion'); 76 $(this).closest('li').find('.accordion-content').not(':animated').slideToggle(); 77 }); 78 }); 79 80// Accordion Multiple 81 $('.accordion-multiple .accordion-title').on('click', function(){ 82 $(this).toggleClass('active-accordion'); 83 $(this).closest('li').find('.accordion-content').not(':animated').slideToggle(); 84 }); 85 86//Alerts 87 $('.close').on('click', function(){ 88 $(this).parent().fadeOut(); 89 }); 90 91//Vertical Hover Tab 92 $('.tab-content div').hide(); 93 $('.tab-content div:first-child').show(); 94 $('.tab-nav li:first-child').addClass('active'); 95 96 $('.hover-tab').each(function() { 97 $(this).find('li').on('mouseenter', function() { 98 var index = $(this).parent().children().index($(this)); 99 $(this).addClass('active').siblings('.active').removeClass('active'); 100 $(this).closest('.module-content').find('.tab-content div').eq(index).show().siblings().hide(); 101 }); 102 }); 103 104//Vertical Click Tab 105 $('.tab-content div').hide(); 106 $('.tab-content div:first-child').show(); 107 $('.tab-nav li:first-child').addClass('active'); 108 109 $('.click-tab').each(function() { 110 $(this).find('li').on('click', function() { 111 var index = $(this).parent().children().index($(this)); 112 $(this).addClass('active').siblings('.active').removeClass('active'); 113 $(this).closest('.module-content').find('.tab-content div').eq(index).show().siblings().hide(); 114 }); 115 }); 116 117//StickyNav 118 function isMobile() { 119 return ( 'ontouchstart' in document.documentElement ? true : false ); 120 } 121 function StickyNav() { 122 123 if ( isMobile() ) 124 return; 125 126 var nav = $('nav'); 127 128 var sticky = nav.clone().prop('id','stickynav'); 129 sticky.html( '<div class="shell">'+ sticky.html() +'</div>' ); 130 $('body').prepend(sticky); 131 132 $(window).on('scroll', function() { 133 var scrollTop = $(this).scrollTop(); 134 135 if ( scrollTop > 60 ) { 136 $('#stickynav').addClass('animate').css( "visibility", "visible" );; 137 $('header nav').css( "visibility", "hidden" ); 138 } 139 else { 140 $('#stickynav').removeClass('animate').css( "visibility", "hidden" );; 141 $('header nav').css( "visibility", "visible" ); 142 } 143 }); 144 145 } 146 147 $(function() { 148 StickyNav(); 149 }); 150 151//Carousel 152 //$(".owl-carousel").owlCarousel(); 153 154 //var owl = $(".owl-carousel"); 155 156 //owl.owlCarousel({ 157 //transitionStyle : "fade" 158 //}); 159 160//Countdown 161 $('[data-countdown]').each(function() { 162 var $this = $(this), finalDate = $(this).data('countdown'); 163 $this.countdown(finalDate, function(event) { 164 $this.html(event.strftime( 165 '<div>%D<span>Days</span></div><div>%H<span>hours</span></div><div>%M<span>min</span></div><div>%S<span>sec</span></div>' 166 )); 167 }); 168}); 169 170//Countdown 171 $('[data-countdown-mini]').each(function() { 172 var $this = $(this), finalDate = $(this).data('countdown-mini'); 173 $this.countdown(finalDate, function(event) { 174 $this.html(event.strftime( 175 '<div>%D<span>Days</span></div><div>%H<span>hours</span></div>' 176 )); 177 }); 178}); 179 180 //fluidvids.init({ 181 // selector: 'iframe', // runs querySelectorAll() 182 // players: ['www.youtube.com', 'player.vimeo.com'] // players to support 183 // }); 184}); 185
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.