paginar 0.2.8 → 0.3.1

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.
Files changed (56) hide show
  1. package/.editorconfig +13 -13
  2. package/.env +1 -1
  3. package/.vscode/extensions.json +3 -3
  4. package/LICENSE.md +21 -0
  5. package/README.md +244 -14
  6. package/demo/slot/slot-chapter1.html +384 -357
  7. package/demo/slot/slot-chapter2.html +366 -366
  8. package/demo/slot/slot-chapter3.html +265 -265
  9. package/demo/summary/_content/1chapter.html +100 -97
  10. package/demo/summary/_content/2chapter.html +311 -311
  11. package/demo/summary/_content/3chapter.html +211 -211
  12. package/demo/summary/index.html +134 -123
  13. package/dist/index.es.js +991 -920
  14. package/dist/index.es.js.map +1 -1
  15. package/dist/style.css +14 -17
  16. package/index.html +18 -18
  17. package/package.json +1 -1
  18. package/src/App.ce.vue +148 -153
  19. package/src/assets/main.css +392 -392
  20. package/src/components/BookContent.vue +23 -23
  21. package/src/components/FooterSlot.vue +32 -32
  22. package/src/components/FootnotesAside.vue +123 -123
  23. package/src/components/HeaderSlot/HeaderSlot.vue +30 -30
  24. package/src/components/HeaderSlot/OptionsButton/OptionsButton.vue +67 -67
  25. package/src/components/HeaderSlot/OptionsButton/OptionsColor.vue +28 -28
  26. package/src/components/HeaderSlot/OptionsButton/OptionsColumns.vue +51 -49
  27. package/src/components/HeaderSlot/OptionsButton/OptionsDropdown.vue +59 -55
  28. package/src/components/HeaderSlot/OptionsButton/OptionsFontFamily.vue +17 -17
  29. package/src/components/HeaderSlot/OptionsButton/OptionsFontSize.vue +17 -17
  30. package/src/components/HeaderSlot/SummaryButton/SummaryButton.vue +70 -65
  31. package/src/components/HeaderSlot/SummaryButton/SummaryDropdown.vue +8 -7
  32. package/src/components/ReaderWrapper.vue +37 -37
  33. package/src/components/ReferencePopup.vue +36 -36
  34. package/src/components/icons/Close.vue +6 -6
  35. package/src/components/icons/DoubleColumn.vue +15 -15
  36. package/src/components/icons/Expand.vue +7 -7
  37. package/src/components/icons/Eye.vue +9 -9
  38. package/src/components/icons/Footnote.vue +5 -5
  39. package/src/components/icons/Home.vue +6 -6
  40. package/src/components/icons/Moon.vue +5 -5
  41. package/src/components/icons/Notes.vue +5 -5
  42. package/src/components/icons/SingleColumn.vue +3 -3
  43. package/src/components/icons/Summary.vue +10 -10
  44. package/src/components/icons/Sun.vue +5 -5
  45. package/src/components/icons/ThreeDots.vue +8 -8
  46. package/src/composables/useBrowser.js +16 -16
  47. package/src/composables/useFootnotes.js +50 -50
  48. package/src/composables/usePagination.js +125 -125
  49. package/src/composables/useReaderSettings.js +174 -153
  50. package/src/composables/useReferences.js +67 -67
  51. package/src/composables/useStyles.js +60 -43
  52. package/src/composables/useTextContent.js +113 -113
  53. package/src/main.js +19 -19
  54. package/src/tailwind.css +5 -8
  55. package/tailwind.config.js +16 -16
  56. package/vite.config.js +36 -36
@@ -1,357 +1,384 @@
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, <span class="reference reference-GAMA,2019">it was <em>the <span>spring</span> of hope</em> (GAMA, 2019)</span>, 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 <em>all</em> 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": "footnote10",
179
- "text": "Defined as “the activities associated with the governance of a country or area, especially the debate between parties having power”. Retrieved from https://www.lexico.com/definition/ecology."
180
- },
181
- {
182
- "id": "footnote11",
183
- "text": "Ecology and economy have the same root in the Greek word oikos, meaning “house”. Economy originally meant “household management” and has subsequently come to refer to an economic system and its interactions. Economies are defined, analyzed, and managed at multiple scales, from households to countries to the entire planet, with attention given to economic interactions, stocks, flows, and benefits for people (Bubb et al., 2017, p. 10.)."
184
- },
185
- {
186
- "id": "footnote12",
187
- "text": "Objects (living or nonliving) that were not created by human hand."
188
- },
189
- {
190
- "id": "footnote13",
191
- "text": "This vision is represented by the Gaia hypothesis or Gaia theory, first outlined by James Lovelock and Lynn Margulis in the 1970’s. The authors’ theory supports the argument that the natural systems of the Earth are self-regulating and adequate for the creation and maintenance of life on the planet. "
192
- },
193
- {
194
- "id": "footnote14",
195
- "text": "Characteristics of the exchanges between humans and the rest of Nature."
196
- },
197
- {
198
- "id": "footnote15",
199
- "text": "Term that refers to the geopolitical territory of those in the periphery of the economy. It alludes to the countries that are in the south of the globe (those in South America, Africa, and part of Asia) but can also include poorer regions in the northern hemisphere."
200
- },
201
- {
202
- "id": "footnote16",
203
- "text": "\"Third World\" is a term popularized during the Cold War (1947-1991) to define countries that remained non-aligned with either NATO or the Warsaw Pact. Countries such as Japan, Canada, South Korea, Western European nations, and their respective allies represented the First World, while the post-Soviet Union countries, Cuba, China, and their respective allies represented the Second World."
204
- },
205
- {
206
- "id": "footnote17",
207
- "text": "To refer to the culture and philosophical tradition that has its historical roots in early European cultures (e.g., Greco-Roman, Germanic), Judaic and Christian values and Enlightenment thinking and that has shaped Anglo-European and North American society (Zylstra et al., 2014)."
208
- },
209
- {
210
- "id": "footnote18",
211
- "text": "Also referenced by Gibson et al. (2013, p. 170) as resource curse but referring to the case of Norway and oil extraction."
212
- },
213
- {
214
- "id": "footnote19",
215
- "text": "Extractivism can be described as a geopolitical, economic, and social relations produced throughout history based on the extraction of natural elements to be sold on the Global Market."
216
- },
217
- {
218
- "id": "footnote20",
219
- "text": "Refers to a kind of agricultural production based on a single crop or livestock species, usually done in large quantities."
220
- },
221
- {
222
- "id": "footnote21",
223
- "text": "Global Market is the exchange of goods and services? on an international level. "
224
- },
225
- {
226
- "id": "footnote22",
227
- "text": "An age in which humanity searches for balanced living with the rest of Nature."
228
- },
229
- {
230
- "id": "footnote23",
231
- "text": "Climate justice refers to the unequally felt consequences of climate change. It has been proven that socially marginalized communities suffer a greater impact on natural disasters and environmental imbalances for their weaker social and economic protection and/or strong dependence on Nature for sustenance. "
232
- },
233
- {
234
- "id": "footnote24",
235
- "text": "Wicked problems were first defined by design theorists Horst Rittel and Melvin Webber in 1973 as complex social issues that are very difficult to solve because of their complexity. They differ from “tame” problems of mathematics and chess, since either their root or solution are systemic and hard to point out. This term is usually used in planning, policing, and design. "
236
- },
237
- {
238
- "id": "footnote25",
239
- "text": "Retrieved from https://unfccc.int/about-us/about-the-secretariat."
240
- },
241
- {
242
- "id": "footnote26",
243
- "text": "The report can be found on the link: https://unstats.un.org/sdgs/report/2020/The-Sustainable-Development-Goals-Report-2020.pdf"
244
- },
245
- {
246
- "id": "footnote27",
247
- "text": "The report can be found on the link: https://www.ipcc.ch/report/ar6/wg1/downloads/report/IPCC_AR6_WGI_Full_Report.pdf."
248
- },
249
- {
250
- "id": "footnote28",
251
- "text": "The SDGs 2020 report affirms that “the world continues to use natural resources unsustainably”, with a growing carbon footprint from 2010 to 2017 (p. 17) while the IPCC reports that “it is unequivocal that human influence has warmed the atmosphere, ocean and land”. The IPCC provides several analyses to support this affirmation, from the warmth of oceans to greenhouse gas concentration, and so on. "
252
- },
253
- {
254
- "id": "footnote29",
255
- "text": "Visions on containing deforestation, lowering methane emission and “phasing down” the Party's dependence on coal have been set on the Glasgow Declarations of Forest and Land Use. However, it is known that pursuing such deeds are complex systemic challenges that many times are not taken forward. On this subject, it is worth mentioning the case of Brazil, whose government was one of the countries who signed the Leaders' Declaration on Forests and Land Us on the 12th of November of 2021, committing to reduce drastically deforestation in the country and contain 30% of methane emissions by 2030 (information retrieved from https://ukcop26.org/glasgow-leaders-declaration-on-forests-and-land-use/, accessed on 18.12.2021) . However, Brazilian leadership has not put forward relevant measures that support this objective. As Brazilian’s Government representatives announce the program “Floresta+”, official data from Deter (the country’s platform for measuring the Amazon Forest’s coverage) shows that, over the last two years under their watch, deforestation on the Amazon has grown immensely compared to previous years."
256
- },
257
- {
258
- "id": "footnote30",
259
- "text": "Reporter Felipe Werneck (2021) from Brazilian platform Observatório do Clima (Climate’s Observatory, in Portuguese) describes in an article the many difficulties for entering COP26 physical and virtual spaces. From long lines, poor Covid-safety measures and instability of the streaming platform, the organization body failed to make the event as “open and inclusive” as they promised. "
260
- },
261
- {
262
- "id": "footnote31",
263
- "text": "The Paiter-Suruí people tell they have been contacted for the first time in 1969 by Funai (National Indigenous Foundation of Brazil). Today, they are a community of 1,900 people living in 28 communities in the southern part of the Amazon. More on the Paiter-Suruí people on their platform: www.paiter-surui.com."
264
- },
265
- {
266
- "id": "footnote32",
267
- "text": "Here applies the technology that allows the substitution of coal and oil-based energy, such as solar and wind energy, or the spread of less polluting products such as electric cars or recycled phones."
268
- },
269
- {
270
- "id": "footnote33",
271
- "text": "The Yanomami are spread in 288 communities (data from 2011) living between the Brazilian and Venezuelan Amazon. They are hunter-farmers whose contact with the western society became more frequent only at the beginning of the 20th century. They are one of the largest Amerindian groups in the Amazon to have mostly held on to their traditional way of life, according to Albert (Kopenawa, 2010). More information on the already mentioned book by Kopenawa and Albert and at the portal https://pib.socioambiental.org/en/Povo:Yanomami (in Portuguese)."
272
- },
273
- {
274
- "id": "footnote34",
275
- "text": "The Kalungas say they are the biggest community of the kind in Brazil, summing up to 20.000 families today. They have nurtured quilombo culture and their sustainable ways of living, respecting their surroundings throughout the centuries. An article by Rute Pina (2021) on digital magazine Agência Pública provides more information on the importance of this community to maintenance of sustainable knowledge. More on Quilombo Kalunga on their website http://quilombokalunga.org.br/PKS/?page_id=25 (in Portuguese)."
276
- },
277
- {
278
- "id": "footnote35",
279
- "text": "Wangari Maathai (1940-2011) was the founder of the Green Belt Movement, an environmental organization that fights for climate justice and the environment. Their work is based on empowering communities, especially women, to maintain and improve their community’s environment and ways of living. Maathai wrote about human deep connections to Nature, especially with trees. More on the Green Belt Movement and Maathai on their platform http://www.greenbeltmovement.org/."
280
- },
281
- {
282
- "id": "footnote36",
283
- "text": "Biocentrism is the philosophy that all living beings have the same importance and have the right to live (Gudynas, 2019, p. 65)."
284
- },
285
- {
286
- "id": "footnote37",
287
- "text": "The influence of past philosophers on current culture is well proven. Fry (2011) states “Put simply, we all think and act out of philosophical heritage - we do not have to know anything about the Greeks, Kant, Hegel and so on, to be affected by their thinking.” (p. 80). "
288
- },
289
- {
290
- "id": "footnote38",
291
- "text": "The study of the nature of knowledge and ways of knowing."
292
- },
293
- {
294
- "id": "footnote39",
295
- "text": "To treat something or someone as an object, synonym of disregard for her/his/its feelings or well-being, or simply disrespect."
296
- },
297
- {
298
- "id": "footnote40",
299
- "text": "To know more, see Sealey-Huggins (2018)."
300
- },
301
- {
302
- "id": "footnote41",
303
- "text": "The Transition town network self defines as “a movement that has been growing since 2005. It is about communities stepping up to address the big challenges they face by starting local. By coming together, they are able to crowd-source solutions. They seek to nurture a caring culture, one focused on supporting each other, both as groups or as wider communities.” Retrieved from https://transitionnetwork.org/about-the-movement/what-is-transition/."
304
- },
305
- {
306
- "id": "footnote42",
307
- "text": "The Right to the City is “as a unified response to gentrification and a call to halt the displacement of low-income people, people of color, marginalized LGBTQ communities, and youths of color from their historic urban neighborhoods. We are a national alliance of racial, economic and environmental justice organizations.” As they state: “. . . a key resource and touchstone is ‘Le droit à la ville’ (The right to the city) a book published in 1968 by French intellectual and philosopher Henri Lefebvre. In the sphere of human rights, this powerful idea was adopted by the World Urban Forum and elaborated into the World Charter of the Right to the City in 2004. Building from this powerful idea, international principles, and forward looking grassroots organizing, the Right To The City Alliance was established in January 2007.” Retrieved from https://righttothecity.org/about/mission-history/."
308
- },
309
- {
310
- "id": "footnote43",
311
- "text": "To know more about these initiatives, see https://transitionnetwork.org/ and https://righttothecity.org/."
312
- },
313
- {
314
- "id": "footnote44",
315
- "text": "Refers to the amount of carbon dioxide released into the atmosphere as a result of the activities of an individual, an organization, or a community."
316
- },
317
- {
318
- "id": "footnote45",
319
- "text": "The movements of Brazilian tribes are constant and strong, though continually overlooked by the Brazilian government. Updated news can be found on platforms such as the one from the Coalition of Indigenous Peoples of Brazil (APIB) (https://apiboficial.org/noticias/), National Indigenous Mobilization (https://mobilizacaonacionalindigena.wordpress.com/) and the Indigenous Media (https://www.midiaindia.com/)."
320
- },
321
- {
322
- "id": "footnote46",
323
- "text": "As Thomas Berry liked to identify himself, instead of the commonly used \"theologian\" or \"eco theologian\"."
324
- },
325
- {
326
- "id": "footnote1",
327
- "text": "Foot note text lorem ipsum"
328
- },
329
- {
330
- "id": "footnote2",
331
- "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. "
332
- }
333
- ]
334
- }
335
-
336
- const paginationEl = document.getElementById('pagination-el')
337
- if (paginationEl) {
338
- paginationEl.setAttribute("reader-settings", JSON.stringify(settings))
339
- paginationEl.setAttribute("book-content", JSON.stringify(content))
340
-
341
- // TESTE DE BLOQUEAR O PAGINADOR
342
- // setTimeout(() => {
343
- // console.log('vai chamar')
344
- // paginationEl.setAttribute("reader-blocked", JSON.stringify(true))
345
-
346
- // setTimeout(() => {
347
- // console.log('vai chamar 2')
348
- // paginationEl.setAttribute("reader-blocked", JSON.stringify(false))
349
- // }, 2000)
350
- // }, 2000)
351
- }
352
- </script>
353
- <script type="module" src="/src/main.js"></script>
354
-
355
- </body>
356
-
357
- </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
+
39
+ p {
40
+ text-indent: 4rem;
41
+ }
42
+
43
+ .page-break {
44
+ break-before: column;
45
+ }
46
+
47
+ .page-break span {
48
+ background-color: #eee;
49
+ padding: 5px;
50
+ font-family: monospace;
51
+ display: block;
52
+ }
53
+ </style>
54
+
55
+ <div id="app">
56
+ <paginate-content id="pagination-el">
57
+ <div slot="content">
58
+ <h2>
59
+ CHAPTER I.<br>The Period
60
+ </h2>
61
+ <p>
62
+ It was the (LUGONES, 1978) best of times, it was the worst of times, it was the age of
63
+ wisdom, it was the age of <span class="footnote footnote1">foolishness</span>, it was the epoch of belief, it was
64
+ the epoch of incredulity, it was the season of Light, it was the season
65
+ of Darkness, <span class="reference reference-GAMA,2019">it was <em>the <span>spring</span> of hope</em> (GAMA, 2019)</span>, it was the winter of despair, we
66
+ had everything before us, we had nothing before us, we were all going
67
+ direct to Heaven, <span class="footnote footnote2">we were <em>all</em> going</span> direct the other way—in short,
68
+ the period was so far like the present period (GAMA, 2019), that some of its noisiest
69
+ authorities insisted on its being received, for good or for evil, in the
70
+ superlative degree of comparison only.
71
+ </p>
72
+ <div class="page-break">
73
+ <span>Page Break</span>
74
+ </div>
75
+ <p>
76
+ There were a king with a large jaw and a queen with a plain face, on the
77
+ throne of England; there were a king with (LEON, 2006) a large jaw and a queen with a
78
+ fair face (LEON, 2006), on the throne of France (LUGONES, 1978). In both countries it was clearer than
79
+ crystal to the lords of the State preserves of loaves and fishes, that
80
+ things in general were settled for ever.
81
+ </p>
82
+ <p>
83
+ It was the year of Our Lord one thousand seven hundred and seventy-five.
84
+ Spiritual revelations were conceded to England at that favoured period, as
85
+ at this. Mrs. Southcott had recently attained her five-and-twentieth
86
+ blessed birthday, of whom a prophetic private in the Life Guards had
87
+ heralded the sublime appearance by announcing that arrangements were made
88
+ for the swallowing up of London and Westminster. Even the Cock-lane ghost
89
+ had been laid only a round dozen of years, after rapping out its messages,
90
+ as the spirits of this very year last past (supernaturally deficient in
91
+ originality) rapped out theirs. Mere messages in the earthly order of
92
+ events had lately come to the English Crown and People, from a congress of
93
+ British subjects in America: which, strange to relate, have proved more
94
+ important to the human race than any communications yet received through
95
+ any of the chickens of the Cock-lane brood.
96
+ </p>
97
+ <p>
98
+ France, less favoured on the whole as to matters spiritual than her sister
99
+ of the shield and trident, rolled with exceeding smoothness down hill,
100
+ making paper money and spending it. Under the guidance of her Christian
101
+ pastors, she entertained herself, besides, with such humane achievements
102
+ as sentencing a youth to have his hands cut off, his tongue torn out with
103
+ pincers, and his body burned alive, because he had not kneeled down in the
104
+ rain to do honour to a dirty procession of monks which passed within his
105
+ view, at a distance of some fifty or sixty yards. It is likely enough
106
+ that, rooted in the woods of France and Norway, there were growing trees,
107
+ when that sufferer was put to death, already marked by the Woodman, Fate,
108
+ to come down and be sawn into boards, to make a certain movable framework
109
+ with a sack and a knife in it, terrible in history. It is likely enough
110
+ that in the rough outhouses of some tillers of the heavy lands adjacent to
111
+ Paris, there were sheltered from the weather that very day, rude carts,
112
+ bespattered with rustic mire, snuffed about by pigs, and roosted in by
113
+ poultry, which the Farmer, Death, had already set apart to be his tumbrils
114
+ of the Revolution. But that Woodman and that Farmer, though they work
115
+ unceasingly, work silently, and no one heard them as they went about with
116
+ muffled tread: the rather, forasmuch as to entertain any suspicion that
117
+ they were awake, was to be atheistical and traitorous.
118
+ </p>
119
+ <p>
120
+ In England, there was scarcely an amount of order and protection to
121
+ justify much national boasting. Daring burglaries by armed men, and
122
+ highway robberies, took place in the capital itself every night; families
123
+ were publicly cautioned not to go out of town without removing their
124
+ furniture to upholsterers’ warehouses for security; the highwayman in the
125
+ dark was a City tradesman in the light, and, being recognised and
126
+ challenged by his fellow-tradesman whom he stopped in his character of
127
+ “the Captain,” gallantly shot him through the head and rode away; the mail
128
+ was waylaid by seven robbers, and the guard shot three dead, and then got
129
+ shot dead himself by the other four, “in consequence of the failure of his
130
+ ammunition:” after which the mail was robbed in peace; that magnificent
131
+ potentate, the Lord Mayor of London, was made to stand and deliver on
132
+ Turnham Green, by one highwayman, who despoiled the illustrious creature
133
+ in sight of all his retinue; prisoners in London gaols fought battles with
134
+ their turnkeys, and the majesty of the law fired blunderbusses in among
135
+ them, loaded with rounds of shot and ball; thieves snipped off diamond
136
+ crosses from the necks of noble lords at Court drawing-rooms; musketeers
137
+ went into St. Giles’s, to search for contraband goods, and the mob fired
138
+ on the musketeers, and the musketeers fired on the mob, and nobody thought
139
+ any of these occurrences much out of the common way. In the midst of them,
140
+ the hangman, ever busy and ever worse than useless, was in constant
141
+ requisition; now, stringing up long rows of miscellaneous criminals; now,
142
+ hanging a housebreaker on Saturday who had been taken on Tuesday; now,
143
+ burning people in the hand at Newgate by the dozen, and now burning
144
+ pamphlets at the door of Westminster Hall; to-day, taking the life of an
145
+ atrocious murderer, and to-morrow of a wretched pilferer who had robbed a
146
+ farmer’s boy of sixpence.
147
+ </p>
148
+ <p>
149
+ All these things, and a thousand like them, came to pass in and close upon
150
+ the dear old year one thousand seven hundred and seventy-five. Environed
151
+ by them, while the Woodman and the Farmer worked unheeded, those two of
152
+ the large jaws, and those other two of the plain and the fair faces, trod
153
+ with stir enough, and carried their divine rights with a high hand. Thus
154
+ did the year one thousand seven hundred and seventy-five conduct their
155
+ Greatnesses, and myriads of small creatures—the creatures of this
156
+ chronicle among the rest—along the roads that lay before them.
157
+ </p>
158
+
159
+ </div>
160
+ </paginate-content>
161
+ </div>
162
+ <script>
163
+ const settings = {
164
+ baseFont: 'Verdana, sans-serif',
165
+
166
+ homeUrl: 'https://sabia.pub',
167
+
168
+ bookTitle: 'A Tale of Two Cities',
169
+ chapterTitle: 'Chapter One - The Period',
170
+
171
+ cssString: `
172
+ header#component-header {
173
+ background-color: #000;
174
+ }
175
+ #footnotes-button {
176
+ display: none;
177
+ }
178
+ `
179
+ }
180
+
181
+ const content = {
182
+ summary: [
183
+ { title: 'Chapter 1', link: '/demo/slot/slot-chapter1.html' },
184
+ { title: 'Chapter 2', link: '/demo/slot/slot-chapter2.html' },
185
+ { title: 'Chapter 3', link: '/demo/slot/slot-chapter3.html' }
186
+ ],
187
+
188
+ references: [
189
+ {
190
+ "cit": "GAMA, 2019",
191
+ "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"
192
+ },
193
+ {
194
+ "cit": "LEON, 2006",
195
+ "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."
196
+ },
197
+ {
198
+ "cit": "LUGONES, 1978",
199
+ "ref": "LUGONES, Maria. <strong>Colonialidad y género</strong>. Tábula Rasa, Bogotá, Colômbia, n. 9, p. 73-101, julho-dezembro de 1978."
200
+ }
201
+ ],
202
+
203
+ footnotes: [
204
+ {
205
+ "id": "footnote10",
206
+ "text": "Defined as “the activities associated with the governance of a country or area, especially the debate between parties having power”. Retrieved from https://www.lexico.com/definition/ecology."
207
+ },
208
+ {
209
+ "id": "footnote11",
210
+ "text": "Ecology and economy have the same root in the Greek word oikos, meaning “house”. Economy originally meant “household management” and has subsequently come to refer to an economic system and its interactions. Economies are defined, analyzed, and managed at multiple scales, from households to countries to the entire planet, with attention given to economic interactions, stocks, flows, and benefits for people (Bubb et al., 2017, p. 10.)."
211
+ },
212
+ {
213
+ "id": "footnote12",
214
+ "text": "Objects (living or nonliving) that were not created by human hand."
215
+ },
216
+ {
217
+ "id": "footnote13",
218
+ "text": "This vision is represented by the Gaia hypothesis or Gaia theory, first outlined by James Lovelock and Lynn Margulis in the 1970’s. The authors’ theory supports the argument that the natural systems of the Earth are self-regulating and adequate for the creation and maintenance of life on the planet. "
219
+ },
220
+ {
221
+ "id": "footnote14",
222
+ "text": "Characteristics of the exchanges between humans and the rest of Nature."
223
+ },
224
+ {
225
+ "id": "footnote15",
226
+ "text": "Term that refers to the geopolitical territory of those in the periphery of the economy. It alludes to the countries that are in the south of the globe (those in South America, Africa, and part of Asia) but can also include poorer regions in the northern hemisphere."
227
+ },
228
+ {
229
+ "id": "footnote16",
230
+ "text": "\"Third World\" is a term popularized during the Cold War (1947-1991) to define countries that remained non-aligned with either NATO or the Warsaw Pact. Countries such as Japan, Canada, South Korea, Western European nations, and their respective allies represented the First World, while the post-Soviet Union countries, Cuba, China, and their respective allies represented the Second World."
231
+ },
232
+ {
233
+ "id": "footnote17",
234
+ "text": "To refer to the culture and philosophical tradition that has its historical roots in early European cultures (e.g., Greco-Roman, Germanic), Judaic and Christian values and Enlightenment thinking and that has shaped Anglo-European and North American society (Zylstra et al., 2014)."
235
+ },
236
+ {
237
+ "id": "footnote18",
238
+ "text": "Also referenced by Gibson et al. (2013, p. 170) as resource curse but referring to the case of Norway and oil extraction."
239
+ },
240
+ {
241
+ "id": "footnote19",
242
+ "text": "Extractivism can be described as a geopolitical, economic, and social relations produced throughout history based on the extraction of natural elements to be sold on the Global Market."
243
+ },
244
+ {
245
+ "id": "footnote20",
246
+ "text": "Refers to a kind of agricultural production based on a single crop or livestock species, usually done in large quantities."
247
+ },
248
+ {
249
+ "id": "footnote21",
250
+ "text": "Global Market is the exchange of goods and services? on an international level. "
251
+ },
252
+ {
253
+ "id": "footnote22",
254
+ "text": "An age in which humanity searches for balanced living with the rest of Nature."
255
+ },
256
+ {
257
+ "id": "footnote23",
258
+ "text": "Climate justice refers to the unequally felt consequences of climate change. It has been proven that socially marginalized communities suffer a greater impact on natural disasters and environmental imbalances for their weaker social and economic protection and/or strong dependence on Nature for sustenance. "
259
+ },
260
+ {
261
+ "id": "footnote24",
262
+ "text": "Wicked problems were first defined by design theorists Horst Rittel and Melvin Webber in 1973 as complex social issues that are very difficult to solve because of their complexity. They differ from “tame” problems of mathematics and chess, since either their root or solution are systemic and hard to point out. This term is usually used in planning, policing, and design. "
263
+ },
264
+ {
265
+ "id": "footnote25",
266
+ "text": "Retrieved from https://unfccc.int/about-us/about-the-secretariat."
267
+ },
268
+ {
269
+ "id": "footnote26",
270
+ "text": "The report can be found on the link: https://unstats.un.org/sdgs/report/2020/The-Sustainable-Development-Goals-Report-2020.pdf"
271
+ },
272
+ {
273
+ "id": "footnote27",
274
+ "text": "The report can be found on the link: https://www.ipcc.ch/report/ar6/wg1/downloads/report/IPCC_AR6_WGI_Full_Report.pdf."
275
+ },
276
+ {
277
+ "id": "footnote28",
278
+ "text": "The SDGs 2020 report affirms that “the world continues to use natural resources unsustainably”, with a growing carbon footprint from 2010 to 2017 (p. 17) while the IPCC reports that “it is unequivocal that human influence has warmed the atmosphere, ocean and land”. The IPCC provides several analyses to support this affirmation, from the warmth of oceans to greenhouse gas concentration, and so on. "
279
+ },
280
+ {
281
+ "id": "footnote29",
282
+ "text": "Visions on containing deforestation, lowering methane emission and “phasing down” the Party's dependence on coal have been set on the Glasgow Declarations of Forest and Land Use. However, it is known that pursuing such deeds are complex systemic challenges that many times are not taken forward. On this subject, it is worth mentioning the case of Brazil, whose government was one of the countries who signed the Leaders' Declaration on Forests and Land Us on the 12th of November of 2021, committing to reduce drastically deforestation in the country and contain 30% of methane emissions by 2030 (information retrieved from https://ukcop26.org/glasgow-leaders-declaration-on-forests-and-land-use/, accessed on 18.12.2021) . However, Brazilian leadership has not put forward relevant measures that support this objective. As Brazilian’s Government representatives announce the program “Floresta+”, official data from Deter (the country’s platform for measuring the Amazon Forest’s coverage) shows that, over the last two years under their watch, deforestation on the Amazon has grown immensely compared to previous years."
283
+ },
284
+ {
285
+ "id": "footnote30",
286
+ "text": "Reporter Felipe Werneck (2021) from Brazilian platform Observatório do Clima (Climate’s Observatory, in Portuguese) describes in an article the many difficulties for entering COP26 physical and virtual spaces. From long lines, poor Covid-safety measures and instability of the streaming platform, the organization body failed to make the event as “open and inclusive” as they promised. "
287
+ },
288
+ {
289
+ "id": "footnote31",
290
+ "text": "The Paiter-Suruí people tell they have been contacted for the first time in 1969 by Funai (National Indigenous Foundation of Brazil). Today, they are a community of 1,900 people living in 28 communities in the southern part of the Amazon. More on the Paiter-Suruí people on their platform: www.paiter-surui.com."
291
+ },
292
+ {
293
+ "id": "footnote32",
294
+ "text": "Here applies the technology that allows the substitution of coal and oil-based energy, such as solar and wind energy, or the spread of less polluting products such as electric cars or recycled phones."
295
+ },
296
+ {
297
+ "id": "footnote33",
298
+ "text": "The Yanomami are spread in 288 communities (data from 2011) living between the Brazilian and Venezuelan Amazon. They are hunter-farmers whose contact with the western society became more frequent only at the beginning of the 20th century. They are one of the largest Amerindian groups in the Amazon to have mostly held on to their traditional way of life, according to Albert (Kopenawa, 2010). More information on the already mentioned book by Kopenawa and Albert and at the portal https://pib.socioambiental.org/en/Povo:Yanomami (in Portuguese)."
299
+ },
300
+ {
301
+ "id": "footnote34",
302
+ "text": "The Kalungas say they are the biggest community of the kind in Brazil, summing up to 20.000 families today. They have nurtured quilombo culture and their sustainable ways of living, respecting their surroundings throughout the centuries. An article by Rute Pina (2021) on digital magazine Agência Pública provides more information on the importance of this community to maintenance of sustainable knowledge. More on Quilombo Kalunga on their website http://quilombokalunga.org.br/PKS/?page_id=25 (in Portuguese)."
303
+ },
304
+ {
305
+ "id": "footnote35",
306
+ "text": "Wangari Maathai (1940-2011) was the founder of the Green Belt Movement, an environmental organization that fights for climate justice and the environment. Their work is based on empowering communities, especially women, to maintain and improve their community’s environment and ways of living. Maathai wrote about human deep connections to Nature, especially with trees. More on the Green Belt Movement and Maathai on their platform http://www.greenbeltmovement.org/."
307
+ },
308
+ {
309
+ "id": "footnote36",
310
+ "text": "Biocentrism is the philosophy that all living beings have the same importance and have the right to live (Gudynas, 2019, p. 65)."
311
+ },
312
+ {
313
+ "id": "footnote37",
314
+ "text": "The influence of past philosophers on current culture is well proven. Fry (2011) states “Put simply, we all think and act out of philosophical heritage - we do not have to know anything about the Greeks, Kant, Hegel and so on, to be affected by their thinking.” (p. 80). "
315
+ },
316
+ {
317
+ "id": "footnote38",
318
+ "text": "The study of the nature of knowledge and ways of knowing."
319
+ },
320
+ {
321
+ "id": "footnote39",
322
+ "text": "To treat something or someone as an object, synonym of disregard for her/his/its feelings or well-being, or simply disrespect."
323
+ },
324
+ {
325
+ "id": "footnote40",
326
+ "text": "To know more, see Sealey-Huggins (2018)."
327
+ },
328
+ {
329
+ "id": "footnote41",
330
+ "text": "The Transition town network self defines as “a movement that has been growing since 2005. It is about communities stepping up to address the big challenges they face by starting local. By coming together, they are able to crowd-source solutions. They seek to nurture a caring culture, one focused on supporting each other, both as groups or as wider communities.” Retrieved from https://transitionnetwork.org/about-the-movement/what-is-transition/."
331
+ },
332
+ {
333
+ "id": "footnote42",
334
+ "text": "The Right to the City is “as a unified response to gentrification and a call to halt the displacement of low-income people, people of color, marginalized LGBTQ communities, and youths of color from their historic urban neighborhoods. We are a national alliance of racial, economic and environmental justice organizations.” As they state: “. . . a key resource and touchstone is ‘Le droit à la ville’ (The right to the city) a book published in 1968 by French intellectual and philosopher Henri Lefebvre. In the sphere of human rights, this powerful idea was adopted by the World Urban Forum and elaborated into the World Charter of the Right to the City in 2004. Building from this powerful idea, international principles, and forward looking grassroots organizing, the Right To The City Alliance was established in January 2007.” Retrieved from https://righttothecity.org/about/mission-history/."
335
+ },
336
+ {
337
+ "id": "footnote43",
338
+ "text": "To know more about these initiatives, see https://transitionnetwork.org/ and https://righttothecity.org/."
339
+ },
340
+ {
341
+ "id": "footnote44",
342
+ "text": "Refers to the amount of carbon dioxide released into the atmosphere as a result of the activities of an individual, an organization, or a community."
343
+ },
344
+ {
345
+ "id": "footnote45",
346
+ "text": "The movements of Brazilian tribes are constant and strong, though continually overlooked by the Brazilian government. Updated news can be found on platforms such as the one from the Coalition of Indigenous Peoples of Brazil (APIB) (https://apiboficial.org/noticias/), National Indigenous Mobilization (https://mobilizacaonacionalindigena.wordpress.com/) and the Indigenous Media (https://www.midiaindia.com/)."
347
+ },
348
+ {
349
+ "id": "footnote46",
350
+ "text": "As Thomas Berry liked to identify himself, instead of the commonly used \"theologian\" or \"eco theologian\"."
351
+ },
352
+ {
353
+ "id": "footnote1",
354
+ "text": "Foot note text lorem ipsum"
355
+ },
356
+ {
357
+ "id": "footnote2",
358
+ "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. "
359
+ }
360
+ ]
361
+ }
362
+
363
+ const paginationEl = document.getElementById('pagination-el')
364
+ if (paginationEl) {
365
+ paginationEl.setAttribute("reader-settings", JSON.stringify(settings))
366
+ paginationEl.setAttribute("book-content", JSON.stringify(content))
367
+
368
+ // TESTE DE BLOQUEAR O PAGINADOR
369
+ // setTimeout(() => {
370
+ // console.log('vai chamar')
371
+ // paginationEl.setAttribute("reader-blocked", JSON.stringify(true))
372
+
373
+ // setTimeout(() => {
374
+ // console.log('vai chamar 2')
375
+ // paginationEl.setAttribute("reader-blocked", JSON.stringify(false))
376
+ // }, 2000)
377
+ // }, 2000)
378
+ }
379
+ </script>
380
+ <script type="module" src="/src/main.js"></script>
381
+
382
+ </body>
383
+
384
+ </html>