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 = | + | width = 180; |
} | } | ||
if(!height || isNaN(height)) { | if(!height || isNaN(height)) { | ||
− | height = | + | height = 280; |
} | } | ||
− | $(". | + | $(".ftoc_content").width(width).height(height); |
// update perfect scrollbar | // update perfect scrollbar | ||
− | $('. | + | $('.ftoc_content').perfectScrollbar('update'); |
} | } | ||
$(function() { | $(function() { | ||
− | $('. | + | $('.ftoc_content').perfectScrollbar(); |
}); | }); | ||
</script> | </script> |
Revision as of 00:58, 21 August 2014
Generates a floating Table of contents menu in a fixed position on the left hand side of the screen.