Template:Toc: Difference between revisions

From The Official Visionaire Studio: Adventure Game Engine Wiki
No edit summary
No edit summary
Line 8: Line 8:
  $('.ftoc_content').slimScroll({
  $('.ftoc_content').slimScroll({
   color: '#5bc0de',
   color: '#5bc0de',
   height: '290',
   height: '390',
   railVisible: true,
   railVisible: true,
   railOpacity: 0.2,
   railOpacity: 0.2,
Line 23: Line 23:
  }, function() {
  }, function() {
   $(".ftoc_content").stop().fadeOut("fast", function() {
   $(".ftoc_content").stop().fadeOut("fast", function() {
   $(".ftoc").stop().animate({left:'-150px'}, 250);
   $(".ftoc").stop().animate({left:'-250px'}, 250);
   });
   });
  });
  });
Line 29: Line 29:
$(".ftoc").hover(function() {
$(".ftoc").hover(function() {
  $(".ftoc").stop().animate({left:'0px'}, 250, function() {
  $(".ftoc").stop().animate({left:'0px'}, 250, function() {
  $(".ftoc_content").stop().animate({left:'5px'}, 250);
  $(".ftoc_content").stop().animate({left:'5px'}, 500);
   });
   });
  }, function() {
  }, function() {
  $(".ftoc").stop().animate({left:'-150px'}, 250);
  $(".ftoc").stop().animate({left:'-250px'}, 250);
  $(".ftoc_content").stop().animate({left:'-500px'}, 250);
  $(".ftoc_content").stop().animate({left:'-500px'}, 250);
  });
  });

Revision as of 02:07, 21 August 2014

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