index.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <!DOCTYPE html>
  2. <!--
  3. Copyright (C) 2012-2014 KO GmbH <copyright@kogmbh.com>
  4. @licstart
  5. This file is part of WebODF.
  6. WebODF is free software: you can redistribute it and/or modify it
  7. under the terms of the GNU Affero General Public License (GNU AGPL)
  8. as published by the Free Software Foundation, either version 3 of
  9. the License, or (at your option) any later version.
  10. WebODF is distributed in the hope that it will be useful, but
  11. WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU Affero General Public License for more details.
  14. You should have received a copy of the GNU Affero General Public License
  15. along with WebODF. If not, see <http://www.gnu.org/licenses/>.
  16. @licend
  17. @source: http://www.webodf.org/
  18. @source: https://github.com/kogmbh/WebODF/
  19. -->
  20. <!--
  21. This file is a derivative from a part of Mozilla's PDF.js project. The
  22. original license header follows.
  23. -->
  24. <!--
  25. Copyright 2012 Mozilla Foundation
  26. Licensed under the Apache License, Version 2.0 (the "License");
  27. you may not use this file except in compliance with the License.
  28. You may obtain a copy of the License at
  29. http://www.apache.org/licenses/LICENSE-2.0
  30. Unless required by applicable law or agreed to in writing, software
  31. distributed under the License is distributed on an "AS IS" BASIS,
  32. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  33. See the License for the specific language governing permissions and
  34. limitations under the License.
  35. -->
  36. <html dir="ltr" lang="en-US">
  37. <head>
  38. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  39. <title>ViewerJS</title>
  40. <!-- If you want to use custom CSS (@font-face rules, for example) you should uncomment
  41. the following reference and use a local.css file for that. See the example.local.css
  42. file for a sample.
  43. <link rel="stylesheet" type="text/css" href="local.css" media="screen"/>
  44. -->
  45. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  46. <link rel="stylesheet" type="text/css" href="viewer.css" media="screen"/>
  47. <script src="viewer.js" type="text/javascript" charset="utf-8"></script>
  48. <script src="PluginLoader.js" type="text/javascript" charset="utf-8"></script>
  49. <script>
  50. loadDocument(window.location.hash);
  51. </script>
  52. </head>
  53. <body>
  54. <div id = "viewer">
  55. <div id = "titlebar">
  56. <div id = "documentName"></div>
  57. <div id = "toolbarRight">
  58. <button id = "presentation" class = "toolbarButton presentation" title = "Presentation"></button>
  59. <button id = "fullscreen" class = "toolbarButton fullscreen" title = "Fullscreen"></button>
  60. <button id = "download" class = "toolbarButton download" title = "Download"></button>
  61. </div>
  62. </div>
  63. <div id = "toolbarContainer">
  64. <div id = "toolbar">
  65. <div id = "toolbarLeft">
  66. <div id = "navButtons" class = "splitToolbarButton">
  67. <button id = "previous" class = "toolbarButton pageUp" title = "Previous Page"></button>
  68. <div class="splitToolbarButtonSeparator"></div>
  69. <button id = "next" class = "toolbarButton pageDown" title = "Next Page"></button>
  70. </div>
  71. <label id = "pageNumberLabel" class = "toolbarLabel" for = "pageNumber">Page:</label>
  72. <input type = "number" id = "pageNumber" class = "toolbarField pageNumber"/>
  73. <span id = "numPages" class = "toolbarLabel"></span>
  74. </div>
  75. <div id = "toolbarMiddleContainer" class = "outerCenter">
  76. <div id = "toolbarMiddle" class = "innerCenter">
  77. <div id = 'zoomButtons' class = "splitToolbarButton">
  78. <button id = "zoomOut" class = "toolbarButton zoomOut" title = "Zoom Out"></button>
  79. <div class="splitToolbarButtonSeparator"></div>
  80. <button id = "zoomIn" class = "toolbarButton zoomIn" title = "Zoom In"></button>
  81. </div>
  82. <span id="scaleSelectContainer" class="dropdownToolbarButton">
  83. <select id="scaleSelect" title="Zoom" oncontextmenu="return false;">
  84. <option id="pageAutoOption" value="auto" selected>Automatic</option>
  85. <option id="pageActualOption" value="page-actual">Actual Size</option>
  86. <option id="pageWidthOption" value="page-width">Full Width</option>
  87. <option id="customScaleOption" value="custom"> </option>
  88. <option value="0.5">50%</option>
  89. <option value="0.75">75%</option>
  90. <option value="1">100%</option>
  91. <option value="1.25">125%</option>
  92. <option value="1.5">150%</option>
  93. <option value="2">200%</option>
  94. </select>
  95. </span>
  96. <div id = "sliderContainer">
  97. <div id = "slider"></div>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. <div id = "canvasContainer">
  104. <div id = "canvas"></div>
  105. </div>
  106. <div id = "overlayNavigator">
  107. <div id = "previousPage"></div>
  108. <div id = "nextPage"></div>
  109. </div>
  110. <div id = "overlayCloseButton">
  111. &#10006;
  112. </div>
  113. <div id = "dialogOverlay"></div>
  114. </div>
  115. </body>
  116. </html>