hook_custom_javascript

The SKT Pathway hook custom javascript function.

Description

hook_custom_javascript(); 

Usage

  1. if ( !function_exists( 'hook_custom_javascript' ) ) { 
  2. require_once '/inc/custom-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = hook_custom_javascript(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/custom-functions.php  
  1. function hook_custom_javascript() {?> 
  2. <script> 
  3. jQuery(document).ready(function() { 
  4. jQuery("#header-bottom-shape").click(function() { 
  5. if ( jQuery( ".show_hide_header" ).is( ":hidden" ) ) { 
  6. jQuery( ".show_hide_header" ).slideDown("slow"); 
  7. } else { 
  8. jQuery( ".show_hide_header" ).slideUp("slow"); 
  9. jQuery( this ).toggleClass('showDown'); 
  10. }); 
  11. jQuery( "#site-nav li:last" ).addClass("noBottomBorder"); 
  12. jQuery( "#site-nav li:parent" ).find('ul.sub-menu').parent().addClass("haschild"); 
  13. }); 
  14. </script><?php