Public
Snippet $204 authored by Cédric Le Ninivin

onlyoffice.html

Edited
onlyoffice.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="favicon.ico">

    <title>Maarch</title>
    <script src="rsvp-2.0.4.js"></script>
    <script src="renderjs-latest.js"></script>
    <script src="jio-latest.js"></script>
    <script src="onlyoffice.js"></script>
    <style>
    iframe {
      width: 100%;
      height: 35em;
    }
    </style>
  </head>

  <body>
    <form name='upload'>
      <input type="file" name="data"/>
      <input type="hidden" name="source_format" value="docx" />
      <input type="hidden" name="destination_format" value="docy" />
      <input type="submit" value="Upload" />
    </form>
    <form name='download'>
      <input type="hidden" name="source_format" value="docy" />
      <input type="hidden" name="destination_format" value="docx" />
      <input type="submit" value="Download" />
    </form>
    <div data-gadget-scope="editor" data-gadget-url="https://text-gadget.app.officejs.com/1.1/" data-gadget-sandbox="iframe"></div>
  </body>
</html>