Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX Issue #34 #40

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
<link rel="stylesheet" type="text/css" href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<style>
body{
position: absolute;
height: 100%;
width: 100%;
}
</style>

<body>

Expand Down Expand Up @@ -54,7 +61,7 @@
<button title="Editor Help" class="btn-ide-action fa fa-question ease"></button>
<input type="checkbox" checked data-toggle="toggle" data-on="Dark" data-off="Light" class="themeSwitcher" >
<button title="Download Your Code" class="btn-ide-action fa fa-download ease"></button>
<button title="Go Fullscreen" class="btn-ide-action fa fa-expand ease"></button>
<button title="Go Fullscreen" onclick="fullscreen()" class="btn-ide-action fa fa-expand ease"></button>
<!-- <button title="Exit Fullscreen" class="btn-ide-action fa fa-compress ease"></button> -->
</div>
</div>
Expand All @@ -72,6 +79,20 @@
</div>
</div>

<script>
function fullscreen() {
var doc = document.documentElement;
if (doc.requestFullscreen) {
doc.requestFullscreen();
} else if (doc.webkitRequestFullscreen) {
doc.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
} else if (doc.mozRequestFullScreen) {
doc.mozRequestFullScreen();
}
}

</script>

<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
Expand Down