PageSourceSearch

https://www.rayongz.com/wp-content/themes/feminine-style/assets/js/feminine-style-custom.js?ver=1.0.5

js rayongz.com collected 2026-09-26 04:29:47 UTC 10,108 bytes, 316 lines download raw bytes

1jQuery(document).ready(function($){
2    var at_window = $(window),
3        at_body = $('body');
4
5    function at_ticker() {
6        var ticker = $('.news-notice-content'),
7            ticker_first = ticker.children(':first');
8
9        if( ticker_first.length ){
10            setInterval(function() {
11                if ( !ticker_first.is(":hover") ){
12                    ticker_first.fadeOut(function() {
13                        ticker_first.appendTo(ticker);
14                        ticker_first = ticker.children(':first');
15                        ticker_first.fadeIn();
16                    });
17                }
18            },3000);
19        }
20    }
21
22    at_ticker();
23    
24    function homeFullScreen() {
25
26        var homeSection = $('#at-banner-slider'),
27            windowHeight = at_window.outerHeight();
28
29        if (homeSection.hasClass('home-fullscreen')) {
30            $('.home-fullscreen').css('height', windowHeight);
31        }
32    }
33    //make slider full width
34    homeFullScreen();
35
36    //window resize
37    at_window.resize(function () {
38        homeFullScreen();
39    });
40
41    function acmeLoadingRemove(){
42        /*loading*/
43        $('#wrapper').removeClass('loading');
44        var $bubblingG_loader = $('.bubblingG-loader');
45        $bubblingG_loader.addClass('removing');
46        $bubblingG_loader.remove();
47    }
48
49    setTimeout(function(){
50        acmeLoadingRemove();
51    }, 4000);
52
53    at_window.on("load", function() {
54        acmeLoadingRemove();
55    });
56
57    /*animation with wow*/
58    if(typeof WOW !== 'undefined'){
59        eb_wow = new WOW({
60                boxClass: 'init-animate'
61            }
62        );
63        eb_wow.init();
64    }
65
66    //Sticky Sidebar
67    if( at_body.hasClass( 'at-sticky-sidebar') ){
68        if( at_body.hasClass( 'both-sidebar') ){
69            $('#primary-wrap, #secondary-right, #secondary-left').theiaStickySidebar();
70        }
71        else{
72            $('.secondary-sidebar, #primary').theiaStickySidebar();
73        }
74    }
75
76    /*slick*/
77    $('.acme-slick-carausel').each(function() {
78        var at_featured_img_slider = $(this);
79
80        var slidesToShow = parseInt(at_featured_img_slider.data('column'));
81        var slidesToScroll = parseInt(at_featured_img_slider.data('column'));
82        var prevArrow =at_featured_img_slider.closest('.widget').find('.at-action-wrapper > .prev');
83        var nextArrow =at_featured_img_slider.closest('.widget').find('.at-action-wrapper > .next');
84        at_featured_img_slider.css('visibility', 'visible').slick({
85            slidesToShow: slidesToShow,
86            slidesToScroll: slidesToScroll,
87            autoplay: true,
88            adaptiveHeight: true,
89            cssEase: 'linear',
90            arrows: true,
91            prevArrow: prevArrow,
92            nextArrow: nextArrow,
93            responsive: [
94                {
95                    breakpoint: 768,
96                    settings: {
97                        slidesToShow: ( slidesToShow > 1 ? slidesToShow - 1 : slidesToShow ),
98                        slidesToScroll: ( slidesToScroll > 1 ? slidesToScroll - 1 : slidesToScroll )
99                    }
100                },
101                {
102                    breakpoint: 480,
103                    settings: {
104                        slidesToShow: ( slidesToShow > 2 ? slidesToShow - 2 : slidesToShow ),
105                        slidesToScroll: ( slidesToScroll > 2 ? slidesToScroll - 2 : slidesToScroll )
106                    }
107                }
108            ]
109        });
110    });
111
112    $('.featured-slider').show().slick({
113        autoplay: true,
114        adaptiveHeight: true,
115        autoplaySpeed: 3000,
116        speed: 700,
117        cssEase: 'linear',
118        fade: true,
119        prevArrow: '<i class="prev fas fa-angle-left"></i>',
120        nextArrow: '<i class="next fas fa-angle-right"></i>'
121    });
122    /*parallax scolling*/
123    $('a[href*="\\#"]').click(function(event){
124        var at_offset= $.attr(this, 'href');
125        var id = at_offset.substring(1, at_offset.length);
126        if ( ! document.getElementById( id ) ) {
127            return;
128        }
129        if( $( at_offset ).offset() ){
130            $('html, body').animate({
131                scrollTop: $( at_offset ).offset().top-$('.at-navbar').height()
132            }, 1000);
133        }
134
135    });
136    /*bootstrap sroolpy*/
137    $("body").scrollspy({target: ".at-sticky", offset: $('.at-navbar').height()+50 } );
138
139    /*isotop*/
140    // init Isotope
141    var $grid = $('.grid').isotope({
142        itemSelector: '.element-item',
143        layoutMode: 'fitRows',
144        fitRows: {
145            gutter: 0
146        },
147        masonry: {
148            // use outer width of grid-sizer for columnWidth
149            columnWidth: '.gallery-inner-item'
150        }
151    });
152    var filterFns = {
153        // show if number is greater than 50
154        numberGreaterThan50: function() {
155            var number = $(this).find('.number').text();
156            return parseInt( number, 10 ) > 50;
157        },
158        // show if name ends with -ium
159        ium: function() {
160            var name = $(this).find('.name').text();
161            return name.match( /ium$/ );
162        }
163    };
164    // bind filter button click
165    $('.filters').on( 'click', 'button', function() {
166        var filterValue = $( this ).attr('data-filter');
167        // use filterFn if matches value
168        filterValue = filterFns[ filterValue ] || filterValue;
169        $grid.isotope({ filter: filterValue });
170    });
171    // change is-checked class on buttons
172    $('.button-group').each( function( i, buttonGroup ) {
173        var $buttonGroup = $( buttonGroup );
174        $buttonGroup.on( 'click', 'button', function() {
175            $buttonGroup.find('.is-checked').removeClass('is-checked');
176            $( this ).addClass('is-checked');
177        });
178    });
179    /*featured slider*/
180    $('.acme-gallery').each(function(){
181        var $masonry_boxes = $(this),
182            $container = $masonry_boxes.find('.fullwidth-row');
183
184        $container.imagesLoaded( function(){
185            $masonry_boxes.fadeIn( 'slow' );
186            $container.masonry({
187                itemSelector : '.at-gallery-item'
188            });
189        });
190        /*widget*/
191        $masonry_boxes.find('.image-gallery-widget').magnificPopup({
192            type: 'image',
193            closeBtnInside: false,
194            gallery: {
195                enabled: true
196            },
197            fixedContentPos: false
198
199        });
200        $masonry_boxes.find('.single-image-widget').magnificPopup({
201            type: 'image',
202            closeBtnInside: false,
203            fixedContentPos: false
204        });
205    });
206
207    /*widget slider*/
208    $('.acme-widget-carausel').show().slick({
209        autoplay: true,
210        autoplaySpeed: 3000,
211        speed: 700,
212        cssEase: 'linear',
213        fade: true,
214        prevArrow: '<i class="prev fas fa-angle-left"></i>',
215        nextArrow: '<i class="next fas fa-angle-right"></i>'
216    });
217
218    //Select 2 js init
219    if (typeof select2 !== 'undefined' && $.isFunction(select2)){
220        $('.woocommerce-ordering .orderby').select2({
221            minimumResultsForSearch: -1
222        });
223    }
224
225    function stickyMenu() {
226
227        var scrollTop = at_window.scrollTop(),
228            sticky = $('.feminine-style-sticky');
229        if ( scrollTop > 250 ) {
230            sticky.addClass('at-sticky');
231            $('.sm-up-container').show();
232        }
233        else {
234            sticky.removeClass('at-sticky');
235            $('.sm-up-container').hide();
236        }
237    }
238    //What happen on window scroll
239    stickyMenu();
240    at_window.on("scroll", function (e) {
241        setTimeout(function () {
242            stickyMenu();
243        }, 300)
244    });
245    
246    /*schedule tab*/
247    function schedule_tab() {
248        // Runs when the image button is clicked.
249        jQuery('body').on('click','.schedule-title a', function(e){
250            var $this = $(this),
251                schedule_wrap = $this.closest('.at-schedule'),
252                schedule_tab_id = $this.data('id'),
253                schedule_title = schedule_wrap.find('.schedule-title'),
254            schedule_content_wrap = schedule_wrap.find('.schedule-item-content');
255
256            schedule_title.removeClass('active');
257            $this.parent().addClass('active');
258            schedule_content_wrap.removeClass('active');
259
260            schedule_content_wrap.each(function () {
261                if( $(this).data('id') === schedule_tab_id ){
262                    $(this).addClass('active')
263                }
264            });
265
266            e.preventDefault();
267        });
268    }
269
270    
271    function at_site_origin_grid() {
272        $('.panel-grid').each(function(){
273            var count = $(this).children('.panel-grid-cell').length;
274            if( count < 1 ){
275                count = $(this).children('.panel-grid').length;
276            }
277            if( count > 1 ){
278                $(this).addClass('at-grid-full-width');
279            }
280        });
281    }
282    schedule_tab();
283    at_site_origin_grid();
284});
285
286/**
287 * Skip link focus fixed
288 */
289( function() {
290    var isIe = /(trident|msie)/i.test( navigator.userAgent );
291
292    if ( isIe && document.getElementById && window.addEventListener ) {
293        window.addEventListener(
294            'hashchange',
295            function() {
296                var id = location.hash.substring( 1 ),
297                    element;
298
299                if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
300                    return;
301                }
302
303                element = document.getElementById( id );
304
305                if ( element ) {
306                    if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
307                        element.tabIndex = -1;
308                    }
309
310                    element.focus();
311                }
312            },
313            false
314        );
315    }
316}() );

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.