diff --git a/demo/css/main.css b/demo/css/main.css index 1c3170d..4a8a7d0 100755 --- a/demo/css/main.css +++ b/demo/css/main.css @@ -732,9 +732,13 @@ input:-moz-placeholder { } /* For iPhone portrait layouts only */ @media only screen and (max-device-width: 480px) and (orientation: portrait) { + #viewer { + width: 256px; + height: 432px; + } #viewer iframe { width: 256px; - height: 468px; + height: 432px; } } /* For iPhone landscape layouts only */ diff --git a/demo/dev.html b/demo/dev.html index 4e87a93..7bee6ab 100755 --- a/demo/dev.html +++ b/demo/dev.html @@ -5,7 +5,7 @@ - + diff --git a/src/replace.js b/src/replace.js index afdbac0..ad66b01 100644 --- a/src/replace.js +++ b/src/replace.js @@ -101,7 +101,7 @@ EPUBJS.replace.stylesheets = function(_store, full) { EPUBJS.replace.cssUrls = function(_store, base, text){ var deferred = new RSVP.defer(), promises = [], - matches = text.match(/url\(\'?\"?([^\'|^\"|^\)]*)\'?\"?\)/g); + matches = text.match(/url\(\'?\"?([^\'|^\"^\)]*)\'?\"?\)/g); if(!_store) return;