PageSourceSearch

https://www.teyanataylor.com/wp-content/themes/umg-grand-royal-the…/multipage/assets/js/music.js?ver=3.5.8

js teyanataylor.com collected 2026-09-24 23:17:04 UTC 2,584 bytes, 67 lines download raw bytes

1(function ($) {
2
3    function initLazy() {
4        $('.lazy').each(function () {
5            $(this).Lazy({
6                beforeLoad: function (element) {
7                    $(element).parents('.music-featured-slide__image-container').show('div.loader');
8                },
9                afterLoad: function (element) {
10                    $(element).parent().find('div.loader').hide();
11                },
12            });
13        });
14    }
15
16    $(document).ready(function() {
17        var mainHeight = $('#main-content').outerHeight() ? $('#main-content').outerHeight() : 0;
18        var swiperHeight = $('.umggr-swiper-container').outerHeight() ? $('.umggr-swiper-container').outerHeight() : 0;
19        if (swiperHeight < mainHeight) {
20            $('.umggr-swiper-container').css('padding', (mainHeight - swiperHeight) / 2 + 'px' )
21        } else {
22            // $('.umggr-swiper-button').css('top', '150px');
23        }
24        $('.open-links').on("click", function () {
25            if (!$('.open-links').hasClass('open')) {
26                TweenMax.to($(this), 0.3, {opacity: 0.5});
27                $('.open-links').addClass('open');
28            } else {
29                TweenMax.to($(this), 0.3, {opacity: 1});
30                $('.open-links').removeClass('open');
31            }
32        });
33
34        initLazy();
35
36        // music featured slider init
37        const musicfeaturedSlickAutoplay = umggr_multipage_music_vars.autoplay === 'on';
38        if ($('.music-featured-slider').length) {
39
40            var stdMusicFeaturedSliderSettings = {
41                // dots: true,
42                infinite: true,
43                autoplay: musicfeaturedSlickAutoplay,
44                centerMode: true,
45                slidesToShow: 1,
46                slidesToScroll: 1,
47                fade: true,
48                cssEase: 'linear',
49                adaptiveHeight: false,
50                dots: true,
51                arrows: true,
52                prevArrow: '<span class="slick-prev"></span>',
53                nextArrow: '<span class="slick-next"></span>'
54            }
55
56            if (typeof window.UMGGR_Music_Feat_Slick_Slider_Option != "undefined") { //
57                var mergedMusicFeaturedSliderSettings = {...stdMusicFeaturedSliderSettings, ...window.UMGGR_Music_Feat_Slick_Slider_Option};
58            } else {
59                var mergedMusicFeaturedSliderSettings = stdMusicFeaturedSliderSettings;
60            }
61
62            $(".music-featured-slider").not('.slick-initialized').slick(mergedMusicFeaturedSliderSettings);
63        }
64
65    });
66
67})(jQuery);// JavaScript Document

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.