Browse Source

Merge remote-tracking branch 'origin/master'

pull/7/head
kl 7 years ago
parent
commit
deb3abcac1
  1. 8
      jodconverter-web/src/main/resources/static/css/viewer.min.css
  2. 9
      jodconverter-web/src/main/resources/static/css/viewer.min.old.css
  3. 8
      jodconverter-web/src/main/resources/static/js/viewer.min.js
  4. 10
      jodconverter-web/src/main/resources/static/js/viewer.min.old.js
  5. 12
      jodconverter-web/src/main/resources/web/picture.ftl

8
jodconverter-web/src/main/resources/static/css/viewer.min.css vendored

File diff suppressed because one or more lines are too long

9
jodconverter-web/src/main/resources/static/css/viewer.min.old.css

File diff suppressed because one or more lines are too long

8
jodconverter-web/src/main/resources/static/js/viewer.min.js vendored

File diff suppressed because one or more lines are too long

10
jodconverter-web/src/main/resources/static/js/viewer.min.old.js

File diff suppressed because one or more lines are too long

12
jodconverter-web/src/main/resources/web/picture.ftl

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

Loading…
Cancel
Save