mirror of
https://github.com/JonathanHerrewijnen/calibre-web.git
synced 2024-11-11 05:33:57 +00:00
pdf reader
This commit is contained in:
parent
202b6121ab
commit
df7d3d18b6
2
cps/static/js/libs/viewer.js
vendored
2
cps/static/js/libs/viewer.js
vendored
@ -4372,7 +4372,7 @@ var defaultOptions = {
|
|||||||
kind: OptionKind.WORKER
|
kind: OptionKind.WORKER
|
||||||
},
|
},
|
||||||
workerSrc: {
|
workerSrc: {
|
||||||
value: '../build/pdf.worker.js',
|
value: '../../../static/js/libs/pdf.worker.js',
|
||||||
kind: OptionKind.WORKER
|
kind: OptionKind.WORKER
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -34,9 +34,7 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|||||||
<!--script src="{{ url_for('static', filename='js/libs/compatibility.js') }}"></script-->
|
<!--script src="{{ url_for('static', filename='js/libs/compatibility.js') }}"></script-->
|
||||||
|
|
||||||
<!-- This snippet is used in production (included from viewer.html) -->
|
<!-- This snippet is used in production (included from viewer.html) -->
|
||||||
<link rel="resource" type="application/l10n" href="{{ url_for('static', filename='locale/locale.properties') }}">
|
<link rel="resource" type="application/l10n" href="{{ url_for('static', filename='locale/locale.properties') }}">
|
||||||
<script src="{{ url_for('static', filename='js/libs/pdf.js') }}"></script>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.addEventListener('load', function() {
|
window.addEventListener('load', function() {
|
||||||
PDFViewerApplicationOptions.set('sidebarViewOnLoad', 0);
|
PDFViewerApplicationOptions.set('sidebarViewOnLoad', 0);
|
||||||
@ -45,9 +43,11 @@ See https://github.com/adobe-type-tools/cmap-resources
|
|||||||
PDFViewerApplicationOptions.set('defaultUrl',"{{ url_for('web.serve_book', book_id=pdffile, book_format='pdf') }}")
|
PDFViewerApplicationOptions.set('defaultUrl',"{{ url_for('web.serve_book', book_id=pdffile, book_format='pdf') }}")
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
<script src="{{ url_for('static', filename='js/libs/pdf.js') }}"></script>
|
||||||
<script src="{{ url_for('static', filename='js/libs/viewer.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/libs/viewer.js') }}"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body tabindex="1" class="loadingInProgress">
|
<body tabindex="1" class="loadingInProgress">
|
||||||
|
Loading…
Reference in New Issue
Block a user