Merge remote-tracking branch 'origin/master'
commit
deb3abcac1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -17,11 +17,13 @@
|
||||||
<li><img id="${img}" url="${img}" src="${img}" width="1px" height="1px"></li>
|
<li><img id="${img}" url="${img}" src="${img}" width="1px" height="1px"></li>
|
||||||
</#list>
|
</#list>
|
||||||
</ul>
|
</ul>
|
||||||
|
<script src="js/jquery-3.0.0.min.js"></script>
|
||||||
<script src="js/viewer.min.js"></script>
|
<script src="js/viewer.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var viewer = new Viewer(document.getElementById('dowebok'), {
|
var viewer = new Viewer(document.getElementById('dowebok'), {
|
||||||
url: 'src',
|
url: 'src',
|
||||||
navbar:false
|
navbar:false,
|
||||||
|
loop : true
|
||||||
});
|
});
|
||||||
document.getElementById("${currentUrl}").click();
|
document.getElementById("${currentUrl}").click();
|
||||||
// 修改下一页按钮的样式和位置
|
// 修改下一页按钮的样式和位置
|
||||||
|
@ -38,14 +40,14 @@
|
||||||
// 覆盖按钮父类原始样式
|
// 覆盖按钮父类原始样式
|
||||||
viewerToolBar.css("overflow", "visible");
|
viewerToolBar.css("overflow", "visible");
|
||||||
// 获取文档高度、宽度
|
// 获取文档高度、宽度
|
||||||
var clientHeight = document.body.clientHeight;
|
var clientHeight = window.innerHeight;
|
||||||
var clientWidth = document.body.clientWidth;
|
var clientWidth = window.innerWidth;
|
||||||
// 调整样式
|
// 调整样式
|
||||||
var styleCss = {},nextCss={},prevCss={};
|
var styleCss = {},nextCss={},prevCss={};
|
||||||
styleCss.position = "absolute";
|
styleCss.position = "absolute";
|
||||||
styleCss.top = -clientHeight + 52;
|
styleCss.top = -clientHeight;
|
||||||
styleCss.width = clientWidth*0.1;
|
styleCss.width = clientWidth*0.1;
|
||||||
styleCss.height = clientHeight;
|
styleCss.height = clientHeight + 52;
|
||||||
// 覆盖原始样式
|
// 覆盖原始样式
|
||||||
styleCss.backgroundColor='rgba(0, 0, 0, 0)';
|
styleCss.backgroundColor='rgba(0, 0, 0, 0)';
|
||||||
styleCss.borderRadius='inherit';
|
styleCss.borderRadius='inherit';
|
||||||
|
|
Loading…
Reference in New Issue