1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

Views -> Controllers, Moved previousLocationCfi logic to Reader, Bookmarks in Reader

This commit is contained in:
Fred Chasen 2014-01-02 20:32:51 -08:00
parent 3bfadb2abc
commit e4be17a428
24 changed files with 1363 additions and 1003 deletions

View file

@ -0,0 +1,27 @@
EPUBJS.reader.SettingsController = function() {
var book = this.book;
var $settings = $("#settings-modal"),
$overlay = $(".overlay");
var show = function() {
$settings.addClass("md-show");
};
var hide = function() {
$settings.removeClass("md-show");
};
$settings.find(".closer").on("click", function() {
hide();
});
$overlay.on("click", function() {
hide();
});
return {
"show" : show,
"hide" : hide
};
};