- Update WebODF to 0.5.4 (with compressed responses support) - Don't use temporary files for better security and multi-server scenarious support
108 lines
5.3 KiB
HTML
108 lines
5.3 KiB
HTML
<!DOCTYPE html>
|
|
<html dir="ltr" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
|
|
<title>Roundcube WebODF Viewer</title>
|
|
<link rel="stylesheet" type="text/css" href="%%viewer.css%%"/>
|
|
<script type="text/javascript" src="%%viewer.js%%" charset="utf-8"></script>
|
|
<script type="text/javascript" src="%%ODFViewerPlugin.js%%" charset="utf-8"></script>
|
|
<script type="text/javascript" src="%%webodf.js%%" charset="utf-8"></script>
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
/**
|
|
|
|
WebODF viewer code from https://gitorious.org/webodf/webodf/source/HEADe:programs/viewer
|
|
|
|
@licstart The following is the entire license notice for the
|
|
JavaScript code in this page.
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Affero General Public License as
|
|
published by the Free Software Foundation, either version 3 of the
|
|
License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Affero General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
@licend The above is the entire license notice
|
|
for the JavaScript code in this page.
|
|
|
|
*/
|
|
|
|
window.onload = function () {
|
|
var viewer = new Viewer(new ODFViewerPlugin(), %%PARAMS%%);
|
|
};
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="viewer">
|
|
<div id="titlebar">
|
|
<div id="documentName"></div>
|
|
<div id="toolbarRight">
|
|
<button id="presentation" class="toolbarButton presentation" title="Presentation"></button>
|
|
<button id="fullscreen" class="toolbarButton fullscreen" title="Fullscreen"></button>
|
|
<button id="download" class="toolbarButton download" title="Download"></button>
|
|
</div>
|
|
</div>
|
|
<div id="toolbarContainer">
|
|
<div id="toolbar">
|
|
<div id="toolbarLeft">
|
|
<div id="navButtons" class="splitToolbarButton">
|
|
<button id="previous" class="toolbarButton pageUp" title="Previous Page"></button>
|
|
<div class="splitToolbarButtonSeparator"></div>
|
|
<button id="next" class="toolbarButton pageDown" title="Next Page"></button>
|
|
</div>
|
|
<label id="pageNumberLabel" class="toolbarLabel" for="pageNumber">Page:</label>
|
|
<input type="number" id="pageNumber" class="toolbarField pageNumber"/>
|
|
<span id="numPages" class="toolbarLabel"></span>
|
|
</div>
|
|
<div id="toolbarMiddleContainer" class="outerCenter">
|
|
<div id="toolbarMiddle" class="innerCenter">
|
|
<div id = 'zoomButtons' class="splitToolbarButton">
|
|
<button id="zoomOut" class="toolbarButton zoomOut" title="Zoom Out"></button>
|
|
<div class="splitToolbarButtonSeparator"></div>
|
|
<button id="zoomIn" class="toolbarButton zoomIn" title="Zoom In"></button>
|
|
</div>
|
|
<span id="scaleSelectContainer" class="dropdownToolbarButton">
|
|
<select id="scaleSelect" title="Zoom" oncontextmenu="return false;">
|
|
<option id="pageAutoOption" value="auto" selected>Automatic</option>
|
|
<option id="pageActualOption" value="page-actual">Actual Size</option>
|
|
<option id="pageWidthOption" value="page-width">Full Width</option>
|
|
<option id="customScaleOption" value="custom"> </option>
|
|
<option value="0.5">50%</option>
|
|
<option value="0.75">75%</option>
|
|
<option value="1">100%</option>
|
|
<option value="1.25">125%</option>
|
|
<option value="1.5">150%</option>
|
|
<option value="2">200%</option>
|
|
</select>
|
|
</span>
|
|
<div id="sliderContainer">
|
|
<div id="slider"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="canvasContainer">
|
|
<div id="canvas"></div>
|
|
</div>
|
|
<div id="overlayNavigator">
|
|
<div id="previousPage"></div>
|
|
<div id="nextPage"></div>
|
|
</div>
|
|
<div id="overlayCloseButton">
|
|
✖
|
|
</div>
|
|
<div id="dialogOverlay"></div>
|
|
<div id="blanked"></div>
|
|
</div>
|
|
</body>
|
|
</html>
|