Commit Graph
20 Commits
Author SHA1 Message Date
Aditya Bhatt 57ef0fa0c7 Add some guidelines for using custom CSS (such as fonts) in the viewer
by way of a commented reference to a local.css and a
boilerplate-ish example file
2013-08-28 16:11:19 +02:00
Aditya Bhatt 17717c7f8d Add touchable overlays!
* Close button in presentation mode
* Left and right navigation buttons in small screen fit-to-page modes
that fade in when interaction happens and then fade out
2013-07-16 20:06:09 +02:00
Aditya Bhatt ad2d6f9cd5 Move the presentation, fullscreen, and download buttons to the top 2013-07-16 14:37:54 +02:00
Aditya Bhatt 465eb8c3e7 Add a 'presentation mode' that switches to fullscreen and hides the UI. 2013-07-13 23:50:45 +02:00
Aditya Bhatt a12f490e2b Make ODFViewerPlugin.js load webodf.js upon initialization, instead of
hard-linking it in index.html
2013-07-12 11:50:01 +02:00
Aditya Bhatt 221e0f59e3 * Make index.html completely agnostic of any plugins
* Add a PluginLoader with knowledge of filetype -> plugin mapping
2013-07-11 16:17:43 +02:00
Aditya Bhatt 48904fcc24 New changes to viewer deemed necessary after writing a PDF plugin:
* Reduced the number of getElementById calls for some often-used elements
* Added canvasContainer.onscroll handling - which will call the onScroll
of the viewer plugin, if present; for example for updating page numbers
or updating the rendering (if we are using lazy loading)
* Added a delayedRefresh() function which starts a timeout to run the
onScroll() function for lazy rendering refresh, but unloads the previous
timeout if delayedRefresh() is called again, so you can resize the
window rapidly as much as you want and as long as you want and the
rendering redraw will only happen 300 milliseconds after you stop doing
that. (In case of ODF, this will still seem butter-smooth and
continuously resizing because it's just CSS scaling, and no canvas
redrawing since the onScroll of ODFViewerPlugin is not defined)
* Added several small fixes suggested by Jos
2013-07-05 13:47:23 +02:00
Aditya Bhatt 41b6655d2b Always call fixContainerSize when switching pages via the PageSwitcher,
to account for slide dimensions (which may not be the same as the entire
document's size)
2013-07-05 13:47:22 +02:00
Aditya Bhatt 9ed4acb905 Refactor and make API
Rename viewer.js to ODFViewerPlugin.js
Add a viewer.js and pull non-odf specific methods into this API from
the ODF plugin

Initialize Viewer with ODFViewerPlugin during window.onload
2013-07-05 13:47:22 +02:00
Tobias Hintze c4bfc82f0f viewer: fix issue with down-button disabled by another div 2012-10-30 10:08:55 +01:00
Tobias Hintze 89ad7ecd4e include programs/viewer in the build and create zip
* creates a viewer-$ver.zip
* compiles viewer.js
* removes the compiled webodf.js from programs/viewer/ in source
2012-10-27 23:08:13 +02:00
Aditya Bhatt 5a9e57929c page navigation controls 2012-09-22 07:14:03 +05:30
Aditya Bhatt 48ef2e69ff add titlebar 2012-09-22 05:44:54 +05:30
Aditya Bhatt feafce137e page view styles menu works 2012-09-21 00:40:31 +05:30
Aditya Bhatt ff98c97f39 update viewer 2012-09-20 21:31:54 +05:30
Aditya Bhatt 834b86832e add toolbar controls for zooming 2012-09-19 21:15:56 +05:30
Aditya Bhatt 193ea38132 Fullscreen mode, particularly useful when the viewer is embedded as an iframe, and you want to see the full thing. Uses the new HTML5 Fullscreen API 2012-09-19 18:22:21 +05:30
Aditya Bhatt 2d229c2a7c download button, working 2012-09-19 17:34:05 +05:30
Aditya Bhatt 819e2dbbfe toolbar button for fullscreen, with image 2012-09-19 17:00:27 +05:30
Aditya Bhatt 9fdab7069c Viewer app. Added basic toolbar and canvas. 2012-09-19 16:00:38 +05:30