PageSourceSearch

https://dprk360.com/wp-content/themes/power-magazine-pro/assets/js/custom.js?ver=20190610

js dprk360.com collected 2026-10-02 11:44:35 UTC 3,138 bytes, 112 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: "768",
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    });
49
50    /*video-lists slider*/
51    $('.video-lists').slick({
52      infinite: true,
53      slidesToShow: 1,
54      dots: true,
55      arrows : false,
56      slidesToScroll: 1
57    });
58    
59    //tab js
60    $('.header-tab-button .widget-title').on("click", function () {
61        var tab_id = $(this).attr('data-tab');
62        $('.header-tab-button .widget-title').removeClass('current');
63        $('.tab-content').removeClass('current');
64        $(this).addClass('current');
65        $("#" + tab_id).addClass('current');
66    });
67
68    /*CustomScrollbar on tab-content*/
69    $('.trending-and-latest-tab-section .tab-content').mCustomScrollbar({ 
70           scrollbarPosition: 'outside'
71    });
72
73    /*fashion section*/
74    $('.fashion-section .grid').isotope({
75      itemSelector: '.grid-item',
76      columnWidth: '.grid-item',
77      isFitWidth: true
78    });
79
80
81    /*for pop up video*/
82    jQuery('.popup-video').magnificPopup({
83        disableOn: 700,
84        type: 'iframe',
85        mainClass: 'mfp-fade',
86        removalDelay: 160,
87        preloader: false,
88        fixedContentPos: false
89    });
90
91    /*sticky sidebar*/
92    jQuery('#primary , #secondary').theiaStickySidebar({
93      additionalMarginTop: 30
94    });
95
96
97    /*hgroup-wrap top fixed while scrolling*/
98    
99    var getHeaderHeight = $('.navbar').outerHeight();
100    var lastScrollPosition = 0;
101    $(window).scroll(function() {
102      var currentScrollPosition = $(window).scrollTop();
103      if ($(window).scrollTop() > 2 * (getHeaderHeight) ) {
104        $('body').addClass('scrollActive').css('padding-top', getHeaderHeight);
105        $('.navbar').css('top', 0);
106        lastScrollPosition = currentScrollPosition;
107      } else {
108        $('body').removeClass('scrollActive').css('padding-top', 0);
109      }
110    });
111
112})(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.