Files
document-server-integration/web/documentserver-example/js/OnlineEditorsExampleJS.html
2025-01-27 15:52:48 +07:00

57 lines
2.3 KiB
HTML

<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<!--
*
* (c) Copyright Ascensio System SIA 2025
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
-->
<title>ONLYOFFICE</title>
<link href="stylesheet.css" type="text/css" rel="stylesheet">
<!--Change the address on installed ONLYOFFICE Document Editors-->
<script id="scriptApi" type="text/javascript" src="http://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript" src="init.js"></script>
</head>
<body>
<div id="page">
<div class="top-panel">
<a href="">
<img src ="logo.svg" alt="ONLYOFFICE" />
</a>
</div>
<div id="mainPanel" class="main-panel">
<span class="portal-name">ONLYOFFICE Document Editors</span>
<br />
<br />
<span class="portal-descr">Get started with a demo-sample of ONLYOFFICE Document Editors, the first html5-based editors. You may enter url your own document for testing.</span>
<textarea id="documentUrl" class="document-url">http://onlyo.co/1x5REbq?demo.docx</textarea>
<br />
<br />
<div class="button" onclick="document.getElementById('mainPanel').style.display ='none';document.getElementById('placeholder').parentNode.setAttribute('class', 'embedded');initEditor(null, null, 'embedded')">Embedded view</div>
<div class="button" onclick="document.getElementById('page').style.display ='none';initEditor()">View</div>
<div class="button" onclick="document.getElementById('page').style.display ='none';initEditor(null, 'edit')">Edit</div>
</div>
</div>
<div>
<div id="placeholder"></div>
</div>
</body>
</html>