PageSourceSearch

https://www.fashionistaindia.com/wp-content/themes/fashionista/assets/js/script.js?ver=1790329214

js fashionistaindia.com collected 2026-09-25 09:41:50 UTC 4,396 bytes, 142 lines download raw bytes

1jQuery( document ).ready( function($){
2   "use strict";
3
4      /**-------------------------------------------------
5       *Fixed HEader
6     *----------------------------------------------------**/
7    $(window).on('scroll', function () {
8
9      /**Fixed header**/
10      if ($(window).scrollTop() > 250) {
11         $('.navbar-fixed').addClass('sticky fade_down_effect');
12      } else {
13         $('.navbar-fixed').removeClass('sticky fade_down_effect');
14      }
15   });
16
17
18    $(function() {
19  $('navbar-nav li a[href^="/' + location.pathname.split("/")[1] + '"]').addClass('active');
20});
21
22
23/* ----------------------------------------------------------- */
24  /*  Mobile Menu
25  /* ----------------------------------------------------------- */
26  $('.dropdown > a').on('click', function(e) {
27   e.preventDefault();
28   if($(window).width() > 991)
29   {
30      location.href = this.href; 
31   } 
32   var dropdown = $(this).parent('.dropdown');
33   dropdown.find('>.dropdown-menu').slideToggle('show');
34   $(this).toggleClass('opened');
35   return false;
36 });
37
38
39    
40
41/* ----------------------------------------------------------- */
42   /*  Site search
43   /* ----------------------------------------------------------- */
44
45
46   $('.nav-search').on('click', function () {
47      $('.search-block').fadeIn(350);
48      $('.nav-search').addClass('hide');
49   });
50
51   $('.search-close').on('click', function () {
52      $('.search-block').fadeOut(350);
53      $('.nav-search').removeClass('hide');
54   });
55
56   $(document).on('mouseup', function (e) {
57      var container = $(".nav-search-area");
58
59      if (!container.is(e.target) && container.has(e.target).length === 0) {
60         $('.search-block').fadeOut(350);
61         $('.nav-search').removeClass('hide');
62      }
63
64  }); 
65  
66   /* ----------------------------------------------------------- */
67   /*  Back to top
68   /* ----------------------------------------------------------- */
69
70   $(window).on('scroll', function () {
71    if ($(window).scrollTop() > $(window).height()) {
72       $(".BackTo").fadeIn('slow');
73    } else {
74       $(".BackTo").fadeOut('slow');
75    }
76
77    });
78
79    $("body, html").on("click", ".BackTo", function (e) {
80        e.preventDefault();
81        $('html, body').animate({
82          scrollTop: 0
83        }, 800);
84    });
85
86      /*==========================================================
87               go current section
88      ======================================================================*/
89      $('.scroll a').on('click', function() {
90         $('html, body').animate({scrollTop: $(this.hash).offset().top - 70}, 1000);
91         return false;
92     });
93     
94     if ($('.box-style').length > 0) {
95      $('.box-style').each(function () {
96         if ($(this).find('.elementor-row').length > 0) {
97            $(this).find('.elementor-row').append('<div class="indicator"></div>')
98         }
99      })
100   }
101     /*==========================================================
102               video popup
103      ======================================================================*/
104   if ($('.video-btn').length > 0) {
105      $('.video-btn').magnificPopup({
106          type: 'iframe',
107          mainClass: 'mfp-with-zoom',
108          zoom: {
109              enabled: true, // By default it's false, so don't forget to enable it
110   
111              duration: 300, // duration of the effect, in milliseconds
112              easing: 'ease-in-out', // CSS transition easing function
113   
114              opener: function (openerElement) {
115                  return openerElement.is('img') ? openerElement : openerElement.find('img');
116              }
117          }
118      });
119   }
120     /*==========================================================
121               video popup
122      ======================================================================*/
123   if ($('.gallery-popup').length > 0) {
124      $('.gallery-popup').magnificPopup({
125          type: 'inline',
126          mainClass: 'mfp-with-zoom',
127          zoom: {
128              enabled: true, // By default it's false, so don't forget to enable it
129   
130              duration: 300, // duration of the effect, in milliseconds
131              easing: 'ease-in-out', // CSS transition easing function
132   
133              opener: function (openerElement) {
134                  return openerElement.is('img') ? openerElement : openerElement.find('img');
135              }
136          }
137      });
138   }
139   
140
141
142} );

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.