You can make the buttons fixed by using 'position: fixed'. Examples:
Code:
<button onClick="menu1.toggle()" class="sideviewtoggle" style="position: fixed; top:2px; left:2px">Toggle Menu 1</button>
<button onClick="menu2.toggle()" class="sideviewtoggle" style="position: fixed; top:2px; right: 2px">Toggle Menu 2</button>
Note that these positions given to the toggle buttons will make them invisible when the menu(s) expand(s). In order for the buttons not to be hidden by the menus, you have to make sure that the top position for the menus is not '0' (= the default top position in sidetogglemenu.js), but, say, '50px' (or higher). It's very easy to edit sidetogglemenu.js. Open the file, look for the line that starts with $menu = $(menuref).css, then replace top: 0 with top: '50px' (or something similar). You also have to make a changement in sidetogglemenu.css. Open that file, look for height: 100% and replace that with height:calc(100% - 50px).
Bookmarks