options.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <!doctype html>
  2. <!--
  3. Copyright 2015 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>
  15. <head>
  16. <meta charset="utf-8">
  17. <title>PDF.js viewer options</title>
  18. <style>
  19. /* TODO: Remove as much custom CSS as possible - crbug.com/446511 */
  20. body {
  21. min-width: 400px; /* a page at the settings page is at least 400px wide */
  22. margin: 14px 17px; /* already added by default in Chrome 40.0.2212.0 */
  23. }
  24. .settings-row {
  25. margin: 0.65em 0;
  26. }
  27. </style>
  28. </head>
  29. <body>
  30. <div id="settings-boxes"></div>
  31. <button id="reset-button">Restore default settings</button>
  32. <template id="checkbox-template">
  33. <!-- Chromium's style: //src/extensions/renderer/resources/extension.css -->
  34. <div class="checkbox">
  35. <label>
  36. <input type="checkbox">
  37. <span></span>
  38. </label>
  39. </div>
  40. </template>
  41. <template id="viewerCssTheme-template">
  42. <div class="settings-row">
  43. <label>
  44. <span></span>
  45. <select>
  46. <option value="0">Use system theme</option>
  47. <option value="1">Light theme</option>
  48. <option value="2">Dark theme</option>
  49. </select>
  50. </label>
  51. </div>
  52. </template>
  53. <template id="viewOnLoad-template">
  54. <div class="settings-row">
  55. <label>
  56. <span></span>
  57. <select>
  58. <option value="-1">Default</option>
  59. <option value="0">Show previous position</option>
  60. <option value="1">Show initial position</option>
  61. </select>
  62. </label>
  63. </div>
  64. </template>
  65. <template id="defaultZoomValue-template">
  66. <div class="settings-row">
  67. <label>
  68. <span></span>
  69. <select>
  70. <option value="auto" selected="selected">Automatic Zoom</option>
  71. <option value="page-actual">Actual Size</option>
  72. <option value="page-fit">Page Fit</option>
  73. <option value="page-width">Page Width</option>
  74. <option value="custom" class="custom-zoom" hidden></option>
  75. <option value="50">50%</option>
  76. <option value="75">75%</option>
  77. <option value="100">100%</option>
  78. <option value="125">125%</option>
  79. <option value="150">150%</option>
  80. <option value="200">200%</option>
  81. <option value="300">300%</option>
  82. <option value="400">400%</option>
  83. </select>
  84. </label>
  85. </div>
  86. </template>
  87. <template id="sidebarViewOnLoad-template">
  88. <div class="settings-row">
  89. <label>
  90. <span></span>
  91. <select>
  92. <option value="-1">Default</option>
  93. <option value="0">Do not show sidebar</option>
  94. <option value="1">Show thumbnails in sidebar</option>
  95. <option value="2">Show document outline in sidebar</option>
  96. <option value="3">Show attachments in sidebar</option>
  97. </select>
  98. </label>
  99. </div>
  100. </template>
  101. <template id="cursorToolOnLoad-template">
  102. <div class="settings-row">
  103. <label>
  104. <span></span>
  105. <select>
  106. <option value="0">Text selection tool</option>
  107. <option value="1">Hand tool</option>
  108. </select>
  109. </label>
  110. </div>
  111. </template>
  112. <template id="textLayerMode-template">
  113. <div class="settings-row">
  114. <label>
  115. <span></span>
  116. <select>
  117. <option value="0">Disable text selection</option>
  118. <option value="1">Enable text selection</option>
  119. </select>
  120. </label>
  121. </div>
  122. </template>
  123. <template id="externalLinkTarget-template">
  124. <div class="settings-row">
  125. <label>
  126. <span></span>
  127. <select>
  128. <option value="0">Default</option>
  129. <option value="1">Current window/tab</option>
  130. <option value="2">New window/tab</option>
  131. <option value="3">Parent window/tab</option>
  132. <option value="4">Top window/tab</option>
  133. </select>
  134. </label>
  135. </div>
  136. </template>
  137. <template id="scrollModeOnLoad-template">
  138. <div class="settings-row">
  139. <label>
  140. <span></span>
  141. <select>
  142. <option value="-1">Default</option>
  143. <option value="3">Page scrolling</option>
  144. <option value="0">Vertical scrolling</option>
  145. <option value="1">Horizontal scrolling</option>
  146. <option value="2">Wrapped scrolling</option>
  147. </select>
  148. </label>
  149. </div>
  150. </template>
  151. <template id="spreadModeOnLoad-template">
  152. <div class="settings-row">
  153. <label>
  154. <span></span>
  155. <select>
  156. <option value="-1">Default</option>
  157. <option value="0">No spreads</option>
  158. <option value="1">Odd spreads</option>
  159. <option value="2">Even spreads</option>
  160. </select>
  161. </label>
  162. </div>
  163. </template>
  164. <script src="options.js"></script>
  165. </body>
  166. </html>