Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-fileview
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
梁杰芳
slm-fileview
Commits
d517ab4e
Commit
d517ab4e
authored
Apr 28, 2019
by
陈精华
Committed by
kl
Apr 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
替换pdf和图片预览相互转跳按钮图标
parent
29726c11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
officePicture.ftl
jodconverter-web/src/main/resources/web/officePicture.ftl
+3
-1
pdf.ftl
jodconverter-web/src/main/resources/web/pdf.ftl
+4
-1
No files found.
jodconverter-web/src/main/resources/web/officePicture.ftl
View file @
d517ab4e
...
...
@@ -3,6 +3,7 @@
<head>
<meta
charset=
"utf-8"
/>
<title>
office图片预览
</title>
<link
href=
"//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
rel=
"stylesheet"
>
<script
src=
"js/lazyload.js"
></script>
<style>
.container
{
...
...
@@ -23,7 +24,8 @@
</div>
</
#
list>
</div>
<img
src=
"images/right.png"
style=
"position: fixed; cursor: pointer; top: 40%; right: 70px; z-index: 999;"
alt=
"使用PDF预览"
title=
"使用PDF预览"
onclick=
"changePreviewType('pdf')"
/>
<
#
--
<
img
src=
"images/right.png"
style=
"position: fixed; cursor: pointer; top: 40%; right: 60px; z-index: 999;"
alt=
"使用PDF预览"
title=
"使用PDF预览"
onclick=
"changePreviewType('pdf')"
/>
-->
<span
class=
"fa fa-file-pdf-o fa-5x"
style=
"position: fixed; cursor: pointer; top: 40%; right: 50px; z-index: 999;"
title=
"使用PDF预览"
onclick=
"changePreviewType('pdf')"
></span>
<script>
window
.
onload
=
checkImgs
;
window
.
onscroll
=
throttle
(
checkImgs
);
...
...
jodconverter-web/src/main/resources/web/pdf.ftl
View file @
d517ab4e
...
...
@@ -2,6 +2,7 @@
<html
lang=
"en"
>
<head>
<link
href=
"//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
rel=
"stylesheet"
>
<style
type=
"text/css"
>
body
{
margin
:
0
;
...
...
@@ -18,7 +19,9 @@
</
#
if>
<iframe
src=
"/pdfjs/web/viewer.html?file=${finalUrl}"
width=
"100%"
frameborder=
"0"
></iframe>
<img
src=
"images/left.png"
style=
"position: fixed; cursor: pointer; top: 40%; right: 70px; z-index: 999;"
alt=
"使用图片预览"
title=
"使用图片预览"
onclick=
"goForImage()"
/>
<
#
--
<
img
src=
"images/left.png"
style=
"position: fixed; cursor: pointer; top: 40%; right: 60px; z-index: 999;"
alt=
"使用图片预览"
title=
"使用图片预览"
onclick=
"goForImage()"
/>
-->
<span
class=
"fa fa-file-image-o fa-5x"
style=
"position: fixed; cursor: pointer; top: 40%; right: 50px; z-index: 999;"
title=
"使用图片预览"
onclick=
"goForImage()"
></span>
</body>
<script
type=
"text/javascript"
>
...
...
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