$(function() {
  $('#fullscreen').click(function() {
    switch (true) {
      case document.fullScreenEnabled:
        if (document.fullscreenElement) {
          document.exitFullscreen();
        } else {
          document.documentElement.requestFullscreen();
        }
        break;
      case document.webkitFullscreenEnabled:
        if (document.webkitFullscreenElement) {
          document.webkitExitFullscreen();
        } else {
          document.documentElement.webkitRequestFullscreen();
        }
        break;
      case document.mozFullScreenEnabled:
        if (document.mozFullScreenElement) {
          document.mozCancelFullScreen();
        } else {
          document.documentElement.mozRequestFullScreen();
        }
        break;
      case document.msFullScreenEnabled:
        if (document.msFullScreenElement) {
          document.msExitFullScreen();
        } else {
          document.documentElement.msRequestFullScreen();
        }
        break;
    }
  });
});

$(function() {
  $('#fullscreen').click(function() {
    switch (true) {
      case document.fullScreenEnabled:
        if (document.fullscreenElement) {
          document.exitFullscreen();
        } else {
          document.documentElement.requestFullscreen();
        }
        break;
      case document.webkitFullscreenEnabled:
        if (document.webkitFullscreenElement) {
          document.webkitExitFullscreen();
        } else {
          document.documentElement.webkitRequestFullscreen();
        }
        break;
      case document.mozFullScreenEnabled:
        if (document.mozFullScreenElement) {
          document.mozCancelFullScreen();
        } else {
          document.documentElement.mozRequestFullScreen();
        }
        break;
      case document.msFullscreenEnabled:
        if (document.msFullscreenElement) {
          document.msExitFullscreen();
        } else {
          document.documentElement.msRequestFullscreen();
        }
        break;
    }
  });
});

Fix typos in fullscreen methods for IE11
Fix typos in fullscreen methods for IE11

https://bugzilla.redhat.com/show_bug.cgi?id=1520105
