function toggleFullscreen(el) {
  if (isFullScreen()) {
    exitFullscreen();
  } else {
    requestFullscreen(el);
  }
}
/**
 * Toggles the given element into and out of fullscreen mode
 *
 * @param {Element} el
 */
Toggles the given element into and out of fullscreen mode
@param {Element} el
Toggles the given element into and out of fullscreen mode @param { Element } el
function toggleFullscreen(el) {
  if (isFullScreen()) {
    exitFullscreen();
  } else {
    requestFullscreen(el);
  }
}
function toggleFullscreen ( el ) { if ( isFullScreen ( ) ) { exitFullscreen ( ) ; } else { requestFullscreen ( el ) ; } }
Toggles the given element into and out of fullscreen mode
 @param {Element} el
Toggles the given element into and out of fullscreen mode @param { Element } el