mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 08:18:52 -05:00
* update website
This commit is contained in:
parent
5b7d505bc4
commit
a43946669f
33
website/getting-started/fullscreen.js
Normal file
33
website/getting-started/fullscreen.js
Normal file
@ -0,0 +1,33 @@
|
||||
|
||||
function isFullScreen() {
|
||||
return (document.fullScreenElement && document.fullScreenElement !== null) || document.mozFullScreen || document.webkitIsFullScreen;
|
||||
}
|
||||
|
||||
function requestFullScreen(element) {
|
||||
if (element.requestFullscreen)
|
||||
element.requestFullscreen();
|
||||
else if (element.msRequestFullscreen)
|
||||
element.msRequestFullscreen();
|
||||
else if (element.mozRequestFullScreen)
|
||||
element.mozRequestFullScreen();
|
||||
else if (element.webkitRequestFullscreen)
|
||||
element.webkitRequestFullscreen();
|
||||
}
|
||||
|
||||
function exitFullScreen() {
|
||||
if (document.exitFullscreen)
|
||||
document.exitFullscreen();
|
||||
else if (document.msExitFullscreen)
|
||||
document.msExitFullscreen();
|
||||
else if (document.mozCancelFullScreen)
|
||||
document.mozCancelFullScreen();
|
||||
else if (document.webkitExitFullscreen)
|
||||
document.webkitExitFullscreen();
|
||||
}
|
||||
|
||||
function toggleFullScreen(element) {
|
||||
if (isFullScreen())
|
||||
exitFullScreen();
|
||||
else
|
||||
requestFullScreen(element || document.documentElement);
|
||||
}
|
@ -4,6 +4,7 @@
|
||||
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
|
||||
<script src="galleria/galleria-1.4.2.min.js"></script>
|
||||
<script src="galleria/themes/classic/galleria.classic.min.js"></script>
|
||||
<script src="fullscreen.js"></script>
|
||||
<link rel="stylesheet" href="galleria/themes/classic/galleria.classic.css">
|
||||
<style>
|
||||
body{ margin: 0; padding: 0; background: #000; }
|
||||
@ -15,7 +16,7 @@
|
||||
<title>Getting Started</title>
|
||||
</head>
|
||||
<body>
|
||||
<img class="fullscreen" src="fullscreen.png" width="16" height="16" onclick="$('.galleria').data('galleria').toggleFullscreen()" />
|
||||
<img class="fullscreen" src="fullscreen.png" width="16" height="16" onclick="toggleFullScreen()" />
|
||||
<div class="galleria"></div>
|
||||
<script>
|
||||
var data = [
|
||||
|
@ -214,7 +214,7 @@
|
||||
<p>If you have any questions or problems just to check the <a href="https://www.filebot.net/forums/viewtopic.php?f=3&t=7">FAQ</a> or search the <a href="https://www.filebot.net/forums/">forums</a>.</p>
|
||||
|
||||
<div class="video">
|
||||
<iframe src="getting-started/index.html" frameborder="0" allowfullscreen="true"></iframe>
|
||||
<iframe src="http://app.filebot.net/getting-started/index.html" frameborder="0" allowfullscreen="true"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user