PageSourceSearch

https://tiretalent.com/wp-content/plugins/notibar/assets/frontend/js/notibar.js?ver=2.1.8

js tiretalent.com collected 2026-10-04 04:08:04 UTC 27,232 bytes, 843 lines download raw bytes

1const homeNotificationBar = {
2  setPaddingTop() {
3    const barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
4    jQuery('#wpadminbar').css({
5      'position': 'fixed'
6    })
7
8  },
9  setCookie(cname, cvalue, exdays) {
10    var d = new Date();
11    d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
12    var expires = "expires=" + d.toUTCString();
13    document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
14  },
15  getCookie(cname) {
16    const name = cname + '=';
17    const decodedCookie = decodeURIComponent(document.cookie);
18    const ca = decodedCookie.split(';');
19    for (let i = 0; i < ca.length; i++) {
20      let c = ca[i];
21      while (c.charAt(0) == ' ') {
22        c = c.substring(1);
23      }
24      if (c.indexOf(name) == 0) {
25        return c.substring(name.length, c.length);
26      }
27    }
28    return '';
29  },
30  hideBarWithCookie() {
31    const valueCookie = homeNotificationBar.getCookie('njt-close-notibar')
32    const hideCloseButton = njt_wp_data.hideCloseButton
33    if (valueCookie == 'true' && !njt_wp_data.is_customize_preview && hideCloseButton == 'close_button') {
34      const barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
35      jQuery('body').css({ 'padding-top': -barHeight })
36      if(njt_wp_data.wp_get_theme !== 'Divi' ||  njt_wp_data.wp_get_theme !== 'Divi Child Theme for CDW Studios'){
37        jQuery('body').css({
38          'position': 'relative',
39        })
40      }
41    }
42
43    const toggleCookie = homeNotificationBar.getCookie('njt-toggle-close-notibar')
44    if (toggleCookie == 'true' && !njt_wp_data.is_customize_preview && hideCloseButton == 'toggle_button') {
45      setTimeout(function(){
46        jQuery('.njt-nofi-toggle-button').click()
47      }, 500);
48    }
49  },
50  actionButtonClose() {
51    //Option Close
52    jQuery(".njt-nofi-container .njt-nofi-close-button").on("click", function (e) {
53      const barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
54      const wpAdminBarHeight = jQuery('#wpadminbar').length > 0  ? jQuery('#wpadminbar').outerHeight() : 0 ;
55      const a = wpAdminBarHeight - barHeight
56      jQuery('body').animate({ 'padding-top': 0 }, 1000)
57      jQuery('body').css({
58        'position': 'relative',
59      })
60      if (jQuery(".njt-nofi-container").css('position') == 'fixed') {
61        jQuery('.njt-nofi-container').animate({ top: a + "px" }, 1000, function() {
62          jQuery('.njt-nofi-container-content').remove();
63        })
64      }
65      if (jQuery(".njt-nofi-container").css('position') == 'absolute') {
66        jQuery('.njt-nofi-container').animate({ top: -barHeight + "px" }, 1000, function() {
67          jQuery('.njt-nofi-container-content').remove();
68        })
69      }
70      //set cookie
71      homeNotificationBar.setCookie('njt-close-notibar', 'true', njt_wp_data.open_after_day.value)
72
73      //Custom js for theme
74      if(njt_wp_data.wp_get_theme == 'Essentials') {
75        if (jQuery('.admin-bar').length > 0) {
76          jQuery('body.admin-bar #masthead.pix-header').css({
77            'top': '32px'
78          })
79        } else {
80          jQuery('body #masthead.pix-header').css({
81            'top': 0
82          })
83        }
84      }
85      
86      if(njt_wp_data.wp_get_theme == 'Nayma'){
87        jQuery('.njt-nofi-notification-bar').addClass('njt-nofi-toggle-close');
88
89        if (jQuery('.admin-bar').length > 0) {
90          jQuery('body.admin-bar #masthead .fixed-header').css({
91            'top': '32px'
92          })
93        } else {
94          jQuery('body #masthead .fixed-header').css({
95            'top': 0
96          })
97        }
98      }
99
100      if(njt_wp_data.wp_get_theme == 'Konte'){
101        if (jQuery('.admin-bar').length > 0) {
102          jQuery('body.admin-bar #masthead.header-sticky--normal').css({
103            'top': 0
104          })
105          jQuery('body.admin-bar #masthead.header-sticky--normal.sticky').css({
106            'top': '32px'
107          })
108        } else {
109          jQuery('body #masthead.header-sticky--normal').css({
110            'top': 0
111          })
112        }
113      }
114
115      if(njt_wp_data.wp_get_theme == 'Divi' ||  njt_wp_data.wp_get_theme == 'Divi Child Theme for CDW Studios'){
116        if (jQuery('.admin-bar').length > 0) {
117          jQuery('body #main-header').css({
118            'top': '32px'
119          })
120        } else {
121          jQuery('body #main-header').css({
122            'top': 0
123          })
124        }
125
126        jQuery('body').css({
127          'position': 'unset',
128        })
129      }
130
131      if(njt_wp_data.wp_get_theme == 'AccessPress Parallax Pro Child'){
132        if (jQuery('.admin-bar').length > 0) {
133          jQuery('header#masthead').css({
134            'top': '32px'
135          })
136        } else {
137          jQuery('header#masthead').css({
138            'top': 0
139          })
140          jQuery('#main-header').css({
141            'top': 0
142          })
143        }
144      }
145
146      if(njt_wp_data.wp_get_theme == 'Uptime Child'){
147        jQuery('.navbar').css({
148          'top': 0
149        })
150      }
151
152      if(njt_wp_data.wp_get_theme == 'Salient'){
153          jQuery('header#top').css({
154            'top': 0
155          })
156      }
157      
158    })
159
160
161    //Option Toggle Close
162    jQuery(".njt-nofi-container .njt-nofi-toggle-button").on("click", function (isCloaseBar) {
163      
164      const barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
165      const wpAdminBarHeight = jQuery('#wpadminbar').length > 0  ? jQuery('#wpadminbar').outerHeight() : 0
166      const a = wpAdminBarHeight - barHeight
167      jQuery('body').animate({ 'padding-top': 0 }, 1000)
168      jQuery('body').css({
169        'position': 'relative',
170      })
171      if (jQuery(".njt-nofi-container").css('position') == 'fixed') {
172        jQuery('.njt-nofi-container').animate({ top: a + "px" }, 1000, function() {
173          jQuery('.njt-nofi-container .njt-nofi-notification-bar').hide();
174        })
175
176        //Essentials Theme
177        if(njt_wp_data.wp_get_theme == 'Essentials') {
178          if (jQuery('.admin-bar').length > 0) {
179            // jQuery('body.admin-bar #masthead.pix-header').css({
180            //   'top': '32px'
181            // })
182          } else {
183            jQuery('body #masthead.pix-header').css({
184              'top': 0
185            })
186          }
187        }
188
189        if(njt_wp_data.wp_get_theme == 'Nayma'){
190          jQuery('.njt-nofi-notification-bar').addClass('njt-nofi-toggle-close');
191
192          if (jQuery('.admin-bar').length > 0) {
193            jQuery('body.admin-bar #masthead .fixed-header').css({
194              'top': '32px'
195            })
196          } else {
197            jQuery('body #masthead .fixed-header').css({
198              'top': 0
199            })
200          }
201        }
202      }
203
204      if (jQuery(".njt-nofi-container").css('position') == 'absolute') {
205        jQuery('.njt-nofi-container').animate({ top: -barHeight + "px" }, 1000, function() {
206          jQuery('.njt-nofi-container .njt-nofi-notification-bar').hide();
207        })
208      }
209
210      jQuery('.njt-nofi-display-toggle').css({
211        'display': 'block',
212        'top': barHeight,
213      })
214
215      //Set Cookie toggle close
216      homeNotificationBar.setCookie('njt-toggle-close-notibar', 'true', njt_wp_data.open_after_day.value)
217    })
218
219    //Option Toggle Opent
220    jQuery(".njt-nofi-display-toggle").on("click", function (e) {
221      const barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
222      jQuery('body').animate({ 'padding-top': barHeight }, 1000)
223      jQuery('.njt-nofi-display-toggle').css({
224        'display': 'none',
225        'top': 0,
226      })
227      if (jQuery(".njt-nofi-container").css('position') == 'fixed') {
228        const wpAdminBarHeight = jQuery('#wpadminbar').length > 0  ? jQuery('#wpadminbar').outerHeight() : 0;
229        jQuery('.njt-nofi-container .njt-nofi-notification-bar').show();
230        jQuery('.njt-nofi-container').animate({ top: wpAdminBarHeight }, 1000)
231
232        //Essentials Theme
233        if(njt_wp_data.wp_get_theme == 'Essentials') {
234          if (jQuery('.admin-bar').length > 0) {
235            // jQuery('body.admin-bar #masthead.pix-header').css({
236            //   'top': barHeight + 32
237            // })
238          } else {
239            // jQuery('body #masthead.pix-header').css({
240            //   'top': barHeight
241            // })
242          }
243        }
244
245        if(njt_wp_data.wp_get_theme == 'Nayma'){
246          jQuery('.njt-nofi-notification-bar').removeClass('njt-nofi-toggle-close');
247          if (jQuery('.admin-bar').length > 0) {
248            jQuery('body.admin-bar #masthead .fixed-header').css({
249              'top': barHeight + 32
250            })
251          } else {
252            jQuery('body #masthead .fixed-header').css({
253              'top': barHeight
254            })
255          }
256        }
257      }
258
259      if (jQuery(".njt-nofi-container").css('position') == 'absolute') {
260        jQuery('.njt-nofi-container .njt-nofi-notification-bar').show();
261        jQuery('.njt-nofi-container').animate({ top: 0 }, 1000)
262      }
263
264       //Set Cookie toggle close
265       homeNotificationBar.setCookie('njt-toggle-close-notibar', 'false', 0)
266    })
267  },
268  customStyleBar() {
269    const newValue = njt_wp_data.hideCloseButton
270    console.log();
271    if (newValue == 'no_button') {
272      jQuery(".njt-nofi-toggle-button").css({
273        'display': 'none',
274      })
275      jQuery(".njt-nofi-close-button").css({
276        'display': 'none',
277      })
278    }
279
280    if (newValue == 'toggle_button') {
281      jQuery(".njt-nofi-toggle-button").css({
282        'display': 'block',
283      })
284      jQuery(".njt-nofi-close-button").css({
285        'display': 'none',
286      })
287    }
288
289    if (newValue == 'close_button') {
290      jQuery(".njt-nofi-close-button").css({
291        'display': 'block',
292      })
293      jQuery(".njt-nofi-toggle-button").css({
294        'display': 'none',
295      })
296    }
297
298    if (njt_wp_data.wp_get_theme == 'Twenty Twenty-Two') {
299      jQuery(".njt-nofi-notification-bar .njt-nofi-hide .njt-nofi-close-icon").css({
300        'width': '15px',
301        'height': '15px'
302      })
303    }
304
305    const textButtonColor = njt_wp_data.textButtonColor
306
307    if(textButtonColor) {
308      jQuery(".njt-nofi-notification-bar .njt-nofi-button-text").css({
309        'color': textButtonColor
310      })
311    }
312
313    const alignContent = njt_wp_data.alignContent
314    const width = jQuery(window).width();
315    if (alignContent == 'center') {
316      jQuery(".njt-nofi-container .njt-nofi-align-content").css({
317        'justify-content': 'center'
318      })
319
320    }
321
322    if (alignContent == 'right') {
323      jQuery(".njt-nofi-container .njt-nofi-align-content").css({
324        'justify-content': 'flex-end'
325      })
326      jQuery(".njt-nofi-container .njt-nofi-align-content").css({
327        'text-align': 'right',
328        'padding': '10px 30px'
329      })
330    }
331
332    if (alignContent == 'left') {
333      jQuery(".njt-nofi-container .njt-nofi-align-content").css({
334        'justify-content': 'flex-start'
335      })
336      if (width <= 480) {
337        jQuery(".njt-nofi-container .njt-nofi-align-content").css({
338          'text-align': 'left'
339        })
340      }
341    }
342
343    if (alignContent == 'space_around') {
344      jQuery(".njt-nofi-container .njt-nofi-align-content").css({
345        'justify-content': 'space-around'
346      })
347    }
348
349    const textColorNotification = njt_wp_data.textColorNotification
350    jQuery(".njt-nofi-container .njt-nofi-text-color").css({
351      'color': textColorNotification
352    })
353
354    //setPositionBar
355    homeNotificationBar.setPositionBar()
356  },
357  windownResizeforCustomize() {
358    jQuery(window).on('resize', function () {
359      const barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
360      jQuery('body').css({
361        'padding-top': barHeight,
362        'position': 'relative'
363      })
364    });
365  },
366  setPositionBar() {
367    const isPositionFix = njt_wp_data.isPositionFix
368    const wpAdminBarHeight = jQuery('#wpadminbar').length > 0  ? jQuery('#wpadminbar').outerHeight() : 0
369    let barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
370    if (isPositionFix) {
371      jQuery(".njt-nofi-container").css({
372        'position': 'fixed',
373        'top': wpAdminBarHeight || '0px'
374      })
375      
376      if(njt_wp_data.wp_get_theme !== 'Divi' ||  njt_wp_data.wp_get_theme !== 'Divi Child Theme for CDW Studios'){
377        jQuery('body').css({
378          'padding-top': barHeight,
379          'position': 'relative'
380        })
381      }
382      if(njt_wp_data.wp_get_theme == 'Divi Child'){
383        jQuery('body').css({
384          'padding-top': barHeight,
385          'position': 'relative'
386        })
387      }
388      if(njt_wp_data.wp_get_theme == 'Hathor Child'){
389        let barHeight = jQuery('.njt-nofi-notification-bar .njt-nofi-content').outerHeight();
390        jQuery('body').css({
391          'padding-top': barHeight,
392          'position': 'relative'
393        })
394      }
395    } else {
396      jQuery(".njt-nofi-container").css({
397        'position': 'absolute',
398        'top': 0
399      })
400      jQuery('body').css({
401        'padding-top': barHeight,
402        'position': 'relative'
403      })
404      if(njt_wp_data.wp_get_theme == 'Salient'){
405        jQuery('body').css({
406          'padding-top': '291px',
407          'position': 'relative'
408        })
409      }
410    }
411  },
412  supportEssentialsTheme() {
413    jQuery(window).scroll(function() {
414      if(homeNotificationBar.getCookie('njt-close-notibar') != 'true') {
415        const barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
416        if (jQuery('.admin-bar').length > 0) {
417          jQuery('body.admin-bar #masthead.pix-header').css({
418            'top': 0
419          })
420          jQuery('body.admin-bar #masthead.pix-header.is-scroll').css({
421            'top': barHeight + 32
422          })
423        } else {
424          jQuery('body #masthead.pix-header').css({
425            'top': 0
426          })
427          jQuery('body #masthead.pix-header.is-scroll').css({
428            'top': barHeight
429          })
430        }
431      }else {
432        if (jQuery('.admin-bar').length > 0) {
433          jQuery('body.admin-bar #masthead.pix-header.is-scroll').css({
434            'top': '32px'
435          })
436        } else {
437          
438          jQuery('body #masthead.pix-header.is-scroll').css({
439            'top': 0
440          })
441        }
442      }
443    });
444  },
445  supportEnfoldTheme() {
446    if(njt_wp_data.wp_get_theme === 'Enfold' && jQuery(".njt-nofi-container").css('position') === 'absolute'){
447      const barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
448      setTimeout(() => {
449        if(!jQuery("header").hasClass("av_header_transparency")) {
450           jQuery('body header.av_header_border_disabled').css({
451                'top': jQuery('.admin-bar').length ? '32px' : '0'
452              });
453        }
454      }, 500);
455  
456      jQuery(window).on('wheel', function(event) {
457          if (event.originalEvent.deltaY > 0) {
458            jQuery('body header.av_header_border_disabled').css({
459                'top': jQuery('.admin-bar').length ? '32px' : '0'
460              });
461          } else {
462            if( jQuery('.admin-bar').length > 0 ){
463              if( jQuery("header").hasClass("av_header_transparency")){
464                jQuery('body header.av_header_border_disabled').css({
465                  'top': 32 + barHeight
466                });
467              } else {
468                jQuery('body header.av_header_border_disabled').css({
469                  'top': '32px'
470                });
471              }
472            }else {
473              jQuery('body header.av_header_border_disabled').css({
474                'top': jQuery("header").hasClass("av_header_transparency") ? barHeight : '0'
475              });
476            }
477          }
478      });
479    }
480  },
481  supportNaymaTheme() {
482    if(njt_wp_data.wp_get_theme == 'Nayma' && jQuery(".njt-nofi-container").css('position') == 'fixed'){
483      jQuery(window).bind('mousewheel', function(event) {
484        let barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
485        if(jQuery('.njt-nofi-notification-bar').hasClass('njt-nofi-toggle-close')){
486          barHeight = 0
487        }
488        
489        if (event.originalEvent.wheelDelta < 0) {
490          if(jQuery('.admin-bar').length > 0) {
491            jQuery('body header .fixed-header').css({
492              'top': barHeight + 32
493            })
494          } else {
495            jQuery('body header .fixed-header').css({
496              'top': barHeight
497            })
498          }
499        }
500      });
501    }
502  },
503  supportKonteTheme() {
504    if(njt_wp_data.wp_get_theme == 'Konte' && jQuery(".njt-nofi-container").css('position') == 'fixed'){
505      jQuery(window).bind('mousewheel', function(event) {
506        let barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
507        var valueCookie = homeNotificationBar.getCookie('njt-close-notibar')
508        if (valueCookie == 'true'){
509            if(jQuery('.admin-bar').length > 0) {
510              if(jQuery('body header#masthead.header-sticky--normal').hasClass('sticky')) {
511                jQuery('body header#masthead.header-sticky--normal').css({
512                  'top': 32
513                })
514              } else {
515                jQuery('body header#masthead.header-sticky--normal').css({
516                  'top': 0
517                })
518              }
519            } else {
520              jQuery('body header#masthead.header-sticky--normal').css({
521                'top': 0
522              })
523            }
524        }else {
525          if (event.originalEvent.wheelDelta < 0) {
526            if(jQuery('.admin-bar').length > 0) {
527              jQuery('body header#masthead.header-sticky--normal.sticky').css({
528                'top': barHeight + 32
529              })
530            } else {
531              jQuery('body header#masthead.header-sticky--normal.sticky').css({
532                'top': barHeight
533              })
534            }
535          } else {
536            if(jQuery('.admin-bar').length > 0) {
537              if(jQuery('body header#masthead.header-sticky--normal').hasClass('sticky')) {
538                jQuery('body header#masthead.header-sticky--normal').css({
539                  'top': barHeight+32
540                })
541              } else {
542                jQuery('body header#masthead.header-sticky--normal').css({
543                  'top': barHeight
544                })
545              }
546            } else {
547              jQuery('body header#masthead.header-sticky--normal.sticky').css({
548                'top': barHeight
549              })
550            }
551          }
552        }
553      });
554    }
555  },
556  supportDiviTheme() {
557    if(njt_wp_data.wp_get_theme == 'Divi' ||  njt_wp_data.wp_get_theme !== 'Divi Child Theme for CDW Studios'){
558      const barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
559      setTimeout(function(){
560        if(jQuery('.admin-bar').length > 0) {
561          jQuery('header#main-header').css({
562            'top': barHeight + 32
563          })
564        } else {
565          jQuery('header#main-header').css({
566            'top': barHeight
567          })
568        }
569      }, 1000);
570      jQuery('body').animate({ 'padding-top': barHeight }, 1000)
571      jQuery('body').css({
572        'position': 'relative',
573      })
574
575      if (jQuery('.njt-nofi-notification-bar').is(":visible")) {
576        if(jQuery('.admin-bar').length > 0) {
577          jQuery('.et_pb_section_0_tb_header').css({
578            'top': '32px'
579          })
580          jQuery('.et_pb_section_1_tb_header').css({
581            'top': '62px'
582          })
583  
584          jQuery('.et_pb_section_0_tb_header.et_pb_sticky--top').css({
585            'top': '66px'
586          })
587          jQuery('.et_pb_section_1_tb_header.et_pb_sticky--top').css({
588            'top': '96px'
589          })
590        } else {
591          jQuery('.et_pb_section_0_tb_header').css({
592            'top': '0px'
593          })
594          jQuery('.et_pb_section_1_tb_header').css({
595            'top': '30px'
596          })
597  
598          jQuery('.et_pb_section_0_tb_header.et_pb_sticky--top').css({
599            'top': '34px'
600          })
601          jQuery('.et_pb_section_1_tb_header.et_pb_sticky--top').css({
602            'top': '64px'
603          })
604        }
605        
606      } else {
607        if(jQuery('.admin-bar').length > 0) { 
608          jQuery('.et_pb_section_0_tb_header').css({
609            'top': '32px'
610          })
611          jQuery('.et_pb_section_1_tb_header').css({
612            'top': '62px'
613          })
614  
615          jQuery('.et_pb_section_0_tb_header.et_pb_sticky--top').css({
616            'top': '32px'
617          })
618          jQuery('.et_pb_section_1_tb_header.et_pb_sticky--top').css({
619            'top': '62px'
620          })
621        } else {
622          jQuery('.et_pb_section_0_tb_header').css({
623            'top': '0px'
624          })
625          jQuery('.et_pb_section_1_tb_header').css({
626            'top': '30px'
627          })
628  
629          jQuery('.et_pb_section_0_tb_header.et_pb_sticky--top').css({
630            'top': '0px'
631          })
632          jQuery('.et_pb_section_1_tb_header.et_pb_sticky--top').css({
633            'top': '30px'
634          })
635        }
636        
637      }
638     
639    }
640  },
641  supportAccessPressParallaxTheme() {
642    if(njt_wp_data.wp_get_theme == 'AccessPress Parallax Pro Child'){
643      console.log(njt_wp_data.wp_get_theme);
644      const barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
645      setTimeout(function(){
646        if(jQuery('.admin-bar').length > 0) {
647          jQuery('header#masthead').css({
648            'top': barHeight + 32
649          })
650        } else {
651          jQuery('header#masthead').css({
652            'top': barHeight
653          })
654        }
655      }, 1000);
656      
657      var lastScrollTop = 0;
658      jQuery(window).on('scroll', function() {
659        if(homeNotificationBar.getCookie('njt-close-notibar') != 'true') {
660          st = jQuery(this).scrollTop();
661          if(st < lastScrollTop) {
662            
663          } else {
664            jQuery('#main-header.menu-fix').css({
665              'top': barHeight
666            })
667          }
668          lastScrollTop = st;
669        }
670      });
671    }
672  },
673  supportUncodeTheme() {
674    if(njt_wp_data.wp_get_theme == 'Uncode'){
675      const barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
676      setTimeout(function(){
677        jQuery('body').css({
678          'padding-top': barHeight
679        })
680      }, 1500);
681      jQuery(window).bind('mousewheel', function(event) {
682        if (event.originalEvent.wheelDelta < 0) {
683          setTimeout(function(){
684            jQuery('body').css({
685              'padding-top': barHeight
686            })
687          }, 1000);
688         
689        } else {
690          setTimeout(function(){
691            jQuery('body').css({
692              'padding-top': barHeight
693            })
694          }, 1000);
695        }
696      })
697    }
698  },
699  supportUptimeChildTheme() {
700    if(njt_wp_data.wp_get_theme == 'Uptime Child' && jQuery(".njt-nofi-container").css('position') == 'fixed'){
701      const barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
702      jQuery(window).bind('mousewheel', function(event) {
703        if(homeNotificationBar.getCookie('njt-close-notibar') != 'true') {
704          if (event.originalEvent.wheelDelta < 0) {
705            jQuery('.navbar.scrolled').css({
706              'top': barHeight
707            })
708          } else {
709            jQuery('.navbar').css({
710              'top': 0
711            })
712            jQuery('.navbar.scrolled').css({
713              'top': barHeight
714            })
715          }
716        }
717      })
718    }
719  },
720  supportThemifyUltraTheme() {
721    if (njt_wp_data.wp_get_theme === 'Themify Ultra') {
722        const barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
723        const isBarVisible = jQuery('.njt-nofi-notification-bar').is(':visible');
724        const hasAdminBar = jQuery('#wpadminbar').length > 0;
725        const offset = hasAdminBar ? 56 : 32;
726        
727        jQuery(window).on('wheel', function (event) {
728            if (isBarVisible) {
729                jQuery('#headerwrap.tf_box.tf_w, #headerwrap.tf_box.tf_w.fixed-header').css({
730                    'top': offset + 'px'
731                });
732            } else {
733                jQuery('#headerwrap').css({
734                    'top': '0px'
735                });
736            }
737        });
738    }
739},
740  supportSalient() {
741    if(njt_wp_data.wp_get_theme == 'Salient'){
742     
743      const barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
744      if(jQuery('.njt-nofi-notification-bar').is(':visible')) {
745        
746          jQuery('header#top').css({
747            'top': barHeight
748          })
749       
750      }
751    }
752  },
753  supportRadiateChild() {
754    if(njt_wp_data.wp_get_theme == 'Radiate Child'){
755      const barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
756      const isBarVisible = jQuery('.njt-nofi-notification-bar').is(':visible');
757      const hasAdminBar = jQuery('#wpadminbar').length > 0;
758      const offset = hasAdminBar ? 32: 0;
759      const paddingOffset = barHeight + offset
760
761      setTimeout(function(){
762        jQuery('body .header-wrap').css({
763          'top': paddingOffset + 'px'
764        })
765  
766        jQuery('body').css({
767          'padding-top': 0
768        });
769      }, 1000);
770
771      jQuery(window).on('wheel', function (event) {
772        if (isBarVisible) {
773            jQuery('body .header-wrap').css({
774              'top': paddingOffset + 'px'
775            });
776        } else {
777            jQuery('body .header-wrap').css({
778              'top': paddingOffset + 'px'
779            });
780        }
781      });
782    }
783  }
784}
785
786jQuery(document).ready(() => {
787  homeNotificationBar.hideBarWithCookie();
788  homeNotificationBar.setPaddingTop();
789  homeNotificationBar.actionButtonClose();
790  homeNotificationBar.customStyleBar();
791  homeNotificationBar.supportEnfoldTheme();
792  homeNotificationBar.supportNaymaTheme();
793  homeNotificationBar.supportKonteTheme();
794  homeNotificationBar.supportDiviTheme();
795  homeNotificationBar.supportAccessPressParallaxTheme();
796  homeNotificationBar.supportUncodeTheme();
797  homeNotificationBar.supportUptimeChildTheme();
798  homeNotificationBar.supportThemifyUltraTheme();
799  homeNotificationBar.supportRadiateChild();
800  setTimeout(
801    homeNotificationBar.supportSalient()
802    , 1500)
803  
804  if (njt_wp_data.is_customize_preview) {
805    homeNotificationBar.windownResizeforCustomize()
806  }
807  if(njt_wp_data.wp_get_theme == 'Essentials') {
808    const barHeight = jQuery('.njt-nofi-notification-bar').outerHeight();
809    if(njt_wp_data.hideCloseButton == 'close_button') {
810      if(njt_wp_data.isPositionFix) {
811        homeNotificationBar.supportEssentialsTheme();
812      }
813    } else {
814      if(njt_wp_data.isPositionFix) {
815        if(jQuery('.admin-bar').length > 0) {
816          // jQuery('body.admin-bar header#masthead').css({
817          //   'top': barHeight + 32
818          // })
819        } else {
820          // jQuery('body header#masthead').css({
821          //   'top': barHeight
822          // })
823        }
824      }
825    }
826    if(!njt_wp_data.isPositionFix) {
827      jQuery(window).bind('mousewheel', function(event) {
828        if (event.originalEvent.wheelDelta < 0) {
829          jQuery('body.admin-bar #masthead.pix-header.is-scroll').css({
830            'top': '32px'
831          })
832        } else {
833          jQuery('body.admin-bar #masthead.pix-header').css({
834            'top': '0'
835          })
836          jQuery('body.admin-bar #masthead.pix-header.is-scroll').css({
837            'top': '32px'
838          })
839        }
840      });
841    }
842  }
843})

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.