Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <!-- |
michael@0 | 3 | Copyright 2012 Mozilla Foundation |
michael@0 | 4 | |
michael@0 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
michael@0 | 6 | you may not use this file except in compliance with the License. |
michael@0 | 7 | You may obtain a copy of the License at |
michael@0 | 8 | |
michael@0 | 9 | http://www.apache.org/licenses/LICENSE-2.0 |
michael@0 | 10 | |
michael@0 | 11 | Unless required by applicable law or agreed to in writing, software |
michael@0 | 12 | distributed under the License is distributed on an "AS IS" BASIS, |
michael@0 | 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
michael@0 | 14 | See the License for the specific language governing permissions and |
michael@0 | 15 | limitations under the License. |
michael@0 | 16 | |
michael@0 | 17 | Adobe CMap resources are covered by their own copyright and license: |
michael@0 | 18 | http://sourceforge.net/adobe/cmap/wiki/License/ |
michael@0 | 19 | --> |
michael@0 | 20 | <html dir="ltr" mozdisallowselectionprint moznomarginboxes> |
michael@0 | 21 | <head> |
michael@0 | 22 | <meta charset="utf-8"> |
michael@0 | 23 | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
michael@0 | 24 | <title>PDF.js viewer</title> |
michael@0 | 25 | |
michael@0 | 26 | <!-- This snippet is used in the Firefox extension (included from viewer.html) --> |
michael@0 | 27 | <base href="resource://pdf.js/web/" /> |
michael@0 | 28 | <script type="text/javascript" src="l10n.js"></script> |
michael@0 | 29 | <script type="text/javascript" src="../build/pdf.js"></script> |
michael@0 | 30 | |
michael@0 | 31 | |
michael@0 | 32 | <link rel="stylesheet" href="viewer.css"/> |
michael@0 | 33 | |
michael@0 | 34 | |
michael@0 | 35 | |
michael@0 | 36 | |
michael@0 | 37 | |
michael@0 | 38 | |
michael@0 | 39 | <script type="text/javascript" src="debugger.js"></script> |
michael@0 | 40 | <script type="text/javascript" src="viewer.js"></script> |
michael@0 | 41 | |
michael@0 | 42 | </head> |
michael@0 | 43 | |
michael@0 | 44 | <body tabindex="1"> |
michael@0 | 45 | <div id="outerContainer" class="loadingInProgress"> |
michael@0 | 46 | |
michael@0 | 47 | <div id="sidebarContainer"> |
michael@0 | 48 | <div id="toolbarSidebar"> |
michael@0 | 49 | <div class="splitToolbarButton toggled"> |
michael@0 | 50 | <button id="viewThumbnail" class="toolbarButton group toggled" title="Show Thumbnails" tabindex="2" data-l10n-id="thumbs"> |
michael@0 | 51 | <span data-l10n-id="thumbs_label">Thumbnails</span> |
michael@0 | 52 | </button> |
michael@0 | 53 | <button id="viewOutline" class="toolbarButton group" title="Show Document Outline" tabindex="3" data-l10n-id="outline"> |
michael@0 | 54 | <span data-l10n-id="outline_label">Document Outline</span> |
michael@0 | 55 | </button> |
michael@0 | 56 | <button id="viewAttachments" class="toolbarButton group" title="Show Attachments" tabindex="4" data-l10n-id="attachments"> |
michael@0 | 57 | <span data-l10n-id="attachments_label">Attachments</span> |
michael@0 | 58 | </button> |
michael@0 | 59 | </div> |
michael@0 | 60 | </div> |
michael@0 | 61 | <div id="sidebarContent"> |
michael@0 | 62 | <div id="thumbnailView"> |
michael@0 | 63 | </div> |
michael@0 | 64 | <div id="outlineView" class="hidden"> |
michael@0 | 65 | </div> |
michael@0 | 66 | <div id="attachmentsView" class="hidden"> |
michael@0 | 67 | </div> |
michael@0 | 68 | </div> |
michael@0 | 69 | </div> <!-- sidebarContainer --> |
michael@0 | 70 | |
michael@0 | 71 | <div id="mainContainer"> |
michael@0 | 72 | <div class="findbar hidden doorHanger hiddenSmallView" id="findbar"> |
michael@0 | 73 | <label for="findInput" class="toolbarLabel" data-l10n-id="find_label">Find:</label> |
michael@0 | 74 | <input id="findInput" class="toolbarField" tabindex="41"> |
michael@0 | 75 | <div class="splitToolbarButton"> |
michael@0 | 76 | <button class="toolbarButton findPrevious" title="" id="findPrevious" tabindex="42" data-l10n-id="find_previous"> |
michael@0 | 77 | <span data-l10n-id="find_previous_label">Previous</span> |
michael@0 | 78 | </button> |
michael@0 | 79 | <div class="splitToolbarButtonSeparator"></div> |
michael@0 | 80 | <button class="toolbarButton findNext" title="" id="findNext" tabindex="43" data-l10n-id="find_next"> |
michael@0 | 81 | <span data-l10n-id="find_next_label">Next</span> |
michael@0 | 82 | </button> |
michael@0 | 83 | </div> |
michael@0 | 84 | <input type="checkbox" id="findHighlightAll" class="toolbarField"> |
michael@0 | 85 | <label for="findHighlightAll" class="toolbarLabel" tabindex="44" data-l10n-id="find_highlight">Highlight all</label> |
michael@0 | 86 | <input type="checkbox" id="findMatchCase" class="toolbarField"> |
michael@0 | 87 | <label for="findMatchCase" class="toolbarLabel" tabindex="45" data-l10n-id="find_match_case_label">Match case</label> |
michael@0 | 88 | <span id="findMsg" class="toolbarLabel"></span> |
michael@0 | 89 | </div> <!-- findbar --> |
michael@0 | 90 | |
michael@0 | 91 | <div id="secondaryToolbar" class="secondaryToolbar hidden doorHangerRight"> |
michael@0 | 92 | <div id="secondaryToolbarButtonContainer"> |
michael@0 | 93 | <button id="secondaryPresentationMode" class="secondaryToolbarButton presentationMode visibleLargeView" title="Switch to Presentation Mode" tabindex="19" data-l10n-id="presentation_mode"> |
michael@0 | 94 | <span data-l10n-id="presentation_mode_label">Presentation Mode</span> |
michael@0 | 95 | </button> |
michael@0 | 96 | |
michael@0 | 97 | <button id="secondaryOpenFile" class="secondaryToolbarButton openFile visibleLargeView" title="Open File" tabindex="20" data-l10n-id="open_file"> |
michael@0 | 98 | <span data-l10n-id="open_file_label">Open</span> |
michael@0 | 99 | </button> |
michael@0 | 100 | |
michael@0 | 101 | <button id="secondaryPrint" class="secondaryToolbarButton print visibleMediumView" title="Print" tabindex="21" data-l10n-id="print"> |
michael@0 | 102 | <span data-l10n-id="print_label">Print</span> |
michael@0 | 103 | </button> |
michael@0 | 104 | |
michael@0 | 105 | <button id="secondaryDownload" class="secondaryToolbarButton download visibleMediumView" title="Download" tabindex="22" data-l10n-id="download"> |
michael@0 | 106 | <span data-l10n-id="download_label">Download</span> |
michael@0 | 107 | </button> |
michael@0 | 108 | |
michael@0 | 109 | <a href="#" id="secondaryViewBookmark" class="secondaryToolbarButton bookmark visibleSmallView" title="Current view (copy or open in new window)" tabindex="23" data-l10n-id="bookmark"> |
michael@0 | 110 | <span data-l10n-id="bookmark_label">Current View</span> |
michael@0 | 111 | </a> |
michael@0 | 112 | |
michael@0 | 113 | <div class="horizontalToolbarSeparator visibleLargeView"></div> |
michael@0 | 114 | |
michael@0 | 115 | <button id="firstPage" class="secondaryToolbarButton firstPage" title="Go to First Page" tabindex="24" data-l10n-id="first_page"> |
michael@0 | 116 | <span data-l10n-id="first_page_label">Go to First Page</span> |
michael@0 | 117 | </button> |
michael@0 | 118 | <button id="lastPage" class="secondaryToolbarButton lastPage" title="Go to Last Page" tabindex="25" data-l10n-id="last_page"> |
michael@0 | 119 | <span data-l10n-id="last_page_label">Go to Last Page</span> |
michael@0 | 120 | </button> |
michael@0 | 121 | |
michael@0 | 122 | <div class="horizontalToolbarSeparator"></div> |
michael@0 | 123 | |
michael@0 | 124 | <button id="pageRotateCw" class="secondaryToolbarButton rotateCw" title="Rotate Clockwise" tabindex="26" data-l10n-id="page_rotate_cw"> |
michael@0 | 125 | <span data-l10n-id="page_rotate_cw_label">Rotate Clockwise</span> |
michael@0 | 126 | </button> |
michael@0 | 127 | <button id="pageRotateCcw" class="secondaryToolbarButton rotateCcw" title="Rotate Counterclockwise" tabindex="27" data-l10n-id="page_rotate_ccw"> |
michael@0 | 128 | <span data-l10n-id="page_rotate_ccw_label">Rotate Counterclockwise</span> |
michael@0 | 129 | </button> |
michael@0 | 130 | |
michael@0 | 131 | <div class="horizontalToolbarSeparator"></div> |
michael@0 | 132 | |
michael@0 | 133 | <button id="toggleHandTool" class="secondaryToolbarButton handTool" title="Enable hand tool" tabindex="28" data-l10n-id="hand_tool_enable"> |
michael@0 | 134 | <span data-l10n-id="hand_tool_enable_label">Enable hand tool</span> |
michael@0 | 135 | </button> |
michael@0 | 136 | |
michael@0 | 137 | <div class="horizontalToolbarSeparator"></div> |
michael@0 | 138 | |
michael@0 | 139 | <button id="documentProperties" class="secondaryToolbarButton documentProperties" title="Document Properties…" tabindex="29" data-l10n-id="document_properties"> |
michael@0 | 140 | <span data-l10n-id="document_properties_label">Document Properties…</span> |
michael@0 | 141 | </button> |
michael@0 | 142 | </div> |
michael@0 | 143 | </div> <!-- secondaryToolbar --> |
michael@0 | 144 | |
michael@0 | 145 | <div class="toolbar"> |
michael@0 | 146 | <div id="toolbarContainer"> |
michael@0 | 147 | <div id="toolbarViewer"> |
michael@0 | 148 | <div id="toolbarViewerLeft"> |
michael@0 | 149 | <button id="sidebarToggle" class="toolbarButton" title="Toggle Sidebar" tabindex="5" data-l10n-id="toggle_sidebar"> |
michael@0 | 150 | <span data-l10n-id="toggle_sidebar_label">Toggle Sidebar</span> |
michael@0 | 151 | </button> |
michael@0 | 152 | <div class="toolbarButtonSpacer"></div> |
michael@0 | 153 | <button id="viewFind" class="toolbarButton group hiddenSmallView" title="Find in Document" tabindex="6" data-l10n-id="findbar"> |
michael@0 | 154 | <span data-l10n-id="findbar_label">Find</span> |
michael@0 | 155 | </button> |
michael@0 | 156 | <div class="splitToolbarButton"> |
michael@0 | 157 | <button class="toolbarButton pageUp" title="Previous Page" id="previous" tabindex="7" data-l10n-id="previous"> |
michael@0 | 158 | <span data-l10n-id="previous_label">Previous</span> |
michael@0 | 159 | </button> |
michael@0 | 160 | <div class="splitToolbarButtonSeparator"></div> |
michael@0 | 161 | <button class="toolbarButton pageDown" title="Next Page" id="next" tabindex="8" data-l10n-id="next"> |
michael@0 | 162 | <span data-l10n-id="next_label">Next</span> |
michael@0 | 163 | </button> |
michael@0 | 164 | </div> |
michael@0 | 165 | <label id="pageNumberLabel" class="toolbarLabel" for="pageNumber" data-l10n-id="page_label">Page: </label> |
michael@0 | 166 | <input type="number" id="pageNumber" class="toolbarField pageNumber" value="1" size="4" min="1" tabindex="9"> |
michael@0 | 167 | <span id="numPages" class="toolbarLabel"></span> |
michael@0 | 168 | </div> |
michael@0 | 169 | <div id="toolbarViewerRight"> |
michael@0 | 170 | <button id="presentationMode" class="toolbarButton presentationMode hiddenLargeView" title="Switch to Presentation Mode" tabindex="13" data-l10n-id="presentation_mode"> |
michael@0 | 171 | <span data-l10n-id="presentation_mode_label">Presentation Mode</span> |
michael@0 | 172 | </button> |
michael@0 | 173 | |
michael@0 | 174 | <button id="openFile" class="toolbarButton openFile hiddenLargeView" title="Open File" tabindex="14" data-l10n-id="open_file"> |
michael@0 | 175 | <span data-l10n-id="open_file_label">Open</span> |
michael@0 | 176 | </button> |
michael@0 | 177 | |
michael@0 | 178 | <button id="print" class="toolbarButton print hiddenMediumView" title="Print" tabindex="15" data-l10n-id="print"> |
michael@0 | 179 | <span data-l10n-id="print_label">Print</span> |
michael@0 | 180 | </button> |
michael@0 | 181 | |
michael@0 | 182 | <button id="download" class="toolbarButton download hiddenMediumView" title="Download" tabindex="16" data-l10n-id="download"> |
michael@0 | 183 | <span data-l10n-id="download_label">Download</span> |
michael@0 | 184 | </button> |
michael@0 | 185 | <!-- <div class="toolbarButtonSpacer"></div> --> |
michael@0 | 186 | <a href="#" id="viewBookmark" class="toolbarButton bookmark hiddenSmallView" title="Current view (copy or open in new window)" tabindex="17" data-l10n-id="bookmark"> |
michael@0 | 187 | <span data-l10n-id="bookmark_label">Current View</span> |
michael@0 | 188 | </a> |
michael@0 | 189 | |
michael@0 | 190 | <div class="verticalToolbarSeparator hiddenSmallView"></div> |
michael@0 | 191 | |
michael@0 | 192 | <button id="secondaryToolbarToggle" class="toolbarButton" title="Tools" tabindex="18" data-l10n-id="tools"> |
michael@0 | 193 | <span data-l10n-id="tools_label">Tools</span> |
michael@0 | 194 | </button> |
michael@0 | 195 | </div> |
michael@0 | 196 | <div class="outerCenter"> |
michael@0 | 197 | <div class="innerCenter" id="toolbarViewerMiddle"> |
michael@0 | 198 | <div class="splitToolbarButton"> |
michael@0 | 199 | <button id="zoomOut" class="toolbarButton zoomOut" title="Zoom Out" tabindex="10" data-l10n-id="zoom_out"> |
michael@0 | 200 | <span data-l10n-id="zoom_out_label">Zoom Out</span> |
michael@0 | 201 | </button> |
michael@0 | 202 | <div class="splitToolbarButtonSeparator"></div> |
michael@0 | 203 | <button id="zoomIn" class="toolbarButton zoomIn" title="Zoom In" tabindex="11" data-l10n-id="zoom_in"> |
michael@0 | 204 | <span data-l10n-id="zoom_in_label">Zoom In</span> |
michael@0 | 205 | </button> |
michael@0 | 206 | </div> |
michael@0 | 207 | <span id="scaleSelectContainer" class="dropdownToolbarButton"> |
michael@0 | 208 | <select id="scaleSelect" title="Zoom" tabindex="12" data-l10n-id="zoom"> |
michael@0 | 209 | <option id="pageAutoOption" title="" value="auto" selected="selected" data-l10n-id="page_scale_auto">Automatic Zoom</option> |
michael@0 | 210 | <option id="pageActualOption" title="" value="page-actual" data-l10n-id="page_scale_actual">Actual Size</option> |
michael@0 | 211 | <option id="pageFitOption" title="" value="page-fit" data-l10n-id="page_scale_fit">Fit Page</option> |
michael@0 | 212 | <option id="pageWidthOption" title="" value="page-width" data-l10n-id="page_scale_width">Full Width</option> |
michael@0 | 213 | <option id="customScaleOption" title="" value="custom"></option> |
michael@0 | 214 | <option title="" value="0.5">50%</option> |
michael@0 | 215 | <option title="" value="0.75">75%</option> |
michael@0 | 216 | <option title="" value="1">100%</option> |
michael@0 | 217 | <option title="" value="1.25">125%</option> |
michael@0 | 218 | <option title="" value="1.5">150%</option> |
michael@0 | 219 | <option title="" value="2">200%</option> |
michael@0 | 220 | </select> |
michael@0 | 221 | </span> |
michael@0 | 222 | </div> |
michael@0 | 223 | </div> |
michael@0 | 224 | </div> |
michael@0 | 225 | <div id="loadingBar"> |
michael@0 | 226 | <div class="progress"> |
michael@0 | 227 | <div class="glimmer"> |
michael@0 | 228 | </div> |
michael@0 | 229 | </div> |
michael@0 | 230 | </div> |
michael@0 | 231 | </div> |
michael@0 | 232 | </div> |
michael@0 | 233 | |
michael@0 | 234 | <menu type="context" id="viewerContextMenu"> |
michael@0 | 235 | <menuitem id="contextFirstPage" label="First Page" |
michael@0 | 236 | data-l10n-id="first_page"></menuitem> |
michael@0 | 237 | <menuitem id="contextLastPage" label="Last Page" |
michael@0 | 238 | data-l10n-id="last_page"></menuitem> |
michael@0 | 239 | <menuitem id="contextPageRotateCw" label="Rotate Clockwise" |
michael@0 | 240 | data-l10n-id="page_rotate_cw"></menuitem> |
michael@0 | 241 | <menuitem id="contextPageRotateCcw" label="Rotate Counter-Clockwise" |
michael@0 | 242 | data-l10n-id="page_rotate_ccw"></menuitem> |
michael@0 | 243 | </menu> |
michael@0 | 244 | |
michael@0 | 245 | <div id="viewerContainer" tabindex="0"> |
michael@0 | 246 | <div id="viewer"></div> |
michael@0 | 247 | </div> |
michael@0 | 248 | |
michael@0 | 249 | <div id="errorWrapper" hidden='true'> |
michael@0 | 250 | <div id="errorMessageLeft"> |
michael@0 | 251 | <span id="errorMessage"></span> |
michael@0 | 252 | <button id="errorShowMore" data-l10n-id="error_more_info"> |
michael@0 | 253 | More Information |
michael@0 | 254 | </button> |
michael@0 | 255 | <button id="errorShowLess" data-l10n-id="error_less_info" hidden='true'> |
michael@0 | 256 | Less Information |
michael@0 | 257 | </button> |
michael@0 | 258 | </div> |
michael@0 | 259 | <div id="errorMessageRight"> |
michael@0 | 260 | <button id="errorClose" data-l10n-id="error_close"> |
michael@0 | 261 | Close |
michael@0 | 262 | </button> |
michael@0 | 263 | </div> |
michael@0 | 264 | <div class="clearBoth"></div> |
michael@0 | 265 | <textarea id="errorMoreInfo" hidden='true' readonly="readonly"></textarea> |
michael@0 | 266 | </div> |
michael@0 | 267 | </div> <!-- mainContainer --> |
michael@0 | 268 | |
michael@0 | 269 | <div id="overlayContainer" class="hidden"> |
michael@0 | 270 | <div id="promptContainer" class="hidden"> |
michael@0 | 271 | <div id="passwordContainer" class="prompt doorHanger"> |
michael@0 | 272 | <div class="row"> |
michael@0 | 273 | <p id="passwordText" data-l10n-id="password_label">Enter the password to open this PDF file:</p> |
michael@0 | 274 | </div> |
michael@0 | 275 | <div class="row"> |
michael@0 | 276 | <input type="password" id="password" class="toolbarField" /> |
michael@0 | 277 | </div> |
michael@0 | 278 | <div class="buttonRow"> |
michael@0 | 279 | <button id="passwordCancel" class="overlayButton"><span data-l10n-id="password_cancel">Cancel</span></button> |
michael@0 | 280 | <button id="passwordSubmit" class="overlayButton"><span data-l10n-id="password_ok">OK</span></button> |
michael@0 | 281 | </div> |
michael@0 | 282 | </div> |
michael@0 | 283 | </div> |
michael@0 | 284 | <div id="documentPropertiesContainer" class="hidden"> |
michael@0 | 285 | <div class="doorHanger"> |
michael@0 | 286 | <div class="row"> |
michael@0 | 287 | <span data-l10n-id="document_properties_file_name">File name:</span> <p id="fileNameField">-</p> |
michael@0 | 288 | </div> |
michael@0 | 289 | <div class="row"> |
michael@0 | 290 | <span data-l10n-id="document_properties_file_size">File size:</span> <p id="fileSizeField">-</p> |
michael@0 | 291 | </div> |
michael@0 | 292 | <div class="separator"></div> |
michael@0 | 293 | <div class="row"> |
michael@0 | 294 | <span data-l10n-id="document_properties_title">Title:</span> <p id="titleField">-</p> |
michael@0 | 295 | </div> |
michael@0 | 296 | <div class="row"> |
michael@0 | 297 | <span data-l10n-id="document_properties_author">Author:</span> <p id="authorField">-</p> |
michael@0 | 298 | </div> |
michael@0 | 299 | <div class="row"> |
michael@0 | 300 | <span data-l10n-id="document_properties_subject">Subject:</span> <p id="subjectField">-</p> |
michael@0 | 301 | </div> |
michael@0 | 302 | <div class="row"> |
michael@0 | 303 | <span data-l10n-id="document_properties_keywords">Keywords:</span> <p id="keywordsField">-</p> |
michael@0 | 304 | </div> |
michael@0 | 305 | <div class="row"> |
michael@0 | 306 | <span data-l10n-id="document_properties_creation_date">Creation Date:</span> <p id="creationDateField">-</p> |
michael@0 | 307 | </div> |
michael@0 | 308 | <div class="row"> |
michael@0 | 309 | <span data-l10n-id="document_properties_modification_date">Modification Date:</span> <p id="modificationDateField">-</p> |
michael@0 | 310 | </div> |
michael@0 | 311 | <div class="row"> |
michael@0 | 312 | <span data-l10n-id="document_properties_creator">Creator:</span> <p id="creatorField">-</p> |
michael@0 | 313 | </div> |
michael@0 | 314 | <div class="separator"></div> |
michael@0 | 315 | <div class="row"> |
michael@0 | 316 | <span data-l10n-id="document_properties_producer">PDF Producer:</span> <p id="producerField">-</p> |
michael@0 | 317 | </div> |
michael@0 | 318 | <div class="row"> |
michael@0 | 319 | <span data-l10n-id="document_properties_version">PDF Version:</span> <p id="versionField">-</p> |
michael@0 | 320 | </div> |
michael@0 | 321 | <div class="row"> |
michael@0 | 322 | <span data-l10n-id="document_properties_page_count">Page Count:</span> <p id="pageCountField">-</p> |
michael@0 | 323 | </div> |
michael@0 | 324 | <div class="buttonRow"> |
michael@0 | 325 | <button id="documentPropertiesClose" class="overlayButton"><span data-l10n-id="document_properties_close">Close</span></button> |
michael@0 | 326 | </div> |
michael@0 | 327 | </div> |
michael@0 | 328 | </div> |
michael@0 | 329 | </div> <!-- overlayContainer --> |
michael@0 | 330 | |
michael@0 | 331 | </div> <!-- outerContainer --> |
michael@0 | 332 | <div id="printContainer"></div> |
michael@0 | 333 | </body> |
michael@0 | 334 | </html> |
michael@0 | 335 |