odfReader.html 921 B

12345678910111213141516171819202122232425262728
  1. <html>
  2. <head>
  3. <title>ODF File Reader</title>
  4. <script src="../../script/jquery.min.js"></script>
  5. <script src="../../script/ao_module.js"></script>
  6. <style>
  7. body{
  8. background-color:white;
  9. }
  10. </style>
  11. </head>
  12. <body>
  13. Fail to open file due to unknown error.
  14. <script>
  15. //Get the opening file and redirect
  16. var files = ao_module_loadInputFiles();
  17. console.log(files);
  18. if (files.length == 1){
  19. var file = files[0];
  20. var openFilePath = "../../../../media?file=" + file.filepath;
  21. window.location.href = "script/ViewerJS/#" + openFilePath;
  22. }else if (files.length > 1){
  23. //Opening multiple files. Open each of them in a new floatWindow except the first one
  24. }
  25. </script>
  26. </body>
  27. </html>