PageSourceSearch

https://windcloud.ai/wp-content/themes/consultax/js/header-footer.js?ver=20190221

js windcloud.ai collected 2026-10-05 13:18:12 UTC 2,604 bytes, 80 lines download raw bytes

1(function($) {
2  "use strict";
3	/* ========================================== 
4	Sticky Header Desktop
5	========================================== */
6	$(window).on("scroll", function(){
7		var site_header = $('#site-header').outerHeight();
8		var main_header_top = $('.main-header-top').outerHeight();
9		var header_sticky = site_header - topbar_header;
10
11		if( $('#header_topbar').length ){
12		    var topbar_header = $('#header_topbar').outerHeight();		    
13		}else{
14			var topbar_header = 1;
15		}		
16		
17	    if ($(window).scrollTop() >= topbar_header) {	    	
18	        $('.sticky-header').addClass('sticked');	        
19	    }else {
20	        $('.sticky-header').removeClass('sticked');		              
21	    }
22	});
23
24	/* ========================================== 
25	Search on Header
26	========================================== */
27	$('.toggle_search').on("click", function(){
28		$(this).toggleClass( "active" );
29        $('.h-search-form-field').toggleClass('show');
30        if ($(this).find('i').hasClass( "fa-search" )) {
31       		$('.toggle_search > i').removeClass( "fa-search" ).addClass("fa-times");
32        }else{
33       		$('.toggle_search > i').removeClass( "fa-times" ).addClass("fa-search");
34        }
35    });
36
37    /* ========================================== 
38	Header Mobile
39	========================================== */
40	// mobile_mainmenu create span
41	$('.collapse .mobile_mainmenu li:has(ul)').prepend('<span class="arrow"><i class="fa fa-plus"></i></span>');
42
43	$( "#mmenu_toggle" ).on('click', function() {
44		$(this).toggleClass( "active" );
45
46		if ($(this).hasClass( "active" )) {
47			$('.mobile_nav').stop(true, true).slideDown();
48		}else{
49			$('.mobile_nav').stop(true, true).slideUp();
50		}		
51	});
52
53	$(".mobile_mainmenu > li span.arrow").click(function() {
54        $(this).parent().find("> ul").stop(true, true).slideToggle()
55        $(this).toggleClass( "active" ); 
56    });
57
58    if ($('#back-to-top').length) {
59	    var scrollTrigger = 500, // px
60	        backToTop = function () {
61	            var scrollTop = $(window).scrollTop();
62	            if (scrollTop > scrollTrigger) {
63	                $('#back-to-top').addClass('show');
64	            } else {
65	                $('#back-to-top').removeClass('show');
66	            }
67	        };
68	    backToTop();
69	    $(window).on('scroll', function () {
70	        backToTop();
71	    });
72	    $('#back-to-top').on('click', function (e) {
73	        e.preventDefault();
74	        $('html,body').animate({
75	            scrollTop: 0
76	        }, 700);
77	    });	
78    }
79
80})(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.