PageSourceSearch

https://www.cmdengine.com/wp-content/plugins/cmd-child/assets/js/custom.js?ver=9.9.0

js cmdengine.com collected 2026-10-02 13:10:39 UTC 3,325 bytes, 112 lines download raw bytes

1jQuery(document).ready(function(){
2   
3    var inputText = "";
4    jQuery(".cmd-search-form.oxy-search-form input[type=text]").on("keyup",function(){
5        inputText = jQuery(this).val();
6    });
7    
8    jQuery(".cmd-search-form.oxy-search-form").on("click","#searchsubmit", function(e){
9		
10		jQuery(".oxy-nav-menu .oxy-nav-menu-list li.menu-item a").delay(200).toggleClass("small");
11         
12        if((jQuery(".cmd-search-form.oxy-search-form").hasClass("cmd-search-form-inactive")) && inputText !== ''){
13			
14            return true;
15			
16        }else if(inputText == ''){
17            
18            e.preventDefault();
19            jQuery(".cmd-search-form.oxy-search-form").toggleClass("cmd-search-form-inactive");
20        }
21    });
22   
23    
24    
25	jQuery(window).scroll(function() {
26    
27		if (jQuery(window).scrollTop() >= 1) {
28			jQuery("body").addClass("header-fixed");
29						
30		}else{
31			jQuery("body").removeClass("header-fixed");
32		} 		
33	});
34    
35    
36    /*MEGA MENU*/
37    
38    var activeMegaMenu = '';
39    if(window.angular) { 
40      return; 
41    }
42    
43    jQuery('.oxel_megamenu__wrapper').css({
44        'position': 'absolute',
45        'left': 0,
46        'right': 0,
47        'top' : 0
48    });
49 	
50
51    jQuery('a[megamenu-link-id="1"]').on('click', function(e) {
52      
53        e.preventDefault();
54		if( !jQuery(this).hasClass('oxel_megamenu__wrapper') ) {
55            
56            activeMegaMenu = jQuery(this).attr('megamenu-link-id');
57            var headerHeight = jQuery(".oxy-header-row").outerHeight();
58            //var bottom = jQuery(this).offset().top + jQuery(this).outerHeight(true);
59        
60            var targetContainer = jQuery(".oxel_megamenu__wrapper[megamenu-link-id='" + activeMegaMenu + "']");
61            targetContainer.css({
62		      'top' : '0 !important',
63		      'padding-top' : headerHeight + 70,
64	       });
65            targetContainer.toggleClass('oxel_megamenu__wrapper--hidden');
66
67        }
68		jQuery(this).toggleClass("open-menu");
69      
70    });
71    
72    /*jQuery('[megamenu-link-id]').mouseleave( function(e) {
73      
74      if( e.relatedTarget.closest('[megamenu-link-id]') != null && e.relatedTarget.closest('[megamenu-link-id]').getAttribute('megamenu-link-id') != activeMegaMenu ) {
75      
76        var targetContainer = jQuery(".oxel_megamenu__wrapper[megamenu-link-id='" + activeMegaMenu + "']");
77      
78      targetContainer.addClass('oxel_megamenu__wrapper--hidden');
79        
80      } else if( e.relatedTarget.closest('[megamenu-link-id]') == null ) {
81        var targetContainer = jQuery(".oxel_megamenu__wrapper[megamenu-link-id='" + activeMegaMenu + "']");
82      
83        targetContainer.addClass('oxel_megamenu__wrapper--hidden');
84      }
85      
86    });*/
87    
88    jQuery('.oxel_megamenu__wrapper').focusin( function() {
89      
90      jQuery(this).removeClass('oxel_megamenu__wrapper--hidden');
91      
92    });
93    
94    jQuery('.oxel_megamenu__wrapper').focusout( function() {
95      
96      jQuery(this).addClass('oxel_megamenu__wrapper--hidden');
97      
98    });
99	
100	if(jQuery('.wpml-ls .wpml-ls-sub-menu li').length){
101		jQuery(".wpml-ls-legacy-dropdown").addClass("has-translation");
102	}
103    
104});
105  
106jQuery('.oxel_megamenu__close-icon').click( function() {
107    
108    jQuery(this).closest('.oxel_megamenu__wrapper').addClass('oxel_megamenu__wrapper--hidden');
109    
110});
111
112

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.