title: What to put inside jQuery(document).ready(function()
body: <p>Been trying to get a javascript gallery to run in wordpress, but I'm not too sure what to put into the .ready(function) in order to run the gallery. The original page to the jQuery function is here: <a href="http://manos.malihu.gr/simple-jquery-fullscreen-image-gallery/2" rel="nofollow">http://manos.malihu.gr/simple-jquery-fullscreen-image-gallery/2</a></p>
  
  <p>I assume that I need to run some function that will run the entire javascript file, but I'm not quite sure what that function might be. Sorry for being so new to this, but thanks so much for any help! </p>
  
  <pre><code>function malihu_gallery() {
  if (!is_admin()) {
  
      // Enqueue Malihu Gallery JavaScript
      wp_register_script('malihu-jquery-image-gallery', get_template_directory_uri(). '/js/malihu-jquery-image-gallery.js', array('jquery'), 1.0, true );
      wp_enqueue_script('malihu-jquery-image-gallery'); 
  
      // Enqueue Malihu Gallery Stylesheet
      wp_register_style( 'malihu-style', get_template_directory_uri() . '/CSS/malihu_gallery.css', 'all' );
      wp_enqueue_style('malihu-style' );
  
      function gallery_settings () { ?&gt;
      &lt;script type="text/javascript"&gt;
          jQuery(document).ready(function() {
              // What do I put in here?
          });
      &lt;/script&gt;&lt;?php
      }
    }
  }
  
  add_action('init', 'malihu_gallery');
  </code></pre>