PageSourceSearch

https://callgirlsaket.in/wp-content/themes/rehub-theme/js/custom.js?ver=19.8.8

js callgirlsaket.in collected 2026-10-01 13:59:45 UTC 21,016 bytes, 458 lines download raw bytes

1/*
2   Author: Igor Sunzharovskyi
3   Author URI: https://wpsoul.com
4*/
5
6function reshowNav(){'use strict'; jQuery(this).addClass('hovered'); }
7function rehideNav(){'use strict'; jQuery(this).removeClass('hovered');}
8/*Throttle option*/
9(function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this);
10
11
12var re_main_search = {
13
14    init: function init() {
15
16        // Search icon show/hide
17        jQuery(document).on( 'click', '.icon-search-onclick', function(e) {
18            e.preventDefault();
19            e.stopPropagation();  
20            document.getElementById('rhSplashSearch').classList.toggle( 'top-search-onclick-open' );
21            document.getElementById('rhSplashSearch').classList.toggle( 'css-ani-trigger' );
22            setTimeout(function() {
23                document.getElementById('rhSplashSearch').querySelector('input[type=text]').focus();
24            }, 600);
25            
26        });
27  
28        jQuery(document).on("click", function(e){ 
29            if( jQuery(e.target).closest(".head_search").length || jQuery(e.target).closest(".custom_search_box").length) 
30                return;
31            jQuery( '.re-aj-search-wrap' ).removeClass( 're-aj-search-open' ).empty();
32            e.stopPropagation();           
33        });
34
35        jQuery(document).on( 'click', '#close-src-splash', function(e) {
36            document.getElementById('rhSplashSearch').classList.remove('top-search-onclick-open');  
37            document.getElementById('rhSplashSearch').classList.remove('css-ani-trigger'); 
38            document.getElementById('rhSplashSearch').querySelector('input[type=text]').blur();       
39        });        
40
41    }
42};
43
44//MOBILE MENU AND MEGAMENU
45var NavOverlayRemoved = true;
46var revMenuStyle = function() { 
47    var menu = jQuery('#rhslidingMenu'),
48        openMenu = jQuery('.dl-trigger'),
49        navMenu = jQuery('#slide-menu-mobile'),
50        menuList = jQuery('#slide-menu-mobile > .menu'),
51        subMenu = menu.find('.sub-menu'),
52        mobilecustomheader = jQuery('#rhmobpnlcustom'),
53        mobsidebar = jQuery('#rh_woo_mbl_sidebar'),
54        mobsidebartrigger = jQuery('#mobile-trigger-sidebar');
55    menuList.addClass('off-canvas');
56    if (menuList.find('.close-menu').length === 0) {
57        menuList.append('<li class="close-menu rh-close-btn position-relative text-center cursorpointer rh-circular-hover mt10 mb10 margincenter"><span><i class="rhicon rhi-times whitebg roundborder50p rh-shadow4 abdposleft" aria-hidden="true"></i></span></li>');
58    }
59    if(mobilecustomheader.length > 0){
60        menuList.prepend('<li id="mobtopheaderpnl">'+mobilecustomheader.html()+'</li>');
61    }
62    jQuery('#slide-menu-mobile .menu-item-has-children').children('a').after('<span class="submenu-toggle text-center cursorpointer blackcolor"><i class="rhicon rhi-angle-right"></i></span>');
63    jQuery('#slide-menu-mobile .menu-item-has-children:not(.rh-mobile-linkable)').children('a').addClass('submenu-toggle');
64    menuList.on('click', '.submenu-toggle', function(evt) {
65        evt.preventDefault();
66        jQuery(this)
67            .siblings('.sub-menu')
68            .addClass('sub-menu-active');
69    });
70    subMenu.each(function() {
71        var $this = jQuery(this);
72        if ($this.find('.back-mb').length === 0) {
73            $this.prepend('<li class="back-mb"><span class="rehub-main-color"><i class="rhicon rhi-chevron-left mr10"></i> '+rhscriptvars.back+'</span></li>');
74        }
75        menu.on('click', '.back-mb span', function(evt) {
76            evt.preventDefault();
77            jQuery(this)
78                .parent()
79                .parent()
80                .removeClass('sub-menu-active');
81        });
82    });
83    openMenu.on('click', function(e) {
84        e.preventDefault();
85        e.stopPropagation();        
86        jQuery('#wpadminbar').css('z-index', '999');
87        //document.querySelector('.rh-outer-wrap').classList.add('rh-outer-wrap-move');
88        navMenu.fadeIn(100);
89        menuList.addClass('off-canvas-active');
90        jQuery(this).addClass('toggle-active');                
91        if(NavOverlayRemoved){
92            jQuery('body').append(jQuery('<div class="offsetnav-overlay"></div>').hide().fadeIn());
93            NavOverlayRemoved = false;
94        }
95    });
96    mobsidebartrigger.on('click', function(e) {
97        e.preventDefault();
98        e.stopPropagation();        
99        mobsidebar.toggleClass('activeslide');
100        if(NavOverlayRemoved){
101            jQuery('body').append(jQuery('<div class="offsetnav-overlay"></div>').hide().fadeIn());
102            NavOverlayRemoved = false;
103        }       
104    });    
105    jQuery(document).on('click touchstart', '.close-menu, .offsetnav-overlay', function(event) {
106        //event.preventDefault();
107        event.stopPropagation();        
108        setTimeout(function(){ 
109            //document.querySelector('.rh-outer-wrap').classList.remove('rh-outer-wrap-move');
110            menuList.removeClass('off-canvas-active');
111            openMenu.removeClass('toggle-active');
112            jQuery('.sub-menu').removeClass('sub-menu-active'); 
113            mobsidebar.removeClass('activeslide');               
114            if(!NavOverlayRemoved){
115                jQuery('.offsetnav-overlay').remove();
116                NavOverlayRemoved = true;
117            } 
118            return false;           
119        }, 100);                      
120    });
121}
122
123jQuery(document).ready(function($) {
124   'use strict';
125
126    /* better alerts*/
127    (function(){$.simplyToast=function(e,t,n){function u(){$.simplyToast.remove(o)}n=$.extend(true,{},$.simplyToast.defaultOptions,n);var r='<div class="simply-toast rh-toast rh-toast-'+(t?t:n.type)+" "+(n.customClass?n.customClass:"")+'">';if(n.allowDismiss)r+='<span class="rh-toast-close" data-dismiss="alert">&times;</span>';r+=e;r+="</div>";var i=n.offset.amount;$(".simply-toast").each(function(){return i=Math.max(i,parseInt($(this).css(n.offset.from))+this.offsetHeight+n.spacing)});var s={position:n.appendTo==="body"?"fixed":"absolute",margin:0,"z-index":"999999",display:"none","min-width":n.minWidth,"max-width":n.maxWidth};s[n.offset.from]=i+"px";var o=$(r).css(s).appendTo(n.appendTo);switch(n.align){case"center":o.css({left:"50%","margin-left":"-"+o.outerWidth()/2+"px"});break;case"left":o.css("left","20px");break;default:o.css("right","20px")}if(o.fadeIn)o.fadeIn();else o.css({display:"block",opacity:1});if(n.delay>0){setTimeout(u,n.delay)}o.find('[data-dismiss="alert"]').removeAttr("data-dismiss").click(u);return o};$.simplyToast.remove=function(e){if(e.fadeOut){return e.fadeOut(function(){return e.remove()})}else{return e.remove()}};$.simplyToast.defaultOptions={appendTo:"body",customClass:false,type:"info",offset:{from:"top",amount:20},align:"right",minWidth:250,maxWidth:450,delay:4e3,allowDismiss:true,spacing:10}})();          
128
129    // Header and menu
130    var res_nav = $(".top_menu").html();   
131    $("#slide-menu-mobile").html(res_nav);
132    if ($('#re_menu_near_logo').length > 0) { 
133        var header_responsive_menu = $("#re_menu_near_logo ul").html();
134        $("#slide-menu-mobile ul.menu").append(header_responsive_menu);
135    } 
136    if ($('#main_header .top-nav ul.menu').length > 0) { 
137        var header_top_menu_add = $("#main_header .top-nav ul.menu").html();
138        $("#slide-menu-mobile ul.menu").append(header_top_menu_add);
139    }  
140    if ($('#main_header .top_custom_content').length > 0) { 
141        var header_top_menu_add = $("#main_header .top_custom_content").html();
142        $("#slide-menu-mobile ul.menu").append('<li><div class="pt15 pb15 pl15 pr15 top_custom_content_mobile font80">'+header_top_menu_add+'</div></li>');
143    }   
144    const rhtoolicons = document.getElementById("rhNavToolbar"); 
145    const rhtooldiv = "<div class='rh-flex-center-align rh-flex-grow1 rh-flex-justify-center'></div>";   
146    if ($('.rh_woocartmenu_cell').length > 0) { 
147        let prep = $(".rh_woocartmenu_cell").html();
148        if(rhtoolicons){
149            rhtoolicons.insertAdjacentHTML('afterbegin', rhtooldiv.replace("div", "div id='rhWoocartTool'"));
150            $( "#rhWoocartTool" ).prepend(prep);
151        }else{
152            $( "#main_header .responsive_nav_wrap #mobile-menu-icons" ).append(prep);
153        }
154    } 
155    const mobileinmenu = document.querySelectorAll('.mobileinmenu');
156    if(mobileinmenu.length){
157        if(rhtoolicons){
158            mobileinmenu.forEach((item, index)=>{
159                let clone = item.cloneNode(true);
160                let toolwrap = rhtooldiv.replace("div", "div id='rhToolicon"+index+"'");
161                rhtoolicons.insertAdjacentHTML('afterbegin', toolwrap);
162                document.getElementById("rhToolicon"+index+"").prepend(clone);
163            });
164        }else{
165            $( "#main_header .responsive_nav_wrap #mobile-menu-icons" ).append( $(".logo-section .mobileinmenu").clone()); 
166            var mobilelogo = document.querySelector("a.logo_image_mobile img");
167            if(mobilelogo !== null){
168                if(document.body.classList.contains('rtl')){
169                    mobilelogo.setAttribute("style", "right:55px; left:auto; transform:none;");
170                }else{
171                    mobilelogo.setAttribute("style", "left:55px; transform:none;");
172                }
173            }
174        }
175    }             
176    if ($('#logo_mobile_wrapper').length > 0) {
177        $( ".responsive_nav_wrap #dl-trigger" ).after($('#logo_mobile_wrapper').html() );
178        $( ".logo_image_insticky, header .logo" ).addClass('hideontablet');
179    }       
180    if ($('.main-nav .logo-inmenu').length > 0) { 
181        $( "#main_header .responsive_nav_wrap #dl-menu .menu-item.logo-inmenu" ).remove();
182    }       
183
184    $("nav.top_menu > ul li.menu-item-has-children").hoverIntent({
185        over: reshowNav,
186        out: rehideNav,
187        timeout: 120,
188        interval: 100
189    });
190
191    $("#main_header .top-nav > ul li.menu-item-has-children").hoverIntent({
192        over: reshowNav,
193        out: rehideNav,
194        timeout: 120,
195        interval: 100
196    });    
197
198    revMenuStyle();
199    re_main_search.init();   
200
201   /* scroll to # */
202   $(document).on('click','.rehub_scroll, #kcmenu a, .kc-gotop', function (e) {
203      e.preventDefault();
204      if (typeof $(this).data('scrollto') !== 'undefined') {
205         var target = $(this).data('scrollto');
206         var hash = $(this).data('scrollto');
207      } 
208      else {
209         var target = $(this.hash + ', a[name="'+ this.hash.replace(/#/,"") +'"]').first();
210         var hash = this.hash;
211      }
212
213      var $target = $(target);
214      if($target.length !==0){
215          $('html, body').stop().animate({
216             'scrollTop': $target.offset().top - 45
217          }, 500, 'swing', function () {
218            if(history.pushState) {
219              history.pushState(null, null, hash);
220            }
221            else {
222              window.location.hash = hash;
223            }
224          });
225      }
226   });   
227
228   /*bar*/
229   if($('.wpsm-bar').length > 0){
230       $('.wpsm-bar').each(function(){
231          $(this).find('.wpsm-bar-bar').animate({ width: $(this).attr('data-percent') }, 1500 );
232       });
233   }      
234
235    if($(".countdown_dashboard").length > 0){
236        $(".countdown_dashboard").each(function(){
237            $(this).show();
238            var id = $(this).attr("id");
239            var day = $(this).attr("data-day");
240            var month = $(this).attr("data-month");
241            var year = $(this).attr("data-year");
242            var hour = $(this).attr("data-hour");
243            var min = $(this).attr("data-min");
244            //var curtime = $(this).attr("data-currenttime");
245            $(this).countDown({
246                targetDate: {
247                    "day":      day,
248                    "month":    month,
249                    "year":     year,
250                    "hour":     hour,
251                    "min":      min,
252                    "sec":      0
253                },
254                //currenttime: curtime,
255                omitWeeks: true,
256                onComplete: function() { $("#"+ id).hide() }
257            });            
258        });
259    }
260
261    /* offer archive dropdown */  
262    $(document).on('click', '.r_offer_details .r_show_hide', function(e){
263        let element = $(this).closest('.r_offer_details').find('.open_dls_onclk');
264        if(!element.hasClass('rh_collapse_in')){
265            let y = element.position().top + window.scrollY - 50;
266            window.scroll({
267                top: y,
268                behavior: 'smooth'
269            });
270        }
271        element.toggleClass('rh_collapse_in');
272        $(this).closest('.r_offer_details').find('.hide_dls_onclk').toggleClass('rhhidden');
273        $(this).toggleClass('r_show_active');
274    });  
275
276    //close the sliding panel
277    $('.rh-sslide-panel').on('click', function(event){
278        if( $(event.target).is('.rh-sslide-panel') || $(event.target).is('.rh-sslide-close-btn') ) { 
279            $('.rh-sslide-panel').removeClass('active');
280            $('.rh-sslide-panel').find('.widget_shopping_cart').html("");
281            event.preventDefault();
282        }
283    });    
284
285    /* responsive video*/
286    $('.rh-container').find( 'iframe[src*="player.vimeo.com"], iframe[src*="youtube.com"]' ).each( function() {
287        var $video = $(this);
288        if ( $video.parents( 'object' ).length ) return;
289        if ($video.parent().hasClass('rhpb-video-wrapper')) return;
290        if ($video.parent().hasClass('video-container')) return;
291        if ($video.parent().hasClass('wp-block-embed__wrapper')) return;
292        if ($video.parent().parent().hasClass('slides')) return;
293        if ( ! $video.prop( 'id' ) ) $video.attr( 'id', 'rvw' + Math.floor( Math.random() * 999999 ) );
294        $video.wrap( '<div class="video-container"></div>');
295    });                       
296
297   // Coupon Modal
298   $(document).on("click", ".masked_coupon:not(.expired_coupon)", function(e){
299    e.preventDefault();
300      var $this = $(this);
301      var codeid = $this.data('codeid');
302      var codetext = $this.data('codetext');
303      var issearch = window.location.search;
304      if(issearch){
305        var codeidtext = "&codeid=";
306        var codetexttext = "&codetext=";
307        if (typeof URLSearchParams !== 'undefined') {
308            let params = new URLSearchParams(issearch.substring(1));
309            params.delete('codeid');
310            params.delete('codetext');
311            issearch = '?' + params.toString();
312        }
313      }else{
314        var codeidtext = "?codeid=";
315        var codetexttext = "?codetext=";        
316      }
317      if (typeof $this.data('codeid') !== 'undefined') {var couponpage = window.location.pathname + issearch + codeidtext + codeid;}
318      if (typeof $this.data('codetext') !== 'undefined') {var couponpage = window.location.pathname + issearch + codetexttext + codetext;}
319      var couponcode = $this.data('clipboard-text'); 
320      var destination = $this.data('dest'); 
321      window.open(couponpage);
322      if( destination != "" || destination != "#" ){
323         window.location.href= destination;
324      }      
325   });
326
327   if($('#coupon_code_in_modal').length > 0){
328        var codeid = $('#coupon_code_in_modal').data('couponid');
329        var $change_code = $(".rehub_offer_coupon.masked_coupon:not(.expired_coupon)[data-codeid='" + codeid + "']");
330        var couponcode = $change_code.data("clipboard-text");
331        $change_code.removeClass("rh-deal-compact-btn masked_coupon woo_loop_btn coupon_btn btn_offer_block wpsm-button").addClass("not_masked_coupon").html( "<i class=\'rhicon rhi-scissors fa-rotate-180\'></i><span class=\'coupon_text\'>"+ couponcode +"</span>" );                                  
332        $change_code.closest(".reveal_enabled").removeClass("reveal_enabled");
333        $.pgwModal({
334            titleBar: false,
335            maxWidth: 650,
336            target: "#coupon_code_in_modal",
337            mainClassName : "pgwModal coupon-reveal-popup",
338        });        
339   }
340
341   $(document).on("click", "a.not_masked_coupon", function(e){
342      e.preventDefault();
343   });
344
345   $(document).on("click", ".csspopuptrigger", function(e){
346      e.preventDefault();
347      var destination = '#' + $(this).data('popup');
348      $(destination).toggleClass('active');
349      $('body').addClass('flowhidden');
350   });
351
352   $(document).on("click", ".csspopup .cpopupclose", function(e){
353      e.preventDefault();
354      $(this).closest('.csspopup').removeClass('active');
355      $('body').removeClass('flowhidden');
356   });
357
358   $(document).on("click", ".toggle-this-table", function(e){
359      e.preventDefault();
360      $(this).closest('.rh-tabletext-block').toggleClass('closedtable');
361   }); 
362
363   if($(".rehub_offer_coupon.masked_coupon.expired_coupon").length > 0){
364       $(".rehub_offer_coupon.masked_coupon.expired_coupon").each(function() {
365          var couponcode = $(this).data('clipboard-text');
366          $(this).removeClass('masked_coupon woo_loop_btn coupon_btn btn_offer_block wpsm-button').addClass('not_masked_coupon').text(couponcode);
367          $(this).closest('.reveal_enabled').removeClass('reveal_enabled');
368       }); 
369   }           
370
371    //external links
372   $('.ext-source').replaceWith(function(){
373      return '<a href="' + $(this).data('dest') + '" target="_blank" rel="nofollow sponsored">' + $(this).html() + '</a>';
374   });
375
376   $('.int-source').replaceWith(function(){
377      return '<a href="' + $(this).data('dest') + '">' + $(this).html() + '</a>';
378   });       
379
380   //Sharing popups JS
381   jQuery(document).on( 'click', '.share-link-image', function( event ) {
382      var href    = jQuery( this ).data( "href" ),
383         service = jQuery( this ).data( 'service' ),
384         width   = 'pinterest' == service ? 750 : 600,
385         height  = 'twitter' == service ? 250 : 'pinterest' == service ? 320 : 300,
386         top     = ( screen.height / 2 ) - height / 2,
387         left    = ( screen.width / 2 ) - width / 2;
388      var options = 'top=' + top + ',left=' + left + ',width=' + width + ',height=' + height;
389      event.preventDefault();
390      event.stopPropagation();
391      window.open( href, service, options );
392   });    
393
394    // Search icon show/hide 
395    $(window).on("resize", function(){
396        var w = $(window).width();
397        if (w > 1023){
398            $('#slide-menu-mobile').hide();
399            $('.offsetnav-overlay').hide();
400        }
401    });                     
402
403}); //END Document.ready
404
405// Rate bar annimation
406jQuery(function($){
407'use strict';  
408  $(document).ready(function(){   
409    $(document).on('inview', '.rate_bar_wrap', function(event, visible) {
410      if (visible) {
411        $('.rate-bar').each(function(){
412         $(this).find('.rate-bar-bar').animate({ width: $(this).attr('data-percent') }, 1500 );
413        });
414         $(document).off('inview', '.rate_bar_wrap');
415      }
416    });
417
418    $('.radial-progress').each(function(){
419        $(this).find('.circle .mask.full, .circle .fill:not(.fix)').animate({  borderSpacing: $(this).attr('data-rating')*18 }, {
420            step: function(now,fx) {
421              $(this).css('transform','rotate('+now+'deg)');
422            },
423            duration:'slow'
424        },'linear');
425
426        $(this).find('.circle .fill.fix').animate({  borderSpacing: $(this).attr('data-rating')*36 }, {
427            step: function(now,fx) {
428              $(this).css('transform','rotate('+now+'deg)');
429            },
430            duration:'slow'
431        },'linear');                   
432
433      });
434
435  });
436});  
437  
438   
439//Scroll To top
440if(jQuery('.post-inner').length > 0){
441    var postheight = jQuery('.post-inner').height() + jQuery('#main_header').height() - 100;
442    jQuery(window).on('scroll', jQuery.throttle( 250, function(){
443    'use strict';
444       
445       if (jQuery(this).scrollTop() > 500) {
446          jQuery('#topcontrol, #float-posts-nav').addClass('scrollvisible');
447       } else {
448          jQuery('#topcontrol').removeClass('scrollvisible');
449          jQuery('#float-posts-nav').removeClass('scrollvisible');
450       }
451       if (jQuery(this).scrollTop() > postheight) {
452          jQuery('#float-posts-nav').addClass('openedprevnext');
453       } else {
454          jQuery('#float-posts-nav').removeClass('openedprevnext');
455       } 
456
457    }));    
458}

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.