title: Slide toggle nav to open on page load
body: <p>I'm using a script for a touch swipe left hand sliding nav. 
  How do I go about getting the nav to have the open toggle position when the page loads (instead of it being closed).</p>
  
  <pre><code>&lt;script&gt;
  $(window).load(function(){
  $("[data-toggle]").click(function() {
  var toggle_el = $(this).data("toggle");
  $(toggle_el).toggleClass("open-sidebar");
  });
  
  $(".swipe-area").swipe({
  swipeStatus:function(event, phase, direction, distance, duration, fingers)
  {
  if (phase=="move" &amp;&amp; direction =="right") {
  $(".container").addClass("open-sidebar");
  return false;
  }
  if (phase=="move" &amp;&amp; direction =="left") {
  $(".container").removeClass("open-sidebar");
  return false;
  }
  }
  }); 
  });
  &lt;/script&gt;
  </code></pre>