A basic packaged EPUB Scriptable Component.
11 |
12 | A basic packaged EPUB Scriptable Component.
11 |
12 | A basic packaged EPUB Scriptable Component.
11 |
12 | A basic packaged EPUB Scriptable Component.
11 |
12 |
9 | Chapter 1
10 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
11 |
12 |
13 | Heading 1
14 | Labore excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
15 |
16 | Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
17 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
18 | Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
19 |
20 | Ipsum adipiscio sitta armetta, consectetur adipiscing elit, enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
21 |
22 |
23 |
24 | Heading 2
25 | Consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
26 |
27 |
28 |
29 |
30 | Scriptable Component 1: Hello WorldA basic packaged EPUB Scriptable Component.
31 |
32 | Dolore magna aliqua uta enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # IDPF EPUB Scriptable Components code & samples
2 |
3 | This repository is home to the EPUB Scriptable Components (ESC) Working Group (WG) code and samples.
4 | Contained herein are a set of samples of Scriptable Components (SC) based upon the [ESC Packaging specification](http://www.idpf.org/epub/sc/pkg/) and [ESC Communication API specification](http://www.idpf.org/epub/sc/api/).
5 | The goal is to form a collection of standards-based Scriptable Components as a source implementation for inspection and validation from all aspects of the industries production chain; authoring, validation, ingestion, and representation.
6 | The guiding principle is to create usable samples focused on meaningful aspects of the ESC landscape. As a baseline the repository structure has been set as follows:
7 | ```
8 | .
9 | +-- LICENSE
10 | +-- README.md
11 | \---Samples
12 | +---1-basic_component
13 | | +---embedded
14 | | \---packaged
15 | +---2-nested_component
16 | | +---embedded
17 | | \---packaged
18 | \---3-messaging_component
19 | +---embedded
20 | \---packaged
21 | ```
22 |
23 |
24 |
25 | ## Contributing to EPUB Scriptable Components code & samples
26 |
27 | Looking to contribute something to EPUB Scriptable Components code & samples? **Here's how you can help:**
28 |
29 |
30 |
31 |
32 | ### Reporting issues
33 |
34 | Please read the following guidelines before opening any issue.
35 |
36 | 1. **Search for existing issues.** We get a lot of duplicate issues, and you'd help us out a lot by first checking if someone else has reported the same issue. Moreover, the issue may have already been resolved with a fix available.
37 | 2. **Create an isolated and reproducible test case.** Be sure the problem exists in EPUB Scriptable Components code & samples with a [reduced test case](http://css-tricks.com/reduced-test-cases/) that should be included in each bug report.
38 | 3. **Include a live example.** Make use of jsFiddle or jsBin to share your isolated test cases.
39 | 4. **Share as much information as possible.** Include operating system and version, browser and version, version of ePub Widget Framework, customized or vanilla build, etc. where appropriate. Also include steps to reproduce the bug.
40 |
41 |
42 |
43 |
44 | ### Pull requests
45 |
46 | - Try not to pollute your pull request with unintended changes--keep them simple and small
47 | - Try to share which browsers your code has been tested in before submitting a pull request
48 |
49 |
50 |
51 |
52 | ### Coding standards
53 |
54 | #### JS
55 |
56 | - End all lines with a semi-colon
57 | - Comma last
58 | - Indent of 4 spaces, remove tabs.
59 | - Make it readable and attractive
60 | - Modern screens can handle vertical space, use brackets on their own lines for visual clarity of blocks
61 | - Please use jsDoc annotations/comments to add typing information.
62 |
63 | #### HTML
64 |
65 | - Indent of 4 spaces, remove tabs.
66 | - Double quotes only, never single quotes
67 | - Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags)
68 | - Use CDNs and HTTPS for third-party JS when possible. We don't use protocol-relative URLs in this case because they break when viewing the page locally via `file://`
69 |
70 | #### CSS
71 |
72 | - Adhere to the [RECESS CSS property order](http://markdotto.com/2011/11/29/css-property-order/)
73 | - Multiple-line approach (one property and value per line)
74 | - Always a space after a property's colon (e.g., `display: block;` and not `display:block;`)
75 | - End all lines with a semi-colon
76 | - For multiple, comma-separated selectors, place each selector on its own line
77 | - Attribute selectors, like `input[type="text"]` should always wrap the attribute's value in double quotes, for consistency and safety (see this [blog post on unquoted attribute values](http://mathiasbynens.be/notes/unquoted-attribute-values) that can lead to XSS attacks)
78 |
79 |
80 |
81 |
82 | ### License
83 |
84 | By contributing your code, you agree to license your contribution under the [MIT](http://opensource.org/licenses/MIT) license.
85 |
--------------------------------------------------------------------------------
/Samples/1-basic_component/embedded/basic_template/EPUB/package.opf:
--------------------------------------------------------------------------------
1 |
2 |