2018-02-10 07:19:29 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>The Book of Status</title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<script src="vendor/webodf.js"></script>
|
|
|
|
<script src="vendor/wodotexteditor/wodotexteditor.js"></script>
|
|
|
|
<style>
|
|
|
|
html, body, #container {
|
|
|
|
width:100%; height:100%;
|
|
|
|
margin:0px; padding:0px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body onload="init();">
|
|
|
|
<div id="container" style="width:100%; height:100%; margin:0px; padding:0px"></div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
function init() {
|
|
|
|
var editor,
|
|
|
|
editorOptions;
|
|
|
|
|
|
|
|
function onEditorCreated(err, e) {
|
|
|
|
editor = e;
|
2018-02-11 05:42:08 +00:00
|
|
|
editor.openDocumentFromUrl("book-of-status.odt");
|
2018-02-10 07:19:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
editorOptions = {
|
2018-02-11 05:42:08 +00:00
|
|
|
modus: Wodo.MODUS_REVIEW
|
2018-02-10 07:19:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
Wodo.createTextEditor('container', editorOptions, onEditorCreated);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|