Book Viewer Component: Difference between revisions
Jump to navigation
Jump to search
| Line 39: | Line 39: | ||
* `[COMMON_TEMPLATE_DIR]_templates/content/book-viewer/page-set.php` | * `[COMMON_TEMPLATE_DIR]_templates/content/book-viewer/page-set.php` | ||
* `[COMMON_TEMPLATE_DIR]_templates/content/book-viewer/page-navigation.php` | |||
* `[COMMON_TEMPLATE_DIR]_templates/content/book-viewer/page-previews.php` | * `[COMMON_TEMPLATE_DIR]_templates/content/book-viewer/page-previews.php` | ||
* `[COMMON_TEMPLATE_DIR]_templates/content/book-viewer/book-previews.php` | * `[COMMON_TEMPLATE_DIR]_templates/content/book-viewer/book-previews.php` | ||
Revision as of 16:52, 13 December 2013
Overview
Documentation of the "book viewer" component used on damienjay.com and littledamien.com.
Markup
DOM elements required to operate the book viewer
+- .page-title | +- .book-container > data-id, data-type | | | +- .alert-error | | | +- .left-page > data-p, data-op | | | | | +- img | | | +- .right-page > data-p, data-op | | | +- img | +- .page-links-container | | | +- .prev-pg-btn > data-p, data-op | | | +- .page-number | | | +- .next-pg-btn > data-p, data-op | +- .preload-0 | +- .preload-1
[COMMON_TEMPLATE_DIR]_templates/content/book-viewer/page-set.php[COMMON_TEMPLATE_DIR]_templates/content/book-viewer/page-navigation.php[COMMON_TEMPLATE_DIR]_templates/content/book-viewer/page-previews.php[COMMON_TEMPLATE_DIR]_templates/content/book-viewer/book-previews.php
JavaScript
jQuery libraries
jQueryjQuery UIjQuery MobileSupport for tablet swipe navigation. (No CDN that I could find.)
"littled" libraries
$.littled$.bookviewer