ninja_forms_konami

The Ninja Forms ninja forms konami function.

Description

ninja_forms_konami(); 

Usage

  1. if ( !function_exists( 'ninja_forms_konami' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/ninja-forms.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ninja_forms_konami(); 
  7.  

Defined (1)

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

/deprecated/ninja-forms.php  
  1. function ninja_forms_konami() { 
  2.  
  3. if( ! ninja_forms_three_calc_check() ) return; 
  4.  
  5. wp_enqueue_script( 'cheet', NINJA_FORMS_URL . 'assets/js/lib/cheet.min.js', array( 'jquery' ) ); 
  6. wp_enqueue_script( 'howler', NINJA_FORMS_URL . 'assets/js/lib/howler.core.min.js', array( 'jquery' ) ); 
  7. wp_localize_script( 'howler', 'nfUnlock', array( 'audioUrl' => NINJA_FORMS_URL . 'assets/audio/smw_power_up.wav', 'aboutPage' => menu_page_url( 'ninja-forms-three', false ) ) ); 
  8. ?> 
  9. <script type="text/javascript"> 
  10.  
  11. jQuery( document ).ready( function() { 
  12. var sound = new Howl({ 
  13. src: [ nfUnlock.audioUrl ],  
  14. onend: function() { 
  15. window.scrollTo( 0, 0 ); 
  16. jQuery( '#nf-admin-notice-three-is-coming' ).fadeOut( 'slow', function() { 
  17. jQuery( '#nf-admin-notice-upgrade' ).fadeIn( 'slow', function() { 
  18. window.location = nfUnlock.aboutPage; 
  19. }); 
  20. }); 
  21. }); 
  22.  
  23. cheet('* * * * * * * * b a', function () { 
  24. sound.play(); 
  25. }); 
  26. } ); 
  27. </script> 
  28. <?php