Difference between revisions of "Template:Toc"

From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 6: Line 6:
 
  $(".ftoc").hover(function() {
 
  $(".ftoc").hover(function() {
 
$(this).animate({left:'0px'}, 250);
 
$(this).animate({left:'0px'}, 250);
 +
        $(".ftoc_content").switchClass( "mw-collapsed", "x", 1000 );
 
         $(".ftoc_content").stop().fadeIn("fast");
 
         $(".ftoc_content").stop().fadeIn("fast");
 
  }, function() {
 
  }, function() {
 
$(this).animate({left:'-150px'}, 250);
 
$(this).animate({left:'-150px'}, 250);
 +
      $(".ftoc_content").switchClass( "x", "mw-collapsed", 1000 );
 
       $(".ftoc_content").stop().fadeOut("fast");
 
       $(".ftoc_content").stop().fadeOut("fast");
 
  });
 
  });
Line 15: Line 17:
 
</html>
 
</html>
 
<div class="ftoc">
 
<div class="ftoc">
  <span class="ftoc_content">__TOC__</span>
+
  <span class="ftoc_content mw-collapsed">__TOC__</span>
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Revision as of 00:57, 21 August 2014

Generates a floating Table of contents menu in a fixed position on the left hand side of the screen.