summaryrefslogtreecommitdiff
path: root/plugins/odfviewer/odf.html
blob: c06428bbb39ee0404d6eb710259c9bd2f23eec63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<title>Roundcube WebODF Viewer</title>
<style type="text/css" media="screen">

	body, div {
		padding: 0px;
		margin: 0px;
		border: 0px;
		background: #fff;
	}
	body.odfcanvas {
		height: 100%;
		background: black;
		text-align: center;
	}
	
</style>
<link rel="stylesheet" type="text/css" href="%%DOCROOT%%webodf.css"/>
<script type="text/javascript" src="%%DOCROOT%%webodf.js" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">

	function init() {
		var odfelement = document.getElementById("odf"),
			odfcanvas = new odf.OdfCanvas(odfelement);
		odfcanvas.load('%%DOCURL%%');
	}
	window.setTimeout(init, 0);

</script>
</head>
 
<body class="odfcanvas">
	<div id="odf"></div>
</body>
</html>