viewer.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE html>
  2. <!--
  3. Copyright 2016 Mozilla Foundation
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. -->
  14. <html dir="ltr">
  15. <head>
  16. <meta charset="utf-8">
  17. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  18. <title>PDF.js viewer</title>
  19. <link rel="stylesheet" href="../../node_modules/pdfjs-dist/web/pdf_viewer.css">
  20. <link rel="stylesheet" type="text/css" href="viewer.css">
  21. <script src="../../node_modules/pdfjs-dist/build/pdf.js"></script>
  22. <script src="../../node_modules/pdfjs-dist/web/pdf_viewer.js"></script>
  23. </head>
  24. <body>
  25. <header>
  26. <h1 id="title"></h1>
  27. </header>
  28. <div id="viewerContainer">
  29. <div id="viewer" class="pdfViewer"></div>
  30. </div>
  31. <div id="loadingBar">
  32. <div class="progress"></div>
  33. <div class="glimmer"></div>
  34. </div>
  35. <div id="errorWrapper" hidden="true">
  36. <div id="errorMessageLeft">
  37. <span id="errorMessage"></span>
  38. <button id="errorShowMore">
  39. More Information
  40. </button>
  41. <button id="errorShowLess">
  42. Less Information
  43. </button>
  44. </div>
  45. <div id="errorMessageRight">
  46. <button id="errorClose">
  47. Close
  48. </button>
  49. </div>
  50. <div class="clearBoth"></div>
  51. <textarea id="errorMoreInfo" hidden="true" readonly="readonly"></textarea>
  52. </div>
  53. <footer>
  54. <button class="toolbarButton pageUp" title="Previous Page" id="previous"></button>
  55. <button class="toolbarButton pageDown" title="Next Page" id="next"></button>
  56. <input type="number" id="pageNumber" class="toolbarField pageNumber" value="1" size="4" min="1">
  57. <button class="toolbarButton zoomOut" title="Zoom Out" id="zoomOut"></button>
  58. <button class="toolbarButton zoomIn" title="Zoom In" id="zoomIn"></button>
  59. </footer>
  60. <script src="viewer.js"></script>
  61. </body>
  62. </html>