Difference between revisions of "Template:Toc"

From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 14: Line 14:
 
  });
 
  });
 
});
 
});
 +
</script>
 +
<script>
 +
    function changeSize() {
 +
        var width = parseInt($("#Width").val());
 +
        var height = parseInt($("#Height").val());
 +
 +
        if(!width || isNaN(width)) {
 +
            width = 200;
 +
        }
 +
        if(!height || isNaN(height)) {
 +
            height = 300;
 +
        }
 +
        $(".ftoc").width(width).height(height);
 +
 +
        // update perfect scrollbar
 +
        $('.ftoc').perfectScrollbar('update');
 +
    }
 +
    $(function() {
 +
        $('.ftoc').perfectScrollbar();
 +
    });
 
</script>
 
</script>
 
</html>
 
</html>

Revision as of 00:53, 21 August 2014

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