mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
added ability to change font size. todo: refresh on select newfont, better way to hide/show settings
This commit is contained in:
parent
44b7b35ba0
commit
a507121b51
5 changed files with 95 additions and 1 deletions
|
@ -69,6 +69,7 @@ FP.Chapter.prototype.error = function(err){
|
|||
}
|
||||
|
||||
FP.Chapter.prototype.formatSpread = function(){
|
||||
|
||||
var divisor = 2,
|
||||
cutoff = 800;
|
||||
|
||||
|
@ -100,6 +101,7 @@ FP.Chapter.prototype.formatSpread = function(){
|
|||
|
||||
this.spreadWidth = (this.colWidth + this.gap) * divisor;
|
||||
|
||||
this.bodyEl.style.fontSize = localStorage.getItem("fontSize") || "medium";
|
||||
//-- Clear Margins
|
||||
this.bodyEl.style.visibility = "hidden";
|
||||
this.bodyEl.style.margin = "0";
|
||||
|
|
|
@ -11,6 +11,7 @@ FP.core.getEls = function(classes) {
|
|||
return document.getElementsByClassName(classes);
|
||||
}
|
||||
|
||||
|
||||
FP.core.loadXML = function(url, callback){
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', url, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue