Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pdf-html
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
施贇杰
pdf-html
Commits
f15a7367
Commit
f15a7367
authored
Feb 15, 2023
by
shiyunjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
# Conflicts: # iframe/web/viewer.html
parents
5974db37
8cdf3786
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
3 deletions
+64
-3
viewer.html
iframe/web/viewer.html
+64
-3
No files found.
iframe/web/viewer.html
View file @
f15a7367
...
...
@@ -88,6 +88,45 @@ See https://github.com/adobe-type-tools/cmap-resources
#viewerContainer
{
top
:
15px
!important
;
}
#__back
{
position
:
fixed
;
bottom
:
10vh
;
right
:
30px
;
background-color
:
red
;
border-radius
:
50%
;
box-sizing
:
border-box
;
width
:
60px
;
height
:
60px
;
z-index
:
10000000
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
color
:
#fff
;
}
.nav
{
height
:
48.5px
;
width
:
100vw
;
background-color
:
#fff
;
color
:
#333
;
font-size
:
16px
;
display
:
flex
;
position
:
absolute
;
}
#mainContainer
{
top
:
48.5px
!important
;
}
.nav
>
div
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.nav
>
.nav-text
{
width
:
70%
;
}
.nav-left
{
width
:
15%
;
background-color
:
#fff
;
}
/* .page {
width: 95vw !important;
} */
...
...
@@ -158,7 +197,9 @@ See https://github.com/adobe-type-tools/cmap-resources
reset
();
},
false
);
}
if
(
!
isWeixin
){
/* if(!isWeixin){
document.addEventListener('webviewerloaded', () => {
console.log('webviewerloaded');
//console.log('webviewerloaded:pinchZoomEnabled', pinchZoomEnabled)
...
...
@@ -167,14 +208,33 @@ See https://github.com/adobe-type-tools/cmap-resources
enablePinchZoom();
}
});
}
}*/
let
PDFTitle
=
localStorage
.
getItem
(
'PDFtitle'
)
||
''
;
window
.
onload
=
()
=>
{
window
.
localStorage
.
removeItem
(
'pdfback'
);
let
navBackDom
=
document
.
getElementById
(
'nav-back'
);
// open 的时候用 _parent _self;
navBackDom
.
addEventListener
(
'click'
,()
=>
{
window
.
localStorage
.
setItem
(
'pdfback'
,
'1'
);
})
if
(
PDFTitle
){
let
navText
=
document
.
getElementById
(
'nav-text'
);
navText
.
innerHTML
=
PDFTitle
;
}
}
document
.
documentElement
.
addEventListener
(
'gesturestart'
,
function
(
e
)
{
e
.
preventDefault
();
});
</script>
<body
tabindex=
"1"
class=
"loadingInProgress"
>
<div
id=
"outerContainer"
>
<div
class=
"nav"
>
<div
class=
"nav-left"
id=
"nav-back"
>
<svg
t=
"1651657875528"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"2041"
width=
"20"
height=
"20"
><path
d=
"M435.8 512L690 258c18.8-18.8 18.8-49.2 0-67.8-18.8-18.8-49.2-18.6-68 0L334 478c-18.2 18.2-18.6 47.4-1.4 66.2L621.8 834c9.4 9.4 21.8 14 34 14s24.6-4.6 34-14c18.8-18.8 18.8-49.2 0-67.8L435.8 512z"
p-id=
"2042"
></path></svg>
</div>
<div
class=
"nav-text"
id=
"nav-text"
></div>
<div
class=
"nav-right"
></div>
</div>
<div
id=
"sidebarContainer"
>
<div
id=
"toolbarSidebar"
>
<div
class=
"splitToolbarButton toggled"
>
...
...
@@ -1056,6 +1116,7 @@ See https://github.com/adobe-type-tools/cmap-resources
</div>
<!-- overlayContainer -->
</div>
<!-- <div id="__back">back</div> -->
<!-- outerContainer -->
<div
id=
"printContainer"
></div>
<script
src=
"https://cdn.bootcss.com/vConsole/3.3.4/vconsole.min.js"
></script >
...
...
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