mirror of
https://github.com/Yetangitu/owncloud-apps.git
synced 2025-10-02 14:49:17 +02:00
Fix several basepath issues
This commit is contained in:
parent
457c1603fa
commit
161ae961a9
5 changed files with 32 additions and 26 deletions
|
@ -36,9 +36,9 @@
|
|||
<title>
|
||||
<?php p($title);?>
|
||||
</title>
|
||||
<link rel="shortcut icon" href="img/book.png">
|
||||
<link rel="stylesheet" href="vendor/icomoon/style.css?v=<?php p($version) ?>">
|
||||
<link rel="stylesheet" href="vendor/cbrjs/css/cbr.css?v=<?php p($version) ?>">
|
||||
<link rel="shortcut icon" href="<?php p($urlGenerator->linkTo('files_reader', 'img/book.png')) ?>">
|
||||
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/icomoon/style.css')) ?>?v=<?php p($version) ?>">
|
||||
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/cbrjs/css/cbr.css')) ?>?v=<?php p($version) ?>">
|
||||
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'js/lib/Blob.js')) ?>?v=<?php p($version) ?>"> </script>
|
||||
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/epubjs/libs/jquery.min.js')) ?>?v=<?php p($version) ?>"> </script>
|
||||
<script type="text/javascript" nonce="<?php p($nonce) ?>" src="<?php p($urlGenerator->linkTo('files_reader', 'vendor/sindresorhus/screenfull.js')) ?>?v=<?php p($version) ?>"> </script>
|
||||
|
@ -109,7 +109,9 @@
|
|||
<!-- /toolbar -->
|
||||
|
||||
<!-- loading overlay -->
|
||||
<div id="cbr-loading-overlay" class="cbr-control control overlay" name="loadingOverlay" style="display:none"></div>
|
||||
<div id="cbr-loading-overlay" class="cbr-control control overlay" name="loadingOverlay" style="display:none">
|
||||
<img src="<?php p($urlGenerator->linkTo('files_reader', 'img/loading.gif')) ?>">
|
||||
</div>
|
||||
<!-- /loading overlay -->
|
||||
|
||||
<!-- busy overlay -->
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
<title>
|
||||
<?php p($title);?>
|
||||
</title>
|
||||
<link rel="shortcut icon" href="img/book.png">
|
||||
<link rel="shortcut icon" href="<?php p($urlGenerator->linkTo('files_reader', 'img/book.png')) ?>">
|
||||
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/icomoon/style.css')) ?>?v=<?php p($version) ?>">
|
||||
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/epubjs/css/main.css')) ?>?v=<?php p($version) ?>">
|
||||
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/epubjs/css/sidebar.css')) ?>?v=<?php p($version) ?>">
|
||||
|
@ -283,7 +283,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div id="loader">
|
||||
<img src="img/loading.gif">
|
||||
<img src="<?php p($urlGenerator->linkTo('files_reader', 'img/loading.gif')) ?>">
|
||||
</div>
|
||||
|
||||
<!-- /navigation + viewer -->
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
<title>
|
||||
<?php p($title);?>
|
||||
</title>
|
||||
<link rel="shortcut icon" href="img/book.png">
|
||||
<link rel="shortcut icon" href="<?php p($urlGenerator->linkTo('files_reader', 'img/book.png')) ?>">
|
||||
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/icomoon/style.css')) ?>?v=<?php p($version) ?>">
|
||||
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/css/main.css')) ?>?v=<?php p($version) ?>">
|
||||
<link rel="stylesheet" href="<?php p($urlGenerator->linkTo('files_reader', 'vendor/pdfjs/css/sidebar.css')) ?>?v=<?php p($version) ?>">
|
||||
|
@ -310,7 +310,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div id="loader">
|
||||
<img src="img/loading.gif">
|
||||
<img src="<?php p($urlGenerator->linkTo('files_reader', 'img/loading.gif')) ?>">
|
||||
</div>
|
||||
|
||||
<!-- /navigation + viewer -->
|
||||
|
|
6
files_reader/vendor/cbrjs/cbr.js
vendored
6
files_reader/vendor/cbrjs/cbr.js
vendored
|
@ -73,7 +73,7 @@ CBRJS.Reader = function(bookPath, _options) {
|
|||
xhr.onload = function () {
|
||||
if ((this.status === 200) && this.response) {
|
||||
var done = false;
|
||||
var ua = new bitjs.archive[archive_class](this.response, 'vendor/bitjs/');
|
||||
var ua = new bitjs.archive[archive_class](this.response, document.head.dataset.basepath + 'vendor/bitjs/');
|
||||
|
||||
ua.addEventListener(bitjs.archive.UnarchiveEvent.Type.START, function (e) {
|
||||
$progressbar.css('width', '0%');
|
||||
|
@ -276,7 +276,7 @@ ComicBook = (function ($) {
|
|||
70: 'toggleFullscreen', // f
|
||||
27: 'closeSidebar' // esc
|
||||
},
|
||||
vendorPath: 'vendor/',
|
||||
vendorPath: document.head.dataset.basepath + 'vendor/',
|
||||
forward_buffer: 3,
|
||||
session: {
|
||||
getCursor: function() {},
|
||||
|
@ -1474,5 +1474,3 @@ ComicBook = (function ($) {
|
|||
}
|
||||
|
||||
})(window, jQuery);
|
||||
|
||||
|
||||
|
|
8
files_reader/vendor/cbrjs/css/cbr.css
vendored
8
files_reader/vendor/cbrjs/css/cbr.css
vendored
|
@ -116,7 +116,13 @@ body:not(.mobile) .navigate:hover {
|
|||
|
||||
#cbr-loading-overlay {
|
||||
z-index: 100;
|
||||
background: #000 url("img/loading.gif") no-repeat center;
|
||||
padding: 0;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
#cbr-loading-overlay > img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.overlay {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue