PageSourceSearch

https://heavensmetalmagazine.com/wp-content/themes/covernews-pro/assets/script.js?ver=7.1.2

js heavensmetalmagazine.com collected 2026-10-02 14:31:07 UTC 22,239 bytes, 622 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 button', 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('<button 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        n.setInstaHeight = function () {
77            e('.insta-slider-block').each(function () {
78                var img_width = e(this).find('.insta-item .af-insta-height').eq(0).innerWidth();
79
80                e(this).find('.insta-item .af-insta-height').css('height', img_width);
81            });
82        },
83
84
85        /* Slick Slider */
86        n.SlickCarousel = function () {
87
88
89
90            e(".full-slider-mode").slick({
91                slidesToShow: 1,
92                slidesToScroll: 1,
93                autoplay: true,
94                autoplaySpeed: 12000,
95                infinite: true,
96                nextArrow: '<span class="slide-icon slide-icon-1 slide-next icon-right fas fa-angle-right"></span>',
97                prevArrow: '<span class="slide-icon slide-icon-1 slide-prev icon-left fas fa-angle-left"></span>',
98                appendArrows: e('.af-main-navcontrols'),
99                rtl: rtl_slick()
100
101            });
102
103            function rtl_slick(){
104                if (e('body').hasClass("rtl")) {
105                    return true;
106                } else {
107                    return false;
108                }}
109
110
111            e(".posts-slider").slick({
112                slidesToShow: 1,
113                slidesToScroll: 1,
114                autoplay: true,
115                autoplaySpeed: 10000,
116                infinite: true,
117                nextArrow: '<i class="slide-icon slide-icon-1 slide-next icon-right fas fa-angle-right"></i>',
118                prevArrow: '<i class="slide-icon slide-icon-1 slide-prev icon-left fas fa-angle-left"></i>',
119                rtl: rtl_slick()
120            });
121
122            e(".classic-mode .trending-posts-carousel").not('.slick-initialized').slick({
123                autoplay: true,
124                vertical: true,
125                slidesToShow: 5,
126                slidesToScroll: 1,
127                verticalSwiping: true,
128                autoplaySpeed: 10000,
129                infinite: true,
130                nextArrow: '<i class="slide-icon slide-icon-1  slide-next fas fa-angle-down"></i>',
131                prevArrow: '<i class="slide-icon slide-icon-1 slide-prev fas fa-angle-up"></i>',
132                appendArrows: e('.af-trending-navcontrols'),
133                responsive: [
134                    {
135                        breakpoint: 1834,
136                        settings: {
137                            slidesToShow: 5
138                        }
139                    },
140                    {
141                        breakpoint: 991,
142                        settings: {
143                            slidesToShow: 5
144                        }
145                    },
146                    {
147                        breakpoint: 768,
148                        settings: {
149                            slidesToShow: 3
150                        }
151                    },
152
153                    {
154                        breakpoint: 480,
155                        settings: {
156                            slidesToShow: 3
157                        }
158                    }
159                ]
160            });
161
162            e("#aft-trending-story-five .trending-posts-carousel").not('.slick-initialized').slick({
163                autoplay: true,
164                vertical: true,
165                slidesToShow: 5,
166                slidesToScroll: 1,
167                verticalSwiping: true,
168                autoplaySpeed: 10000,
169                infinite: true,
170                nextArrow: '<i class="slide-icon slide-icon-1  slide-next fas fa-angle-down"></i>',
171                prevArrow: '<i class="slide-icon slide-icon-1 slide-prev fas fa-angle-up"></i>',
172                appendArrows: e('.af-trending-navcontrols'),
173                responsive: [
174                    {
175                        breakpoint: 1834,
176                        settings: {
177                            slidesToShow: 5
178                        }
179                    },
180                    {
181                        breakpoint: 991,
182                        settings: {
183                            slidesToShow: 5
184                        }
185                    },
186                    {
187                        breakpoint: 768,
188                        settings: {
189                            slidesToShow: 3
190                        }
191                    },
192
193                    {
194                        breakpoint: 480,
195                        settings: {
196                            slidesToShow: 3
197                        }
198                    }
199                ]
200            });
201
202            e(".trending-posts-carousel").not('.slick-initialized').slick({
203                autoplay: true,
204                vertical: true,
205                slidesToShow: 4,
206                slidesToScroll: 1,
207                verticalSwiping: true,
208                autoplaySpeed: 10000,
209                infinite: true,
210                nextArrow: '<i class="slide-icon slide-icon-1  slide-next fas fa-angle-down"></i>',
211                prevArrow: '<i class="slide-icon slide-icon-1 slide-prev fas fa-angle-up"></i>',
212                appendArrows: e('.af-trending-navcontrols'),
213                responsive: [
214                {
215                        breakpoint: 1834,
216                        settings: {
217                            slidesToShow: 4
218                        }
219                    },
220                    {
221                        breakpoint: 991,
222                        settings: {
223                            slidesToShow: 4
224                        }
225                    },
226                    {
227                        breakpoint: 768,
228                        settings: {
229                            slidesToShow: 3
230                        }
231                    },
232                
233                    {
234                        breakpoint: 480,
235                        settings: {
236                            slidesToShow: 3
237                        }
238                    }
239                ]
240            });
241
242
243
244            e(".trending-posts-vertical-carousel").slick({
245                autoplay: true,
246                vertical: true,
247                slidesToShow: 5,
248                slidesToScroll: 1,
249                verticalSwiping: true,
250                autoplaySpeed: 10000,
251                infinite: true,
252                nextArrow: '<i class="slide-icon slide-icon-1  slide-next fas fa-angle-down"></i>',
253                prevArrow: '<i class="slide-icon slide-icon-1 slide-prev fas fa-angle-up"></i>'
254            });
255
256            e("#primary .posts-carousel").slick({
257                slidesToShow: 3,
258                slidesToScroll: 1,
259                autoplay: true,
260                autoplaySpeed: 10000,
261                infinite: true,
262                rtl: rtl_slick(),
263                nextArrow: '<i class="slide-icon slide-icon-1 slide-next icon-right fas fa-angle-right"></i>',
264                prevArrow: '<i class="slide-icon slide-icon-1 slide-prev icon-left fas fa-angle-left"></i>',
265                responsive: [
266                    {
267                        breakpoint: 991,
268                        settings: {
269                            slidesToShow: 3,
270                            slidesToScroll: 3
271                        }
272                    },
273                    {
274                        breakpoint: 768,
275                        settings: {
276                            slidesToShow: 2,
277                            slidesToScroll: 2
278                        }
279                    },
280
281                    {
282                        breakpoint: 480,
283                        settings: {
284                            slidesToShow: 1,
285                            slidesToScroll: 1
286                        }
287                    }
288                ]
289            });
290
291             e("#secondary .posts-carousel").slick({
292                slidesToShow: 1,
293                slidesToScroll: 1,
294                autoplay: true,
295                autoplaySpeed: 10000,
296                infinite: true,
297                 rtl: rtl_slick(),
298                nextArrow: '<i class="slide-icon slide-icon-1 slide-next icon-right fas fa-angle-right"></i>',
299                prevArrow: '<i class="slide-icon slide-icon-1 slide-prev icon-left fas fa-angle-left"></i>',
300                
301            });
302
303            e(".gallery-columns-1").slick({
304                slidesToShow: 1,
305                slidesToScroll: 1,
306                fade: true,
307                autoplay: true,
308                autoplaySpeed: 10000,
309                infinite: true,
310                nextArrow: '<i class="slide-icon slide-icon-1 slide-next fa fa-arrow-right"></i>',
311                prevArrow: '<i class="slide-icon slide-icon-1 slide-prev fa fa-arrow-left"></i>',
312                dots: true
313            });
314
315
316
317        },
318
319        n.Preloader = function () {
320            e(window).load(function () {
321                e('#loader-wrapper').fadeOut();
322                e('#af-preloader').delay(500).fadeOut('slow');
323
324            });
325        },
326
327        n.Search = function () {
328            e(window).load(function () {
329                e(".af-search-click").on('click', function(){
330                    e("#af-search-wrap").toggleClass("af-search-toggle");
331                });
332            });
333        },
334
335        n.searchReveal = function () {
336            e(window).load(function () {
337            jQuery('.search-icon').on('click', function (event) {
338                event.preventDefault();
339                jQuery('.search-overlay').toggleClass('reveal-search');                
340            });
341
342            });
343            
344
345        },
346
347        n.Offcanvas = function () {
348            e('.offcanvas-nav').sidr({
349                side: 'left'
350            });
351
352            e('.sidr-class-sidr-button-close').click(function () {
353                e.sidr('close', 'sidr');
354            });
355        },
356
357        // SHOW/HIDE SCROLL UP //
358        n.show_hide_scroll_top = function () {
359            if (e(window).scrollTop() > e(window).height() / 2) {
360                e("#scroll-up").fadeIn(300);
361            } else {
362                e("#scroll-up").fadeOut(300);
363            }
364        },
365
366        n.scroll_up = function () {
367            e("#scroll-up").on("click", function () {
368                e("html, body").animate({
369                    scrollTop: 0
370                }, 800);
371                return false;
372            });
373        },
374
375
376
377        n.MagnificPopup = function () {
378            e('div.zoom-gallery').magnificPopup({
379                delegate: 'a.insta-hover',
380                type: 'image',
381                closeOnContentClick: false,
382                closeBtnInside: false,
383                mainClass: 'mfp-with-zoom mfp-img-mobile',
384                image: {
385                    verticalFit: true,
386                    titleSrc: function (item) {
387                        return item.el.attr('title');
388                    }
389                },
390                gallery: {
391                    enabled: true
392                },
393                zoom: {
394                    enabled: true,
395                    duration: 300,
396                    opener: function (element) {
397                        return element.find('img');
398                    }
399                }
400            });
401
402            e('.gallery').each(function() {
403                e(this).magnificPopup({
404                    delegate: 'a',
405                    type: 'image',
406                    gallery: {
407                        enabled:true
408                    },
409                    zoom: {
410                        enabled: true,
411                        duration: 300,
412                        opener: function (element) {
413                            return element.find('img');
414                        }
415                    }
416                });
417
418            });
419
420
421            e('.wp-block-gallery').each(function () {
422                e(this).magnificPopup({
423                    delegate: 'a',
424                    type: 'image',
425                    gallery: {
426                        enabled: true
427                    },
428                    zoom: {
429                        enabled: true,
430                        duration: 300,
431                        opener: function (element) {
432                            return element.find('img');
433                        }
434                    }
435                });
436            });
437
438        },
439
440
441
442        n.em_sticky = function () {
443            jQuery('.home #secondary.aft-sticky-sidebar').theiaStickySidebar({
444                additionalMarginTop: 30
445            });
446        },
447
448
449        n.jQueryMarqueeRight = function () {
450            e('.marquee.flash-slide-right').marquee({
451                //duration in milliseconds of the marquee
452                speed: 80000,
453                //gap in pixels between the tickers
454                gap: 0,
455                //time in milliseconds before the marquee will start animating
456                delayBeforeStart: 0,
457                //'left' or 'right'
458                //direction: 'right',
459                //true or false - should the marquee be duplicated to show an effect of continues flow
460                duplicated: true,
461                pauseOnHover: true,
462                startVisible: true
463            });
464        },
465
466        n.jQueryMarquee = function () {
467            e('.marquee.flash-slide-left').marquee({
468                //duration in milliseconds of the marquee
469                speed: 80000,
470                //gap in pixels between the tickers
471                gap: 0,
472                //time in milliseconds before the marquee will start animating
473                delayBeforeStart: 0,
474                //'left' or 'right'
475                //direction: 'left',
476                //true or false - should the marquee be duplicated to show an effect of continues flow
477                duplicated: true,
478                pauseOnHover: true,
479                startVisible: true
480            });
481        },
482
483
484
485        n.VideoSlider = function () {
486            
487            e( '.video-slider' ).sliderPro({
488                width: '100%',
489                height: 460,
490                arrows: true,
491                buttons: false,
492                fullScreen: false,
493                thumbnailWidth: 160,
494                thumbnailHeight: 112,
495                thumbnailsPosition: 'right',
496                autoplay: false,
497                fadeArrows: false,
498                loop: true,
499                breakpoints: {
500                    1920: {
501                        thumbnailWidth: 180,
502                        thumbnailHeight: 100,
503                        height: 510,
504                        width: 906,
505                    },
506                    1600: {
507                        thumbnailWidth: 140,
508                        thumbnailHeight: 80,
509                        height: 390,
510                        width: 700,
511                    },
512                    1366: {
513                        thumbnailWidth: 140,
514                        thumbnailHeight: 80,
515                        height: 442,
516                        width: 786,
517                    },
518                    1024: {
519                        thumbnailWidth: 142,
520                        thumbnailHeight: 80,
521                        height: 295,
522                        width: 523,
523                    },
524                    800: {
525                        height: 423,
526                        thumbnailsPosition: 'bottom',
527                        thumbnailWidth: 142,
528                        thumbnailHeight: 80
529                    },
530                    500: {
531                        height: 270,
532                        thumbnailsPosition: 'bottom',
533                        thumbnailWidth: 142,
534                        thumbnailHeight: 80
535                    },
536                    425: {
537                        height: 230,
538                        thumbnailsPosition: 'bottom',
539                        thumbnailWidth: 142,
540                        thumbnailHeight: 80
541                    },
542                    375: {
543                        height: 200,
544                        thumbnailsPosition: 'bottom',
545                        thumbnailWidth: 142,
546                        thumbnailHeight: 80
547                    }
548                }
549
550            });
551            jQuery( '.sp-next-arrow' ).addClass( 'fas fa-angle-right' );
552            jQuery( '.sp-previous-arrow' ).addClass( 'fas fa-angle-left' );
553        },
554
555        n.VideoSliderHorizontal = function () {
556
557            e( '.video-slider-horizontal' ).sliderPro({
558                width: '100%',
559                height: 460,
560                arrows: true,
561                buttons: false,
562                fullScreen: false,
563                thumbnailWidth: 160,
564                thumbnailHeight: 112,
565                thumbnailsPosition: 'bottom',
566                autoplay: false,
567                fadeArrows: false,
568                loop: true,
569                breakpoints: {
570                    1920: {
571                        thumbnailWidth: 200,
572                        thumbnailHeight: 100,
573                        height: 624,
574                    },
575                    1600: {
576                        thumbnailWidth: 142,
577                        thumbnailHeight: 80,
578                        height: 467,
579                    },
580                    1366: {
581                        thumbnailWidth: 142,
582                        thumbnailHeight: 110,
583                        height: 506,
584                    },
585                    1024: {
586                        thumbnailWidth: 142,
587                        thumbnailHeight: 110,
588                        height: 376,
589                    },
590                    800: {
591                        height: 423,
592                        thumbnailsPosition: 'bottom',
593                        thumbnailWidth: 142,
594                        thumbnailHeight: 110
595                    },
596                    500: {
597                        height: 239,
598                        thumbnailsPosition: 'bottom',
599                        thumbnailWidth: 142,
600                        thumbnailHeight: 110
601                    },
602                    375: {
603                        height: 199,
604                        thumbnailsPosition: 'bottom',
605                        thumbnailWidth: 142,
606                        thumbnailHeight: 110
607                    }
608                }
609
610            });
611            jQuery( '.sp-next-arrow' ).addClass( 'fas fa-angle-right' );
612            jQuery( '.sp-previous-arrow' ).addClass( 'fas fa-angle-left' );
613        },
614
615        e(document).ready(function () {
616            n.mobileMenu.init(), n.DataBackground(), n.setInstaHeight(), n.em_sticky(), n.MagnificPopup(), n.jQueryMarquee(),n.jQueryMarqueeRight(),n.VideoSlider(), n.VideoSliderHorizontal(), n.SlickCarousel(), n.Preloader(), n.Search(),n.searchReveal(), n.Offcanvas(), n.scroll_up();
617        }), e(window).scroll(function () {
618        n.stickyMenu(), n.show_hide_scroll_top();
619    }), e(window).resize(function () {
620        n.mobileMenu.menuMobile();
621    })
622})(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.