Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Enable the full screen mode #6

Open
shamilnabiyev opened this issue Oct 25, 2019 · 0 comments
Open

Enable the full screen mode #6

shamilnabiyev opened this issue Oct 25, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@shamilnabiyev
Copy link
Owner

Enable the full screen mode for the control buttons and the jointjs paper. Wrap them into a single div container

function enterFullscreen(element) {
  if(element.requestFullscreen) {
    element.requestFullscreen();
  } else if(element.mozRequestFullScreen) {
    element.mozRequestFullScreen();
  } else if(element.msRequestFullscreen) {
    element.msRequestFullscreen();
  } else if(element.webkitRequestFullscreen) {
    element.webkitRequestFullscreen();
  }
}

enterFullscreen(document.documentElement);               // the whole page
enterFullscreen(document.getElementById("ControllersAndPaper")); // an element
@shamilnabiyev shamilnabiyev added the enhancement New feature or request label Oct 25, 2019
@shamilnabiyev shamilnabiyev self-assigned this Oct 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant