PageSourceSearch

https://motorcyclemayhemradio.com/wp-content/themes/avenue/inc/js/avenue.js?ver=3.0.0

js motorcyclemayhemradio.com collected 2026-10-04 07:08:43 UTC 7,465 bytes, 190 lines download raw bytes

1jQuery(document).ready(function ($) {
2    
3    //¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
4    //  Camera Slider
5    //__________________________________________________________________________
6
7    if ( $('#avenue_slider_wrap').length > 0 ) {
8
9        var overlayer_active = false,
10            height_adjustment = false;
11
12        $('#avenue_slider_wrap').camera({
13            height: avenueSlider.desktop_height + '%',
14            pagination: ( avenueSlider.pagination == 'on' ) ? true : false,
15            navigation: ( avenueSlider.navigation == 'on' ) ? true : false,
16            fx: avenueSlider.animation.toString(),
17            time: parseInt(avenueSlider.slide_timer),
18            transPeriod: parseInt(avenueSlider.animation_speed),
19            hover: ( avenueSlider.hover == 'on' ) ? true : false,
20            thumbnails: false,
21            overlayer: true,
22            playPause : false,
23            loader: 'pie',
24            onLoaded: function() {
25                if ( ! overlayer_active ) {
26                    $('.camera_overlayer').animate({
27                        opacity: 1,
28                    }, 1000 );
29                    overlayer_active = true;
30                }
31                if ( ! height_adjustment ) {
32                    $('#parent-slider-wrap').css( 'height', 'auto' );    
33                    height_adjustment = true;
34                }
35            }
36        });
37
38    }
39    
40    //¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
41    //  Match CTA Heights
42    //__________________________________________________________________________
43    
44    // Match CTA Boxes height
45    matchColHeights('.site-cta');
46    matchColHeights('#homepage-area-a #sc_avenue_recent_posts .col-sm-3');
47
48    // CTA boxes
49    $('.site-cta').hover(function () {
50        
51        $(this).addClass('sc-primary-border');
52        $('.col-md-10', this).stop(true, false).animate({'bottom': '20px'}, 300);
53        $('.btn', this).stop(true, false).fadeIn(300);
54        $('h3', this).addClass('sc-primary-color');
55
56        $('.fa', this).css({
57            'width': '85px',
58            'height': '85px',
59            'top': '-40px',
60            'left': '-57px',
61            'line-height': '84px',
62            fontSize: '40px'
63        }).addClass('sc-primary-color sc-primary-border');
64    }, function () {
65        $(this).removeClass('sc-primary-border');
66        $('.col-md-10', this).stop(true, false).animate({'bottom': '0'}, 300);
67        $('h3', this).removeClass('sc-primary-color');
68        $('.btn', this).stop(true, false).fadeOut(300);
69        $('.fa', this).css({
70            'width': '50px',
71            'height': '50px',
72            'top': '0',
73            'left': '-40px',
74            'line-height': '48px',
75            fontSize: '28px'
76        }).removeClass('sc-primary-color sc-primary-border');
77    });
78
79    // Match Height Function
80    function matchColHeights(selector) {
81        var maxHeight = 0;
82        $(selector).each(function () {
83            var height = $(this).height();
84            if (height > maxHeight) {
85                maxHeight = height;
86            }
87        });
88        $(selector).height(maxHeight);
89    }
90    
91    //¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
92    //  Mobile Menu - bigSlide.js
93    //__________________________________________________________________________
94
95    function delayedSlide() {
96        slideTimeoutID = window.setTimeout( initBigSlide, 200);
97    }
98
99    function initBigSlide() {
100        $( 'div#mobile-menu-wrap nav#menu' ).fadeIn();
101        clearBigSlideTimeout();
102    }
103
104    function clearBigSlideTimeout() {
105        window.clearTimeout( slideTimeoutID );
106    }
107    
108    delayedSlide();
109
110    $( '#mobile-menu-trigger, #mobile-menu-close, #mobile-overlay' ).bigSlide({
111        menu: ( '#mobile-menu-wrap' ),
112        side: 'left',
113        afterOpen: function() {
114            $('#mobile-overlay').stop().fadeIn();
115            $('#mobile-menu-close').stop().fadeIn();
116        },
117        beforeClose: function() {
118            $('#mobile-menu-close').stop().fadeOut();
119            $('#mobile-overlay').stop().fadeOut();
120        }
121    });
122    
123    //¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
124    //  Mobile Menu Collapse/Expand
125    //__________________________________________________________________________
126
127    $( 'div#mobile-menu-wrap ul#mobile-menu > li.menu-item-has-children' ).prepend( '<div class="submenu-button-wrap"><span class="fa fa-plus"></span></div>' );
128
129    $( 'div#mobile-menu-wrap ul#mobile-menu > li.menu-item-has-children span' ).on( 'click', function() {
130        $(this).parent().stop().toggleClass('submenu-rotated').find('span').toggleClass('fa-plus fa-minus');
131        $(this).parent().parent().find( '> ul.sub-menu' ).stop().slideToggle( 400 );
132    });
133    
134    //¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
135    //  Scroll to Top
136    //__________________________________________________________________________
137    
138    $('.scroll-top').click(function () {
139        $("html, body").animate({scrollTop: 0}, "slow");
140        return false;
141    });
142
143    //¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
144    //  Resize Slider
145    //__________________________________________________________________________
146    
147    //    function resize_slider() {
148    //        var w = $('#main-slider').width();
149    //        $('#slider_container,#slider_container > div').width(w);
150    //    }
151
152    //¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
153    //  Inject Hamburger Menu
154    //__________________________________________________________________________
155
156    $('.menu-toggle').html('<i class="fa fa-bars fa-lg"></i>');
157
158    //¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
159    //  Initialize Wow.js
160    //__________________________________________________________________________
161
162    var wow = new WOW(
163        {
164            offset: 150,
165            mobile: true,
166            live: true,
167            callback: function (box) {
168
169            }
170        }
171    );
172    wow.init();
173    
174    //¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
175    //  Sticky.js
176    //__________________________________________________________________________
177    
178    $('#site-branding-sticky-wrap').sticky({
179         topSpacing : ( $('body').hasClass('admin-bar') ? $('#wpadminbar').height() : '0' ),
180    });
181    
182    $('#site-branding-sticky-wrap').on('sticky-start', function() { 
183        $(this).addClass('animated fadeInDown');
184    });
185    
186    $('#site-branding-sticky-wrap').on('sticky-end', function() { 
187        $(this).removeClass('animated fadeInDown');
188    });
189    
190});

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.