Difference between revisions of "Template:Toc"

From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 34: Line 34:
  
 
         if(!width || isNaN(width)) {
 
         if(!width || isNaN(width)) {
             width = 200;
+
             width = 180;
 
         }
 
         }
 
         if(!height || isNaN(height)) {
 
         if(!height || isNaN(height)) {
             height = 300;
+
             height = 280;
 
         }
 
         }
         $(".ftoc").width(width).height(height);
+
         $(".ftoc_content").width(width).height(height);
  
 
         // update perfect scrollbar
 
         // update perfect scrollbar
         $('.ftoc').perfectScrollbar('update');
+
         $('.ftoc_content').perfectScrollbar('update');
 
     }
 
     }
 
     $(function() {
 
     $(function() {
         $('.ftoc').perfectScrollbar();
+
         $('.ftoc_content').perfectScrollbar();
 
     });
 
     });
 
</script>
 
</script>

Revision as of 01:58, 21 August 2014

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