PageSourceSearch

https://www.workitwomen.com/wp-content/themes/hello_sassafras/js/global.js

js workitwomen.com collected 2026-09-29 09:26:58 UTC 1,508 bytes, 64 lines download raw bytes

1jQuery(function( $ ){
2
3if( $( document ).scrollTop() > 0 ){
4$( '.site-header' ).addClass( 'light' );
5}
6
7// Add opacity class to site header
8$( document ).on('scroll', function(){
9
10if ( $( document ).scrollTop() > 0 ){
11$( '.site-header' ).addClass( 'light' );
12
13} else {
14$( '.site-header' ).removeClass( 'light' );
15}
16
17});
18
19jQuery(function( $ ){
20
21$('#main-nav-search-link').click(function(){
22$('.search-div').show('slow');
23});
24
25$("*", document.body).click(function(event){
26// event.stopPropagation();
27var el = $(event.target);
28var gsfrm = $(el).closest('form');
29if(el.attr('id') !='main-nav-search-link' && el.attr('role') != 'search' && gsfrm.attr('role') != 'search'){
30$('.search-div').hide('slow');
31}
32});
33
34});
35});
36
37jQuery(document).ready(function($){
38// Scroll (in pixels) after which the "To Top" link is shown
39var offset = 300,
40//Scroll (in pixels) after which the "back to top" link opacity is reduced
41offset_opacity = 1200,
42//Duration of the top scrolling animation (in ms)
43scroll_top_duration = 700,
44//Get the "To Top" link
45$back_to_top = $('.to-top');
46
47//Visible or not "To Top" link
48$(window).scroll(function(){
49( $(this).scrollTop() > offset ) ? $back_to_top.addClass('top-is-visible') : $back_to_top.removeClass('top-is-visible top-fade-out');
50if( $(this).scrollTop() > offset_opacity ) {
51$back_to_top.addClass('top-fade-out');
52}
53});
54
55//Smoothy scroll to top
56$back_to_top.on('click', function(event){
57event.preventDefault();
58$('body,html').animate({
59scrollTop: 0 ,
60}, scroll_top_duration
61);
62});
63
64});

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.