PageSourceSearch

https://mea.org/wp-content/themes/power-magazine-pro-child/assets/js/custom.js?ver=6.9.9

js mea.org collected 2026-09-24 09:13:32 UTC 4,016 bytes, 123 lines download raw bytes

1(function ($) {
2    'use strict';
3
4
5    /* back-to-top button */
6    $('.back-to-top').hide();
7    $('.back-to-top').on("click", function (e) {
8        e.preventDefault();
9        $('html, body').animate({
10            scrollTop: 0
11        }, 'slow');
12    });
13
14    $(window).scroll(function () {
15        var scrollheight = 400;
16        if ($(window).scrollTop() > scrollheight) {
17            $('.back-to-top').fadeIn();
18
19        } else {
20            $('.back-to-top').fadeOut();
21        }
22    });
23
24    /*meanmenu js for responsive menu for header-layout-1*/
25    $('.main-navigation').meanmenu({
26        meanMenuContainer: '.navbar',
27        meanScreenWidth: "900",
28        meanRevealPosition: "right",
29    });
30
31    //header search
32    $('.site-header .search-toggle').on("click",function(){
33        $('.site-header .search-section').toggleClass('active');
34    });
35
36    /*main slider*/
37    var auto_play = ( $('.main-slider-wrap').attr('data-play') == '0' ) ? false : true ;
38    var show_arrow = ( $('.main-slider-wrap').attr('data-arrow') == '1' ) ? true : false;
39
40
41    $('.main-slider-wrap').slick({
42      infinite: true,
43      slidesToShow: 1,
44      dots: true,
45      arrows : show_arrow,
46      autoplay: auto_play,
47      slidesToScroll: 1,
48	  autoplaySpeed:6000
49    });
50
51    /*video-lists slider*/
52    $('.video-lists').slick({
53      infinite: true,
54      slidesToShow: 1,
55      dots: true,
56      arrows : false,
57      slidesToScroll: 1
58    });
59    
60    //tab js
61    $('.header-tab-button .widget-title').on("click", function () {
62        var tab_id = $(this).attr('data-tab');
63        $('.header-tab-button .widget-title').removeClass('current');
64        $('.tab-content').removeClass('current');
65        $(this).addClass('current');
66        $("#" + tab_id).addClass('current');
67    });
68
69    /*CustomScrollbar on tab-content*/
70    $('.trending-and-latest-tab-section .tab-content').mCustomScrollbar({ 
71           scrollbarPosition: 'outside'
72    });
73
74    /*fashion section*/
75    $('.fashion-section .grid').isotope({
76      itemSelector: '.grid-item',
77      columnWidth: '.grid-item',
78      isFitWidth: true
79    });
80
81
82    /*for pop up video*/
83    jQuery('.popup-video').magnificPopup({
84        disableOn: 700,
85        type: 'iframe',
86        mainClass: 'mfp-fade',
87        removalDelay: 160,
88        preloader: false,
89        fixedContentPos: false
90    });
91
92    /*sticky sidebar*/
93    jQuery('#primary , #secondary').theiaStickySidebar({
94      additionalMarginTop: 30
95    });
96
97
98    /*hgroup-wrap top fixed while scrolling*/
99    
100    var getHeaderHeight = $('.navbar').outerHeight();
101    var lastScrollPosition = 0;
102    $(window).scroll(function() {
103      var currentScrollPosition = $(window).scrollTop();
104      if ($(window).scrollTop() > 2 * (getHeaderHeight) ) {
105        $('body').addClass('scrollActive').css('padding-top', getHeaderHeight);
106        $('.navbar').css('top', 0);
107        lastScrollPosition = currentScrollPosition;
108      } else {
109        $('body').removeClass('scrollActive').css('padding-top', 0);
110      }
111    });
112	
113	//jQuery('.mean-nav .menu-main-menu-container ul').append("<li>test</li>");
114	
115	//setting up the hidden mobile sections
116	var mobilenews = "<section class=\"widget list-news-portal\">" + $("#power_magazine_list-5").html() + "<p><a href=\"/news-room/\">More News →</a></p></section>";
117	$("#text-42").html(mobilenews);
118	
119	//var mobilelinks = "<section class=\"widget widget_nav_menu\">" + $("#nav_menu-9").html() + "</section><section class=\"widget tribe-events-list-widget\">" + $("#tribe-events-list-widget-3").html() + "</section><section class=\"widget widget_nav_menu\">" + $("#nav_menu-7").html() + "</section>";
120	var mobilelinks = "<section class=\"widget widget_nav_menu\">" + $("#nav_menu-9").html() + "</section><section class=\"widget widget_nav_menu\">" + $("#nav_menu-7").html() + "</section>";
121	$("#text-43").html(mobilelinks);
122
123})(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.