paginar 0.1.6 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,177 +1,209 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="UTF-8" />
6
- <link rel="icon" href="/favicon.ico" />
7
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
- <title>Slot - Paginar</title>
9
- </head>
10
-
11
- <body>
12
-
13
- <style>
14
- #app {
15
- height: 100vh;
16
- }
17
-
18
- html {
19
- --bg-light-mode: #fff7e0;
20
- --bg-dark-mode: rgb(45,45,45);
21
- --theme-primary: rgb(45,45,45);
22
- --theme-primary-extralight: rgb(243 244 246);
23
- --theme-secondary: #cd2800;
24
- }
25
-
26
- #pagination-el *::selection {
27
- color: var(--theme-primary-extralight, #690000);
28
- background: var(--theme-secondary, #ffa03c);
29
- }
30
- </style>
31
-
32
- <div id="app">
33
- <paginate-content id="pagination-el" book-title="A Tale of Two Cities">
34
- <div slot="header">
35
- <img src="https://sabia.pub/images/logo-mobile-dark.svg" style="height: 40px">
36
- </div>
37
- <div slot="content">
38
- <h2>
39
- CHAPTER I.<br>The Period
40
- </h2>
41
- <p>
42
- It was the (LUGONES, 1978) best of times, it was the worst of times, it was the age of
43
- wisdom, it was the age of foolishness, it was the epoch of belief, it was
44
- the epoch of incredulity, it was the season of Light, it was the season
45
- of Darkness, it was the spring of hope (GAMA, 2019), it was the winter of despair, we
46
- had everything before us, we had nothing before us, we were all going
47
- direct to Heaven, we were all going direct the other way—in short,
48
- the period was so far like the present period (GAMA, 2019), that some of its noisiest
49
- authorities insisted on its being received, for good or for evil, in the
50
- superlative degree of comparison only.
51
- </p>
52
- <p>
53
- There were a king with a large jaw and a queen with a plain face, on the
54
- throne of England; there were a king with (LEON, 2006) a large jaw and a queen with a
55
- fair face (LEON, 2006), on the throne of France (LUGONES, 1978). In both countries it was clearer than
56
- crystal to the lords of the State preserves of loaves and fishes, that
57
- things in general were settled for ever.
58
- </p>
59
- <p>
60
- It was the year of Our Lord one thousand seven hundred and seventy-five.
61
- Spiritual revelations were conceded to England at that favoured period, as
62
- at this. Mrs. Southcott had recently attained her five-and-twentieth
63
- blessed birthday, of whom a prophetic private in the Life Guards had
64
- heralded the sublime appearance by announcing that arrangements were made
65
- for the swallowing up of London and Westminster. Even the Cock-lane ghost
66
- had been laid only a round dozen of years, after rapping out its messages,
67
- as the spirits of this very year last past (supernaturally deficient in
68
- originality) rapped out theirs. Mere messages in the earthly order of
69
- events had lately come to the English Crown and People, from a congress of
70
- British subjects in America: which, strange to relate, have proved more
71
- important to the human race than any communications yet received through
72
- any of the chickens of the Cock-lane brood.
73
- </p>
74
- <p>
75
- France, less favoured on the whole as to matters spiritual than her sister
76
- of the shield and trident, rolled with exceeding smoothness down hill,
77
- making paper money and spending it. Under the guidance of her Christian
78
- pastors, she entertained herself, besides, with such humane achievements
79
- as sentencing a youth to have his hands cut off, his tongue torn out with
80
- pincers, and his body burned alive, because he had not kneeled down in the
81
- rain to do honour to a dirty procession of monks which passed within his
82
- view, at a distance of some fifty or sixty yards. It is likely enough
83
- that, rooted in the woods of France and Norway, there were growing trees,
84
- when that sufferer was put to death, already marked by the Woodman, Fate,
85
- to come down and be sawn into boards, to make a certain movable framework
86
- with a sack and a knife in it, terrible in history. It is likely enough
87
- that in the rough outhouses of some tillers of the heavy lands adjacent to
88
- Paris, there were sheltered from the weather that very day, rude carts,
89
- bespattered with rustic mire, snuffed about by pigs, and roosted in by
90
- poultry, which the Farmer, Death, had already set apart to be his tumbrils
91
- of the Revolution. But that Woodman and that Farmer, though they work
92
- unceasingly, work silently, and no one heard them as they went about with
93
- muffled tread: the rather, forasmuch as to entertain any suspicion that
94
- they were awake, was to be atheistical and traitorous.
95
- </p>
96
- <p>
97
- In England, there was scarcely an amount of order and protection to
98
- justify much national boasting. Daring burglaries by armed men, and
99
- highway robberies, took place in the capital itself every night; families
100
- were publicly cautioned not to go out of town without removing their
101
- furniture to upholsterers’ warehouses for security; the highwayman in the
102
- dark was a City tradesman in the light, and, being recognised and
103
- challenged by his fellow-tradesman whom he stopped in his character of
104
- “the Captain,” gallantly shot him through the head and rode away; the mail
105
- was waylaid by seven robbers, and the guard shot three dead, and then got
106
- shot dead himself by the other four, “in consequence of the failure of his
107
- ammunition:” after which the mail was robbed in peace; that magnificent
108
- potentate, the Lord Mayor of London, was made to stand and deliver on
109
- Turnham Green, by one highwayman, who despoiled the illustrious creature
110
- in sight of all his retinue; prisoners in London gaols fought battles with
111
- their turnkeys, and the majesty of the law fired blunderbusses in among
112
- them, loaded with rounds of shot and ball; thieves snipped off diamond
113
- crosses from the necks of noble lords at Court drawing-rooms; musketeers
114
- went into St. Giles’s, to search for contraband goods, and the mob fired
115
- on the musketeers, and the musketeers fired on the mob, and nobody thought
116
- any of these occurrences much out of the common way. In the midst of them,
117
- the hangman, ever busy and ever worse than useless, was in constant
118
- requisition; now, stringing up long rows of miscellaneous criminals; now,
119
- hanging a housebreaker on Saturday who had been taken on Tuesday; now,
120
- burning people in the hand at Newgate by the dozen, and now burning
121
- pamphlets at the door of Westminster Hall; to-day, taking the life of an
122
- atrocious murderer, and to-morrow of a wretched pilferer who had robbed a
123
- farmer’s boy of sixpence.
124
- </p>
125
- <p>
126
- All these things, and a thousand like them, came to pass in and close upon
127
- the dear old year one thousand seven hundred and seventy-five. Environed
128
- by them, while the Woodman and the Farmer worked unheeded, those two of
129
- the large jaws, and those other two of the plain and the fair faces, trod
130
- with stir enough, and carried their divine rights with a high hand. Thus
131
- did the year one thousand seven hundred and seventy-five conduct their
132
- Greatnesses, and myriads of small creatures—the creatures of this
133
- chronicle among the rest—along the roads that lay before them.
134
- </p>
135
-
136
- </div>
137
- </paginate-content>
138
- </div>
139
- <script>
140
- const settings = {
141
- baseFont: 'Verdana, sans-serif',
142
- }
143
-
144
- const content = {
145
- summary: [
146
- { title: 'Chapter 1', link: '/demo/slot/slot-chapter1.html' },
147
- { title: 'Chapter 2', link: '/demo/slot/slot-chapter2.html' },
148
- { title: 'Chapter 3', link: '/demo/slot/slot-chapter3.html' }
149
- ],
150
-
151
- references: [
152
- {
153
- "cit": "GAMA, 2019",
154
- "ref": "GAMA, Mara. <strong>As três rotas que trouxeram a centenária Bauhaus ao Brasil</strong>. Folha de São Paulo, São Paulo, 1 abr. 2019. Disponível em: https://www1.folha.uol.com.br/ilustrissima/2019/03/as-tres-rotas-que-trouxeram-a-centenaria-bauhaus-ao-brasil.shtml. Acesso em: 4 abr. 2019"
155
- },
156
- {
157
- "cit": "LEON, 2006",
158
- "ref": "LEON, Ethel. <strong>O Instituto de Arte Contemporânea do Museu de Arte Moderna (MAM) de São Paulo dos anos 1950</strong>. São Paulo, 2006."
159
- },
160
- {
161
- "cit": "LUGONES, 1978",
162
- "ref": "LUGONES, Maria. <strong>Colonialidad y género</strong>. Tábula Rasa, Bogotá, Colômbia, n. 9, p. 73-101, julho-dezembro de 1978."
163
- }
164
- ]
165
- }
166
-
167
- const paginationEl = document.getElementById('pagination-el')
168
- if (paginationEl) {
169
- paginationEl.setAttribute("reader-settings", JSON.stringify(settings))
170
- paginationEl.setAttribute("book-content", JSON.stringify(content))
171
- }
172
- </script>
173
- <script type="module" src="/src/main.js"></script>
174
-
175
- </body>
176
-
177
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <link rel="icon" href="/favicon.ico" />
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
+ <title>Slot - Paginar</title>
9
+ </head>
10
+
11
+ <body>
12
+
13
+ <style>
14
+ #app {
15
+ height: 100vh;
16
+ }
17
+
18
+ html {
19
+ --bg-light-mode: #fff7e0;
20
+ --bg-dark-mode: rgb(45,45,45);
21
+ --theme-primary: rgb(45,45,45);
22
+ --theme-primary-extralight: rgb(243 244 246);
23
+ --theme-secondary: #cd2800;
24
+ }
25
+
26
+ #pagination-el *::selection {
27
+ color: var(--theme-primary-extralight, #690000);
28
+ background: var(--theme-secondary, #ffa03c);
29
+ }
30
+
31
+ .reference, .footnote {
32
+ border-bottom: 1px dotted #333;
33
+ cursor: pointer;
34
+ }
35
+ .reference:hover, .footnote:hover {
36
+ border-bottom: 2px solid #333;
37
+ }
38
+ </style>
39
+
40
+ <div id="app">
41
+ <paginate-content id="pagination-el" book-title="A Tale of Two Cities"
42
+ css-string="#rootComponent.currentPage-1{background-color: transparent !important; transition: background-color 200ms linear;}"
43
+ >
44
+ <div slot="header">
45
+ <img src="https://sabia.pub/images/logo-mobile-dark.svg" style="height: 40px">
46
+ </div>
47
+ <div slot="content">
48
+ <h2>
49
+ CHAPTER I.<br>The Period
50
+ </h2>
51
+ <p>
52
+ It was the (LUGONES, 1978) best of times, it was the worst of times, it was the age of
53
+ wisdom, it was the age of <span class="footnote footnote1">foolishness</span>, it was the epoch of belief, it was
54
+ the epoch of incredulity, it was the season of Light, it was the season
55
+ of Darkness, it was the spring of hope (GAMA, 2019), it was the winter of despair, we
56
+ had everything before us, we had nothing before us, we were all going
57
+ direct to Heaven, <span class="footnote footnote2">we were all going</span> direct the other way—in short,
58
+ the period was so far like the present period (GAMA, 2019), that some of its noisiest
59
+ authorities insisted on its being received, for good or for evil, in the
60
+ superlative degree of comparison only.
61
+ </p>
62
+ <p>
63
+ There were a king with a large jaw and a queen with a plain face, on the
64
+ throne of England; there were a king with (LEON, 2006) a large jaw and a queen with a
65
+ fair face (LEON, 2006), on the throne of France (LUGONES, 1978). In both countries it was clearer than
66
+ crystal to the lords of the State preserves of loaves and fishes, that
67
+ things in general were settled for ever.
68
+ </p>
69
+ <p>
70
+ It was the year of Our Lord one thousand seven hundred and seventy-five.
71
+ Spiritual revelations were conceded to England at that favoured period, as
72
+ at this. Mrs. Southcott had recently attained her five-and-twentieth
73
+ blessed birthday, of whom a prophetic private in the Life Guards had
74
+ heralded the sublime appearance by announcing that arrangements were made
75
+ for the swallowing up of London and Westminster. Even the Cock-lane ghost
76
+ had been laid only a round dozen of years, after rapping out its messages,
77
+ as the spirits of this very year last past (supernaturally deficient in
78
+ originality) rapped out theirs. Mere messages in the earthly order of
79
+ events had lately come to the English Crown and People, from a congress of
80
+ British subjects in America: which, strange to relate, have proved more
81
+ important to the human race than any communications yet received through
82
+ any of the chickens of the Cock-lane brood.
83
+ </p>
84
+ <p>
85
+ France, less favoured on the whole as to matters spiritual than her sister
86
+ of the shield and trident, rolled with exceeding smoothness down hill,
87
+ making paper money and spending it. Under the guidance of her Christian
88
+ pastors, she entertained herself, besides, with such humane achievements
89
+ as sentencing a youth to have his hands cut off, his tongue torn out with
90
+ pincers, and his body burned alive, because he had not kneeled down in the
91
+ rain to do honour to a dirty procession of monks which passed within his
92
+ view, at a distance of some fifty or sixty yards. It is likely enough
93
+ that, rooted in the woods of France and Norway, there were growing trees,
94
+ when that sufferer was put to death, already marked by the Woodman, Fate,
95
+ to come down and be sawn into boards, to make a certain movable framework
96
+ with a sack and a knife in it, terrible in history. It is likely enough
97
+ that in the rough outhouses of some tillers of the heavy lands adjacent to
98
+ Paris, there were sheltered from the weather that very day, rude carts,
99
+ bespattered with rustic mire, snuffed about by pigs, and roosted in by
100
+ poultry, which the Farmer, Death, had already set apart to be his tumbrils
101
+ of the Revolution. But that Woodman and that Farmer, though they work
102
+ unceasingly, work silently, and no one heard them as they went about with
103
+ muffled tread: the rather, forasmuch as to entertain any suspicion that
104
+ they were awake, was to be atheistical and traitorous.
105
+ </p>
106
+ <p>
107
+ In England, there was scarcely an amount of order and protection to
108
+ justify much national boasting. Daring burglaries by armed men, and
109
+ highway robberies, took place in the capital itself every night; families
110
+ were publicly cautioned not to go out of town without removing their
111
+ furniture to upholsterers’ warehouses for security; the highwayman in the
112
+ dark was a City tradesman in the light, and, being recognised and
113
+ challenged by his fellow-tradesman whom he stopped in his character of
114
+ “the Captain,” gallantly shot him through the head and rode away; the mail
115
+ was waylaid by seven robbers, and the guard shot three dead, and then got
116
+ shot dead himself by the other four, “in consequence of the failure of his
117
+ ammunition:” after which the mail was robbed in peace; that magnificent
118
+ potentate, the Lord Mayor of London, was made to stand and deliver on
119
+ Turnham Green, by one highwayman, who despoiled the illustrious creature
120
+ in sight of all his retinue; prisoners in London gaols fought battles with
121
+ their turnkeys, and the majesty of the law fired blunderbusses in among
122
+ them, loaded with rounds of shot and ball; thieves snipped off diamond
123
+ crosses from the necks of noble lords at Court drawing-rooms; musketeers
124
+ went into St. Giles’s, to search for contraband goods, and the mob fired
125
+ on the musketeers, and the musketeers fired on the mob, and nobody thought
126
+ any of these occurrences much out of the common way. In the midst of them,
127
+ the hangman, ever busy and ever worse than useless, was in constant
128
+ requisition; now, stringing up long rows of miscellaneous criminals; now,
129
+ hanging a housebreaker on Saturday who had been taken on Tuesday; now,
130
+ burning people in the hand at Newgate by the dozen, and now burning
131
+ pamphlets at the door of Westminster Hall; to-day, taking the life of an
132
+ atrocious murderer, and to-morrow of a wretched pilferer who had robbed a
133
+ farmer’s boy of sixpence.
134
+ </p>
135
+ <p>
136
+ All these things, and a thousand like them, came to pass in and close upon
137
+ the dear old year one thousand seven hundred and seventy-five. Environed
138
+ by them, while the Woodman and the Farmer worked unheeded, those two of
139
+ the large jaws, and those other two of the plain and the fair faces, trod
140
+ with stir enough, and carried their divine rights with a high hand. Thus
141
+ did the year one thousand seven hundred and seventy-five conduct their
142
+ Greatnesses, and myriads of small creatures—the creatures of this
143
+ chronicle among the rest—along the roads that lay before them.
144
+ </p>
145
+
146
+ </div>
147
+ </paginate-content>
148
+ </div>
149
+ <script>
150
+ const settings = {
151
+ baseFont: 'Verdana, sans-serif'
152
+ }
153
+
154
+ const content = {
155
+ summary: [
156
+ { title: 'Chapter 1', link: '/demo/slot/slot-chapter1.html' },
157
+ { title: 'Chapter 2', link: '/demo/slot/slot-chapter2.html' },
158
+ { title: 'Chapter 3', link: '/demo/slot/slot-chapter3.html' }
159
+ ],
160
+
161
+ references: [
162
+ {
163
+ "cit": "GAMA, 2019",
164
+ "ref": "GAMA, Mara. <strong>As três rotas que trouxeram a centenária Bauhaus ao Brasil</strong>. Folha de São Paulo, São Paulo, 1 abr. 2019. Disponível em: https://www1.folha.uol.com.br/ilustrissima/2019/03/as-tres-rotas-que-trouxeram-a-centenaria-bauhaus-ao-brasil.shtml. Acesso em: 4 abr. 2019"
165
+ },
166
+ {
167
+ "cit": "LEON, 2006",
168
+ "ref": "LEON, Ethel. <strong>O Instituto de Arte Contemporânea do Museu de Arte Moderna (MAM) de São Paulo dos anos 1950</strong>. São Paulo, 2006."
169
+ },
170
+ {
171
+ "cit": "LUGONES, 1978",
172
+ "ref": "LUGONES, Maria. <strong>Colonialidad y género</strong>. Tábula Rasa, Bogotá, Colômbia, n. 9, p. 73-101, julho-dezembro de 1978."
173
+ }
174
+ ],
175
+
176
+ footnotes: [
177
+ {
178
+ "id": "footnote1",
179
+ "text": "Foot note text lorem ipsum"
180
+ },
181
+ {
182
+ "id": "footnote2",
183
+ "text": "The meaning of ontology is complex, but it generally refers to the philosophical study of the nature of being, becoming or existing. Escobar uses this concept to stress the power of design to create ways of being and doing through its processes and products. "
184
+ }
185
+ ]
186
+ }
187
+
188
+ const paginationEl = document.getElementById('pagination-el')
189
+ if (paginationEl) {
190
+ paginationEl.setAttribute("reader-settings", JSON.stringify(settings))
191
+ paginationEl.setAttribute("book-content", JSON.stringify(content))
192
+
193
+ // TESTE DE BLOQUEAR O PAGINADOR
194
+ // setTimeout(() => {
195
+ // console.log('vai chamar')
196
+ // paginationEl.setAttribute("reader-blocked", JSON.stringify(true))
197
+
198
+ // setTimeout(() => {
199
+ // console.log('vai chamar 2')
200
+ // paginationEl.setAttribute("reader-blocked", JSON.stringify(false))
201
+ // }, 2000)
202
+ // }, 2000)
203
+ }
204
+ </script>
205
+ <script type="module" src="/src/main.js"></script>
206
+
207
+ </body>
208
+
209
+ </html>