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
jenkins
slm-fileview
Commits
e927760c
Commit
e927760c
authored
Dec 28, 2020
by
kl
Committed by
kl
Dec 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整多图连续预览上下翻图的UI
parent
8783f905
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
34 deletions
+1
-34
picture.ftl
server/src/main/resources/web/picture.ftl
+1
-34
No files found.
server/src/main/resources/web/picture.ftl
View file @
e927760c
...
@@ -37,40 +37,7 @@
...
@@ -37,40 +37,7 @@
loop
:
true
loop
:
true
});
});
document
.
getElementById
(
"${currentUrl}"
).
click
();
document
.
getElementById
(
"${currentUrl}"
).
click
();
// 修改下一页按钮的样式和位置
$
(
function
()
{
var
outHandler
=
function
(){
$
(
this
).
css
(
'background-color'
,
'rgba(0, 0, 0, 0)'
);
};
var
overHandler
=
function
(){
$
(
this
).
css
(
'background-color'
,
'rgba(0, 0, 0, .5)'
);
};
var
next
=
$
(
"li[data-action=next]"
);
var
prev
=
$
(
"li[data-action=prev]"
);
var
viewerToolBar
=
$
(
".viewer-footer"
);
// 覆盖按钮父类原始样式
viewerToolBar
.
css
(
"overflow"
,
"visible"
);
// 获取文档高度、宽度
var
clientHeight
=
window
.
innerHeight
;
var
clientWidth
=
window
.
innerWidth
;
// 调整样式
var
styleCss
=
{},
nextCss
=
{},
prevCss
=
{};
styleCss
.
position
=
"absolute"
;
styleCss
.
top
=
-
clientHeight
;
styleCss
.
width
=
clientWidth
*
0.1
;
styleCss
.
height
=
clientHeight
+
52
;
// 覆盖原始样式
styleCss
.
backgroundColor
=
'rgba(0, 0, 0, 0)'
;
styleCss
.
borderRadius
=
'inherit'
;
nextCss
.
right
=
"0"
;
prevCss
.
left
=
"0"
;
next
.
css
(
$
.
extend
(
nextCss
,
styleCss
));
prev
.
css
(
$
.
extend
(
prevCss
,
styleCss
));
next
.
on
(
'mouseout'
,
outHandler
);
next
.
on
(
'mouseover'
,
overHandler
);
prev
.
on
(
'mouseout'
,
outHandler
);
prev
.
on
(
'mouseover'
,
overHandler
);
});
/*初始化水印*/
/*初始化水印*/
window
.
onload
=
function
()
{
window
.
onload
=
function
()
{
initWaterMark
();
initWaterMark
();
...
...
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