PageSourceSearch

https://www.cgvisual.com/CGVSpace/wp-content/themes/magazine-7/assets/script.js?ver=7.1.2

js cgvisual.com collected 2026-09-25 00:36:40 UTC 11,977 bytes, 332 lines download raw bytes

1(function (e) {
2    "use strict";
3    var n = window.AFTHRAMPES_JS || {};
4    n.stickyMenu = function () {
5        e(window).scrollTop() > 350 ? e("#masthead").addClass("nav-affix") : e("#masthead").removeClass("nav-affix")
6    },
7        n.mobileMenu = {
8            init: function () {
9                this.toggleMenu(), this.menuMobile(), this.menuArrow()
10            },
11            toggleMenu: function () {
12                e('#masthead').on('click', '.toggle-menu', function (event) {
13                    var ethis = e('.main-navigation .menu .menu-mobile');
14                    if (ethis.css('display') == 'block') {
15                        ethis.slideUp('300');
16                    } else {
17                        ethis.slideDown('300');
18                    }
19                    e('.ham').toggleClass('exit');
20                });
21                e('#masthead .main-navigation ').on('click', '.menu-mobile a i', function (event) {
22                    event.preventDefault();
23                    var ethis = e(this),
24                        eparent = ethis.closest('li'),
25                        esub_menu = eparent.find('> .sub-menu');
26                    if (esub_menu.css('display') == 'none') {
27                        esub_menu.slideDown('300');
28                        ethis.addClass('active');
29                    } else {
30                        esub_menu.slideUp('300');
31                        ethis.removeClass('active');
32                    }
33                    return false;
34                });
35            },
36            menuMobile: function () {
37                if (e('.main-navigation .menu > ul').length) {
38                    var ethis = e('.main-navigation .menu > ul'),
39                        eparent = ethis.closest('.main-navigation'),
40                        pointbreak = eparent.data('epointbreak'),
41                        window_width = window.innerWidth;
42                    if (typeof pointbreak == 'undefined') {
43                        pointbreak = 991;
44                    }
45                    if (pointbreak >= window_width) {
46                        ethis.addClass('menu-mobile').removeClass('menu-desktop');
47                        e('.main-navigation .toggle-menu').css('display', 'block');
48                    } else {
49                        ethis.addClass('menu-desktop').removeClass('menu-mobile').css('display', '');
50                        e('.main-navigation .toggle-menu').css('display', '');
51                    }
52                }
53            },
54            menuArrow: function () {
55                if (e('#masthead .main-navigation div.menu > ul').length) {
56                    e('#masthead .main-navigation div.menu > ul .sub-menu').parent('li').find('> a').append('<i class="fa fa-angle-down">');
57                }
58            }
59        },
60
61
62        n.DataBackground = function () {
63            var pageSection = e(".data-bg");
64            pageSection.each(function (indx) {
65                if (e(this).attr("data-background")) {
66                    e(this).css("background-image", "url(" + e(this).data("background") + ")");
67                }
68            });
69
70            e('.bg-image').each(function () {
71                var src = e(this).children('img').attr('src');
72                e(this).css('background-image', 'url(' + src + ')').children('img').hide();
73            });
74        },
75
76
77        /* Slick Slider */
78        n.SlickCarousel = function () {
79
80            e(".default-slider-mode").slick({
81                centerMode: true,
82                slidesToShow: 3,
83                slidesToScroll: 1,
84                autoplay: true,
85                autoplaySpeed: 12000,
86                infinite: true,
87                nextArrow: '<span class="slide-icon slide-icon-1 slide-next slide-next-1 fa fa-arrow-right"></span>',
88                prevArrow: '<span class="slide-icon slide-icon-1 slide-prev slide-prev-1 fa fa-arrow-left"></span>',
89                responsive: [
90                    {
91                        breakpoint: 1024,
92                        settings: {
93                            slidesToShow: 2,
94
95                        }
96                    },
97                    {
98                        breakpoint: 678,
99                        settings: {
100                            slidesToShow: 2,
101                            centerPadding: '15px',
102
103                        }
104                    },
105                    {
106                        breakpoint: 480,
107                        settings: {
108                            slidesToShow: 1,
109                            centerPadding: '15px',
110
111                        }
112                    }
113                    // You can unslick at a given breakpoint now by adding:
114                    // settings: "unslick"
115                    // instead of a settings object
116                ]
117
118            });
119
120            e(".full-slider-mode").slick({
121                slidesToShow: 1,
122                slidesToScroll: 1,
123                autoplay: true,
124                autoplaySpeed: 12000,
125                infinite: true,
126                nextArrow: '<span class="slide-icon slide-next icon-right fa fa-arrow-right"></span>',
127                prevArrow: '<span class="slide-icon slide-prev icon-left fa fa-arrow-left"></span>',
128                //appendArrows: e('.af-navcontrols')
129            });
130
131
132
133            e(".posts-slider").slick({
134                slidesToShow: 1,
135                slidesToScroll: 1,
136                autoplay: true,
137                autoplaySpeed: 10000,
138                infinite: true,
139                nextArrow: '<i class="slide-icon slide-icon-1 slide-next slide-next-1 fa fa-arrow-right"></i>',
140                prevArrow: '<i class="slide-icon slide-icon-1 slide-prev slide-prev-1 fa fa-arrow-left"></i>',
141            });
142
143            e(".trending-posts-carousel").slick({
144                slidesToShow: 5,
145                slidesToScroll: 1,
146                autoplay: true,
147                autoplaySpeed: 10000,
148                infinite: true,
149                nextArrow: '<i class="slide-icon slide-icon-1 slide-next slide-next-1 fa fa-arrow-right"></i>',
150                prevArrow: '<i class="slide-icon slide-icon-1 slide-prev slide-prev-1 fa fa-arrow-left"></i>',
151                responsive: [
152                    {
153                        breakpoint: 1025,
154                        settings: {
155                            slidesToShow: 4,
156                            slidesToScroll: 4
157                        }
158                    },
159                    {
160                        breakpoint: 991,
161                        settings: {
162                            slidesToShow: 3,
163                            slidesToScroll: 3
164                        }
165                    },
166                    {
167                        breakpoint: 768,
168                        settings: {
169                            slidesToShow: 2,
170                            slidesToScroll: 2
171                        }
172                    },
173
174                    {
175                        breakpoint: 480,
176                        settings: {
177                            slidesToShow: 1,
178                            slidesToScroll: 1
179                        }
180                    }
181                ]
182            });
183
184            e(".posts-carousel").slick({
185                slidesToShow: 3,
186                slidesToScroll: 1,
187                autoplay: true,
188                autoplaySpeed: 10000,
189                infinite: true,
190                nextArrow: '<i class="slide-icon slide-icon-1 slide-next slide-next-1 fa fa-arrow-right"></i>',
191                prevArrow: '<i class="slide-icon slide-icon-1 slide-prev slide-prev-1 fa fa-arrow-left"></i>',
192                responsive: [
193                    {
194                        breakpoint: 991,
195                        settings: {
196                            slidesToShow: 3,
197                            slidesToScroll: 3
198                        }
199                    },
200                    {
201                        breakpoint: 768,
202                        settings: {
203                            slidesToShow: 2,
204                            slidesToScroll: 2
205                        }
206                    },
207
208                    {
209                        breakpoint: 480,
210                        settings: {
211                            slidesToShow: 1,
212                            slidesToScroll: 1
213                        }
214                    }
215                ]
216            });
217
218            e(".gallery-columns-1").slick({
219                slidesToShow: 1,
220                slidesToScroll: 1,
221                fade: true,
222                autoplay: true,
223                autoplaySpeed: 10000,
224                infinite: true,
225                nextArrow: '<i class="slide-icon slide-icon-1 slide-next fa fa-arrow-right"></i>',
226                prevArrow: '<i class="slide-icon slide-icon-1 slide-prev fa fa-arrow-left"></i>',
227                dots: true
228            });
229
230
231
232        },
233
234        
235
236        n.Offcanvas = function () {
237            e('.offcanvas-nav').sidr({
238                side: 'left'
239            });
240
241            e('.sidr-class-sidr-button-close').click(function () {
242                e.sidr('close', 'sidr');
243            });
244        },
245
246        // SHOW/HIDE SCROLL UP //
247        n.show_hide_scroll_top = function () {
248            if (e(window).scrollTop() > e(window).height() / 2) {
249                e("#scroll-up").fadeIn(300);
250            } else {
251                e("#scroll-up").fadeOut(300);
252            }
253        },
254
255        n.scroll_up = function () {
256            e("#scroll-up").on("click", function () {
257                e("html, body").animate({
258                    scrollTop: 0
259                }, 800);
260                return false;
261            });
262        },
263
264
265
266        n.MagnificPopup = function () {
267            e('div.zoom-gallery').magnificPopup({
268                delegate: 'a',
269                type: 'image',
270                closeOnContentClick: false,
271                closeBtnInside: false,
272                mainClass: 'mfp-with-zoom mfp-img-mobile',
273                image: {
274                    verticalFit: true,
275                    titleSrc: function (item) {
276                        return item.el.attr('title');
277                    }
278                },
279                gallery: {
280                    enabled: true
281                },
282                zoom: {
283                    enabled: true,
284                    duration: 300,
285                    opener: function (element) {
286                        return element.find('img');
287                    }
288                }
289            });
290
291            e('.gallery').each(function() {
292                e(this).magnificPopup({
293                    delegate: 'a',
294                    type: 'image',
295                    gallery: {
296                        enabled:true
297                    },
298                    zoom: {
299                        enabled: true,
300                        duration: 300,
301                        opener: function (element) {
302                            return element.find('img');
303                        }
304                    }
305                });
306            });
307        },
308
309
310        n.em_sticky = function () {
311            jQuery('.home #secondary').theiaStickySidebar({
312                additionalMarginTop: 30
313            });
314        },
315
316        e(document).ready(function () {
317            n.mobileMenu.init(), n.DataBackground(), n.em_sticky(), n.MagnificPopup(), n.SlickCarousel(), n.Offcanvas(), n.scroll_up();
318        }), e(window).scroll(function () {
319        n.stickyMenu(), n.show_hide_scroll_top();
320    }), e(window).resize(function () {
321        n.mobileMenu.menuMobile();
322    }), e(window).load(function () {      
323
324
325                e('#loader-wrapper').fadeOut();
326                e('#af-preloader').delay(500).fadeOut('slow');
327        
328                e(".af-search-click").on('click', function(){
329                    e("#af-search-wrap").toggleClass("af-search-toggle");
330                });
331    })
332})(jQuery);

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.