mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
Adds fullscreen support to Epub.js controls via screenfull.js.
This commit is contained in:
parent
2ed69e951f
commit
c3782f78b0
12 changed files with 63 additions and 19 deletions
|
@ -273,6 +273,9 @@ EPUBJSR.app.init = (function($){
|
|||
$settingLink = $("#setting"),
|
||||
$settings = $("#settingsPanel"),
|
||||
$toc = $("#toc"),
|
||||
$fullscreen = $("#fullscreen"),
|
||||
$fullscreenicon = $("#fullscreenicon"),
|
||||
$cancelfullscreenicon = $("#cancelfullscreenicon"),
|
||||
$window = $(window);
|
||||
|
||||
|
||||
|
@ -302,7 +305,11 @@ EPUBJSR.app.init = (function($){
|
|||
|
||||
});
|
||||
|
||||
|
||||
$fullscreen.on("click", function () {
|
||||
screenfull.toggle($('#container')[0]);
|
||||
$fullscreenicon.toggle();
|
||||
$cancelfullscreenicon.toggle();
|
||||
});
|
||||
|
||||
var lock = false;
|
||||
$(document).keydown(function(e){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue