37 lines
1.1 KiB
HTML
37 lines
1.1 KiB
HTML
<!doctype html>
|
|
<html lang="">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<link rel="icon" href="favicon.ico">
|
|
<title>SCOFDReader demo</title>
|
|
<style>
|
|
html, body {
|
|
padding: 0;
|
|
margin: 0;
|
|
width:100vw;
|
|
height: 100vh
|
|
}
|
|
</style>
|
|
<script src="./SCReader.umd.min.js"></script>
|
|
<link rel="stylesheet" href="./SCReader.css">
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<script>
|
|
let vm = new SCOFDReader(window.app, {
|
|
server:"http://127.0.0.1:9001",
|
|
showToolsbar :true, //是否显示文档工具栏
|
|
showNavigation: false, //是否显示文档导航栏
|
|
showPanel:false, //是否显示左侧面板
|
|
single:true //单文件模式(开启则再打开文件时,会关闭自动以前打开的文件)
|
|
|
|
});
|
|
vm.openFile('D:\\工作文件\\OFD测试文件示例\\test.ofd',{
|
|
//标签显示的名字
|
|
name:"test.ofd"
|
|
});
|
|
</script>
|
|
</body>
|