| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <!-- NOTE: index.html/index.js are automatically generated from index.in.html | 2 <!-- NOTE: index.html/index.js are automatically generated from index.in.html |
| 3 using the command: vulcanize --csp index.in.html -o index.html | 3 using the command: vulcanize --csp index.in.html -o index.html |
| 4 index.html/index.js SHOULD NOT be modified manually. | 4 index.html/index.js SHOULD NOT be modified manually. |
| 5 TODO(raymes): Get rid of the need for vulcanize once HTMLImports is | 5 TODO(raymes): Get rid of the need for vulcanize once HTMLImports is |
| 6 working properly in polymer. --> | 6 working properly in polymer. --> |
| 7 <html i18n-values="dir:textdirection"> | 7 <html i18n-values="dir:textdirection"> |
| 8 <head> | 8 <head> |
| 9 <meta charset="utf-8"> | 9 <meta charset="utf-8"> |
| 10 <script src="polymer_loader.js"></script> | 10 <script src="polymer_loader.js"></script> |
| 11 <link rel="import" href="../../../../third_party/polymer/polymer-selector/poly
mer-selector.html"> | 11 <link rel="import" href="../../../../third_party/polymer/polymer-selector/poly
mer-selector.html"> |
| 12 <link rel="import" href="html_office/elements/viewer-toolbar/viewer-toolbar.ht
ml"> | 12 <link rel="import" href="html_office/elements/viewer-toolbar/viewer-toolbar.ht
ml"> |
| 13 <link rel="import" href="html_office/elements/viewer-button/viewer-button.html
"> | 13 <link rel="import" href="html_office/elements/viewer-button/viewer-button.html
"> |
| 14 <style> | 14 <style> |
| 15 body { | 15 body { |
| 16 background-color: #ccc; | 16 background-color: #ccc; |
| 17 margin: 0; | 17 margin: 0; |
| 18 } | 18 } |
| 19 viewer-toolbar { | 19 viewer-toolbar { |
| 20 z-index: 2; | 20 z-index: 2; |
| 21 } | 21 } |
| 22 object { | 22 #plugin { |
| 23 height: 100%; |
| 24 position: fixed; |
| 25 width: 100%; |
| 23 z-index: 1; | 26 z-index: 1; |
| 24 } | 27 } |
| 28 #sizer { |
| 29 position: absolute; |
| 30 z-index: 0; |
| 31 } |
| 25 </style> | 32 </style> |
| 26 </head> | 33 </head> |
| 27 <body> | 34 <body> |
| 28 | 35 |
| 29 <viewer-toolbar> | 36 <div id="sizer"></div> |
| 37 |
| 38 <viewer-toolbar id="toolbar"> |
| 30 <polymer-selector> | 39 <polymer-selector> |
| 31 <viewer-button src="button_fit_page.png" latchable=true></viewer-button> | 40 <viewer-button id="fit-to-page-button" src="button_fit_page.png" latchable> |
| 32 <viewer-button src="button_fit_width.png" latchable=true></viewer-button> | 41 </viewer-button> |
| 33 <viewer-button src="button_zoom_in.png"></viewer-button> | 42 <viewer-button id="fit-to-width-button" src="button_fit_width.png" |
| 34 <viewer-button src="button_zoom_out.png"></viewer-button> | 43 latchable> |
| 44 </viewer-button> |
| 45 <viewer-button id="zoom-in-button" src="button_zoom_in.png"> |
| 46 </viewer-button> |
| 47 <viewer-button id="zoom-out-button" src="button_zoom_out.png"> |
| 48 </viewer-button> |
| 35 </polymer-selector> | 49 </polymer-selector> |
| 36 <viewer-button src="button_save.png"></viewer-button> | 50 <viewer-button id="save-button" src="button_save.png"></viewer-button> |
| 37 <viewer-button src="button_print.png"></viewer-button> | 51 <viewer-button id="print-button" src="button_print.png"></viewer-button> |
| 38 </viewer-toolbar> | 52 </viewer-toolbar> |
| 39 | 53 |
| 40 </body> | 54 </body> |
| 41 <script src="pdf.js"></script> | 55 <script src="pdf.js"></script> |
| 42 </html> | 56 </html> |
| OLD | NEW |