marble3 / mountFullscreenButton
Function: mountFullscreenButton()
mountFullscreenButton(
container): () =>void
Defined in: src/fullscreen.ts:15
Adds a fullscreen toggle to the top right of container. It puts the whole page in fullscreen and, where the browser can, holds it in landscape. Where the Fullscreen API is missing the button stays hidden rather than be a dead control.
Parameters
container
HTMLElement
Returns
A function that removes the button.
() => void