I'm building a HTML5 game consisting of a full window canvas. I want to occasionally display a panel over the canvas, for displaying settings etc.
One way of achieving this would be to have a <div id="panel">
which is hidden by default and absolutely positioned on top of the canvas. When the user want the panel to be displayed then I can simply use jQuery to show the panel.
I also want the server to be able to open this panel maybe using the fragment identifier.
Please could somebody explain (one of the) best ways of displaying and hiding panels.