Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
913690df
Commit
913690df
authored
Aug 05, 2021
by
xlivevil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #1913(set lazyload in pdf reader)
Add favicon.ico in pdf reader
parent
19c75d67
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
readpdf.html
cps/templates/readpdf.html
+4
-2
No files found.
cps/templates/readpdf.html
View file @
913690df
...
@@ -28,7 +28,8 @@ See https://github.com/adobe-type-tools/cmap-resources
...
@@ -28,7 +28,8 @@ See https://github.com/adobe-type-tools/cmap-resources
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<title>
{{_('PDF Reader')}} | {{title}}
</title>
<title>
{{_('PDF Reader')}} | {{title}}
</title>
<link
rel=
"apple-touch-icon"
sizes=
"140x140"
href=
"{{ url_for('static', filename='favicon.ico') }}"
>
<link
rel=
"shortcut icon"
href=
"{{ url_for('static', filename='favicon.ico') }}"
>
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='css/libs/viewer.css') }}"
>
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='css/libs/viewer.css') }}"
>
...
@@ -38,6 +39,8 @@ See https://github.com/adobe-type-tools/cmap-resources
...
@@ -38,6 +39,8 @@ See https://github.com/adobe-type-tools/cmap-resources
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
window
.
addEventListener
(
'webviewerloaded'
,
function
()
{
window
.
addEventListener
(
'webviewerloaded'
,
function
()
{
PDFViewerApplicationOptions
.
set
(
'disableAutoFetch'
,
true
);
PDFViewerApplicationOptions
.
set
(
'disableRange'
,
true
);
PDFViewerApplicationOptions
.
set
(
'sidebarViewOnLoad'
,
0
);
PDFViewerApplicationOptions
.
set
(
'sidebarViewOnLoad'
,
0
);
PDFViewerApplicationOptions
.
set
(
'imageResourcesPath'
,
"{{ url_for('static', filename='css/images/') }}"
);
PDFViewerApplicationOptions
.
set
(
'imageResourcesPath'
,
"{{ url_for('static', filename='css/images/') }}"
);
PDFViewerApplicationOptions
.
set
(
'workerSrc'
,
"{{ url_for('static', filename='js/libs/pdf.worker.js') }}"
);
PDFViewerApplicationOptions
.
set
(
'workerSrc'
,
"{{ url_for('static', filename='js/libs/pdf.worker.js') }}"
);
...
@@ -405,4 +408,3 @@ See https://github.com/adobe-type-tools/cmap-resources
...
@@ -405,4 +408,3 @@ See https://github.com/adobe-type-tools/cmap-resources
<div
id=
"printContainer"
></div>
<div
id=
"printContainer"
></div>
</body>
</body>
</html>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment