$(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;
    }
  });
});

@@ -774,25 +774,25 @@
 ument.msFull
-S
+s
 creenEnabled
@@ -816,25 +816,25 @@
 ument.msFull
-S
+s
 creenElement
@@ -862,25 +862,25 @@
 t.msExitFull
-S
+s
 creen();%0A   
@@ -933,33 +933,33 @@
 nt.msRequestFull
-S
+s
 creen();%0A       

Fix typos in fullscreen methods for IE11