Commit 54b751f5 authored by sbiego's avatar sbiego

fixed fullscreen button and alert behaviour, images of the slider still missing in fullscreen mode

parent 2de8762b
......@@ -80,12 +80,28 @@
<!-- Fullscreen !-->
<script>
/*function toggleFullscreenButton(style) {
var fs_icon = document.getElementById("fullscreen-icon");
var fs_alert = document.getElementById("fullscreen-alert");
if(style == "maximize") {
fs_icon.className = "font-icon-resize-small";
fs_alert.style.visibility = "hidden";
}
else {
fs_icon.className = "font-icon-resize-full";
}
}*/
function toggleFullscreen(elem) {
elem = elem || document.documentElement;
var fs_icon = document.getElementById("fullscreen-icon");
var fs_alert = document.getElementById("fullscreen-alert");
if (!document.fullscreenElement && !document.mozFullScreenElement &&
!document.webkitFullscreenElement && !document.msFullscreenElement) {
document.getElementById("fullscreen-icon").className = "font-icon-resize-small";
document.getElementById("fullscreen-alert").style.visibility = "hidden";
fs_icon.className = "font-icon-resize-small";
if(fs_alert != null)
fs_alert.style.visibility = "hidden";
if (elem.requestFullscreen) {
elem.requestFullscreen();
} else if (elem.msRequestFullscreen) {
......@@ -96,7 +112,7 @@
elem.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
}
} else {
document.getElementById("fullscreen-icon").className = "font-icon-resize-full";
fs_icon.className = "font-icon-resize-full";
if (document.exitFullscreen) {
document.exitFullscreen();
} else if (document.msExitFullscreen) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment