1
0
Fork 0
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:
RawKStar77 2013-11-11 18:22:27 -08:00
parent 2ed69e951f
commit c3782f78b0
12 changed files with 63 additions and 19 deletions

View file

@ -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){