]> git.parisson.com Git - pdf.js.git/commitdiff
Zoom In/Out buttons
authornotmasteryet <async.processingjs@yahoo.com>
Sat, 3 Sep 2011 01:36:17 +0000 (20:36 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Sat, 3 Sep 2011 01:36:17 +0000 (20:36 -0500)
web/viewer.css
web/viewer.html

index 1aa735355ed5f110dee2471c8673988ee9593984..a31c0b06f04842b70b995561ed84555681388482 100755 (executable)
@@ -21,6 +21,8 @@ body {
   height: 40px;
   width: 100%;
   z-index: 1;
+  white-space:nowrap;
+  overflow: hidden;
 }
 
 .separator {
@@ -63,6 +65,12 @@ span#info {
   }
 }
 
+#zoomOut, #zoomIn {
+  font-weight: bold;
+  font-size: larger;
+  width: 32px;
+}
+
 /* === Sidebar === */
 #sidebar {
   position: fixed;
index 090ea6bf43e4aecd3c39c099e566821ca77cfa6c..b29ef94c085cbaaf6e49fb6ce18a30e96bc3607c 100644 (file)
@@ -45,6 +45,9 @@
         <option id="pageFitOption" value="page-fit">Page Fit</option>
       </select>
 
+      <button id="zoomOut" onclick="PDFView.zoomOut();" title="Zoom Out">&ndash;</button>
+      <button id="zoomIn" onclick="PDFView.zoomIn();" title="Zoom In">+</button>
+
       <div class="separator"></div>
 
       <button id="print" onclick="window.print();">