File "tib-fullscreen.min-1.js"
Path: /ThinkIB/chem/js/tib-fullscreen/tib-fullscreenmin-1js
File size: 1.15 KB
MIME-type: text/plain
Charset: utf-8
$(document).ready((function(){function e(){var e=document.getElementById("main-article");e.requestFullScreen?document.fullScreen||e.requestFullscreen():e.mozRequestFullScreen?document.mozFullScreen||e.mozRequestFullScreen():e.webkitRequestFullScreen&&(document.webkitIsFullScreen||e.webkitRequestFullScreen())}function n(){var e=document.getElementById("main-article");e.requestFullScreen?document.fullScreen&&document.exitFullscreen():e.mozRequestFullScreen?document.mozFullScreen&&document.mozCancelFullScreen():e.webkitRequestFullScreen&&document.webkitIsFullScreen&&document.webkitCancelFullScreen()}function t(){null==document.fullscreenElement&&$("ul.page-actions").removeClass("hidden")}$(".presentation").click((function(n){n.preventDefault(),$.when(e()).then($("ul.page-actions").addClass("hidden"))})),$("#exit-fs").click((function(e){e.preventDefault(),$.when(n()).then($("ul.page-actions").removeClass("hidden"))})),document.addEventListener&&(document.addEventListener("fullscreenchange",t,!1),document.addEventListener("mozfullscreenchange",t,!1),document.addEventListener("MSFullscreenChange",t,!1),document.addEventListener("webkitfullscreenchange",t,!1))}));