mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-05-10 00:44:02 +00:00
增加OFD功能
This commit is contained in:
1
server/src/main/resources/static/ofd/app.css
Normal file
1
server/src/main/resources/static/ofd/app.css
Normal file
File diff suppressed because one or more lines are too long
5617
server/src/main/resources/static/ofd/app.js
Normal file
5617
server/src/main/resources/static/ofd/app.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
server/src/main/resources/static/ofd/chunk-vendors.css
Normal file
1
server/src/main/resources/static/ofd/chunk-vendors.css
Normal file
File diff suppressed because one or more lines are too long
BIN
server/src/main/resources/static/ofd/fonts/SIMFANG.65ab65f8.TTF
Normal file
BIN
server/src/main/resources/static/ofd/fonts/SIMFANG.65ab65f8.TTF
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
server/src/main/resources/static/ofd/fonts/simhei.ab5640f6.ttf
Normal file
BIN
server/src/main/resources/static/ofd/fonts/simhei.ab5640f6.ttf
Normal file
Binary file not shown.
BIN
server/src/main/resources/static/ofd/fonts/simkai.6078b506.ttf
Normal file
BIN
server/src/main/resources/static/ofd/fonts/simkai.6078b506.ttf
Normal file
Binary file not shown.
BIN
server/src/main/resources/static/ofd/fonts/simsun.b4a89f58.ttf
Normal file
BIN
server/src/main/resources/static/ofd/fonts/simsun.b4a89f58.ttf
Normal file
Binary file not shown.
BIN
server/src/main/resources/static/ofd/fonts/xbst.5215475c.ttf
Normal file
BIN
server/src/main/resources/static/ofd/fonts/xbst.5215475c.ttf
Normal file
Binary file not shown.
20
server/src/main/resources/static/ofd/index.html
Normal file
20
server/src/main/resources/static/ofd/index.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>ofd.js</title>
|
||||
<link href="chunk-vendors.css" rel="stylesheet">
|
||||
<link href="app.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
<script src="chunk-vendors.c0cd1494.js"></script>
|
||||
<script src="app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
31
server/src/main/resources/web/ofd.ftl
Normal file
31
server/src/main/resources/web/ofd.ftl
Normal file
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1.0">
|
||||
<title>OFD预览</title>
|
||||
<#include "*/commonHeader.ftl">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<iframe src="" width="100%" frameborder="0"></iframe>
|
||||
</body>
|
||||
<script type="text/javascript">
|
||||
document.getElementsByTagName('iframe')[0].src = "${baseUrl}ofd/index.html?file=${currentUrl}";
|
||||
document.getElementsByTagName('iframe')[0].height = document.documentElement.clientHeight - 10;
|
||||
/**
|
||||
* 页面变化调整高度
|
||||
*/
|
||||
window.onresize = function () {
|
||||
var fm = document.getElementsByTagName("iframe")[0];
|
||||
fm.height = window.document.documentElement.clientHeight - 10;
|
||||
}
|
||||
|
||||
|
||||
/*初始化水印*/
|
||||
window.onload = function () {
|
||||
initWaterMark();
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
Reference in New Issue
Block a user