Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Web-Comic-Reader
Commits
5f6b4225
Commit
5f6b4225
authored
Apr 21, 2017
by
afzafri
Browse files
Remove javascript fullscreen function, not needed anymore
parent
60b99236
Changes
1
Hide whitespace changes
Inline
Side-by-side
assets/js/script.js
View file @
5f6b4225
...
...
@@ -130,34 +130,4 @@ $(document).ready(function(){
});
}
// toggle full screen
$
(
'
#btnFullscreen
'
).
click
(
function
(){
//toggleFullScreen(document.body);
toggleFullScreen
();
});
// function for fullscreen
// thanks http://stackoverflow.com/a/10627148/5784900
function
toggleFullScreen
()
{
if
((
document
.
fullScreenElement
&&
document
.
fullScreenElement
!==
null
)
||
(
!
document
.
mozFullScreen
&&
!
document
.
webkitIsFullScreen
))
{
if
(
document
.
documentElement
.
requestFullScreen
)
{
document
.
documentElement
.
requestFullScreen
();
}
else
if
(
document
.
documentElement
.
mozRequestFullScreen
)
{
document
.
documentElement
.
mozRequestFullScreen
();
}
else
if
(
document
.
documentElement
.
webkitRequestFullScreen
)
{
document
.
documentElement
.
webkitRequestFullScreen
(
Element
.
ALLOW_KEYBOARD_INPUT
);
}
}
else
{
if
(
document
.
cancelFullScreen
)
{
document
.
cancelFullScreen
();
}
else
if
(
document
.
mozCancelFullScreen
)
{
document
.
mozCancelFullScreen
();
}
else
if
(
document
.
webkitCancelFullScreen
)
{
document
.
webkitCancelFullScreen
();
}
}
}
});
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment