paginar 0.1.7 → 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.
@@ -27,11 +27,19 @@
27
27
  color: var(--theme-primary-extralight, #690000);
28
28
  background: var(--theme-secondary, #ffa03c);
29
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
+ }
30
38
  </style>
31
39
 
32
40
  <div id="app">
33
41
  <paginate-content id="pagination-el" book-title="A Tale of Two Cities"
34
- css-string="#rootComponent.currentPage-1{background-color: red !important; transition: background-color 200ms linear;}"
42
+ css-string="#rootComponent.currentPage-1{background-color: transparent !important; transition: background-color 200ms linear;}"
35
43
  >
36
44
  <div slot="header">
37
45
  <img src="https://sabia.pub/images/logo-mobile-dark.svg" style="height: 40px">
@@ -42,11 +50,11 @@
42
50
  </h2>
43
51
  <p>
44
52
  It was the (LUGONES, 1978) best of times, it was the worst of times, it was the age of
45
- wisdom, it was the age of foolishness, it was the epoch of belief, it was
53
+ wisdom, it was the age of <span class="footnote footnote1">foolishness</span>, it was the epoch of belief, it was
46
54
  the epoch of incredulity, it was the season of Light, it was the season
47
55
  of Darkness, it was the spring of hope (GAMA, 2019), it was the winter of despair, we
48
56
  had everything before us, we had nothing before us, we were all going
49
- direct to Heaven, we were all going direct the other way—in short,
57
+ direct to Heaven, <span class="footnote footnote2">we were all going</span> direct the other way—in short,
50
58
  the period was so far like the present period (GAMA, 2019), that some of its noisiest
51
59
  authorities insisted on its being received, for good or for evil, in the
52
60
  superlative degree of comparison only.
@@ -140,7 +148,7 @@
140
148
  </div>
141
149
  <script>
142
150
  const settings = {
143
- baseFont: 'Verdana, sans-serif',
151
+ baseFont: 'Verdana, sans-serif'
144
152
  }
145
153
 
146
154
  const content = {
@@ -163,6 +171,17 @@
163
171
  "cit": "LUGONES, 1978",
164
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."
165
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
+ }
166
185
  ]
167
186
  }
168
187
 
@@ -170,6 +189,17 @@
170
189
  if (paginationEl) {
171
190
  paginationEl.setAttribute("reader-settings", JSON.stringify(settings))
172
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)
173
203
  }
174
204
  </script>
175
205
  <script type="module" src="/src/main.js"></script>