Skip to content

Commit 5afa7db

Browse files
author
Martino
committed
Bugfix, v 1.1.4
1 parent 5d7fad7 commit 5afa7db

File tree

7 files changed

+21
-16
lines changed

7 files changed

+21
-16
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
# Changelog
22

3+
## [1.1.4] - 2022-06-04
4+
### Changed
5+
- Typo fix
6+
7+
38
## [1.1.3] - 2022-06-04
49
### Added
510
- Autoload the CSS styling.
6-
- Added a new `path` option if the user wants to override the autoloading of the included styles. For example, to customise the styling.
11+
- Added a new `csspath` option if the user wants to override the autoloading of the included styles. For example, to customise the styling.
712

813
## [1.1.2] - 2022-03-07
914
### Changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ If you're using ES modules, you can add it like this:
7474

7575
Since version 1.1.3, the styling of Verticator is automatically inserted from the included CSS styles, either loaded through NPM or from the plugin folder. If you enable tooltips in the options, the same goes for those styles.
7676

77-
If you want to change the Verticator or tooltip style, you can simply make your own style and use that stylesheet instead. Linking to your custom styles can be managed through the `path` option of Verticator.
77+
If you want to change the Verticator or tooltip style, you can simply make your own style and use that stylesheet instead. Linking to your custom styles can be managed through the `csspath` option of Verticator.
7878

7979

8080
### HTML
@@ -100,7 +100,7 @@ Reveal.initialize({
100100
autogenerate: true,
101101
tooltip: false,
102102
scale: 1,
103-
path: {
103+
csspath: {
104104
verticator: '',
105105
tooltip: ''
106106
}
@@ -126,7 +126,7 @@ Reveal.initialize({
126126
* `tooltip: 'data-name'`: When you use `tooltip: 'data-name'` or `tooltip: 'title'` or any other attribute with a string value, the tooltip will show that value.
127127
* `tooltip: 'auto'`: When you use `tooltip: 'auto'`, Verticator will check titles of each slide in the order: `data-verticator-tooltip`, `data-name`, `title`, and if none found, headings inside each slide in the order: `h1`, `h2`, `h3`, `h4`. Auto-mode is convenient for Verticator tooltips in Markdown slides. Set `data-verticator-tooltip="none"` or a class of `no-verticator-tooltip` on specific slides if you don't want the attribute- or auto-tooltip to show at all.
128128
* **`scale`**: While Verticator will now scale according to the scale factor of the main slides (since version 1.1.1), the option `scale` will resize it manually on top of that. Set to `1` by default, it can be set to a minimum of `0.5` and a maximum of `2`.
129-
* **`path`**: Verticator will automatically load the styling for the bullets and (if needed) the tooltips. If you want to customise the styling, you can link to your own CSS files here for each of the styles.
129+
* **`csspath`**: Verticator will automatically load the styling for the bullets and (if needed) the tooltips. If you want to customise the styling, you can link to your own CSS files here for each of the styles.
130130

131131

132132
## Like it?

demo.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h3>Options</h3>
6666
<li>autogenerate</li>
6767
<li>scale</li>
6868
<li>tooltip</li>
69-
<li>path</li>
69+
<li>csspath</li>
7070
</ol>
7171
</div>
7272
</section>
@@ -200,12 +200,12 @@ <h4>Option 10: scale</h4>
200200
</code></pre>
201201
</section>
202202
<section class="center">
203-
<h4>Option 11: path</h4>
203+
<h4>Option 11: csspath</h4>
204204
<p>Verticator will automatically load the styling for the bullets and (if needed) the tooltips. If you want to change the styling, you can link to your own CSS files:</p>
205205
<pre><code class="javascript">Reveal.initialize({
206206
...
207207
verticator: {
208-
path: {
208+
csspath: {
209209
verticator: 'path-to/my-css-files/customverticator.css',
210210
tooltip: 'path-to/my-css-files/customtooltip.css'
211211
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reveal.js-verticator",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "A plugin for Reveal.js 4 that adds indicators to show the amount of slides in a vertical stack",
55
"keywords": "reveal, reveal.js, vertical bullets, reveal-plugin, plugin, fullPage.js",
66
"homepage": "https://github.com/Martinomagnifico/reveal.js-verticator",

plugin/verticator/plugin-src.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ const Plugin = () => {
285285
return path;
286286
}
287287

288-
let VerticatorStylePath = !!options.csspath.verticator ? options.csspath.verticator : null || `${pluginPath()}verticator.css` || 'plugin/verticator/verticator.css'
289-
let TooltipStylePath =!!options.csspath.tooltip ? options.csspath.tooltip : null || `${pluginPath()}tooltip.css` || 'plugin/verticator/tooltip.css'
288+
let VerticatorStylePath = options.csspath.verticator ? options.csspath.verticator : null || `${pluginPath()}verticator.css` || 'plugin/verticator/verticator.css'
289+
let TooltipStylePath = options.csspath.tooltip ? options.csspath.tooltip : null || `${pluginPath()}tooltip.css` || 'plugin/verticator/tooltip.css'
290290

291291
if (options.debug) {
292292
console.log(`Plugin path = ${pluginPath()}`);

plugin/verticator/verticator.esm.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* https://github.com/Martinomagnifico
55
*
66
* Verticator.js for Reveal.js
7-
* Version 1.1.3
7+
* Version 1.1.4
88
*
99
* @license
1010
* MIT licensed
@@ -288,8 +288,8 @@ var Plugin = function Plugin() {
288288
return path;
289289
}
290290

291-
var VerticatorStylePath = !!options.csspath.verticator ? options.csspath.verticator : "".concat(pluginPath(), "verticator.css") || 'plugin/verticator/verticator.css';
292-
var TooltipStylePath = !!options.csspath.tooltip ? options.csspath.tooltip : "".concat(pluginPath(), "tooltip.css") || 'plugin/verticator/tooltip.css';
291+
var VerticatorStylePath = options.csspath.verticator ? options.csspath.verticator : "".concat(pluginPath(), "verticator.css") || 'plugin/verticator/verticator.css';
292+
var TooltipStylePath = options.csspath.tooltip ? options.csspath.tooltip : "".concat(pluginPath(), "tooltip.css") || 'plugin/verticator/tooltip.css';
293293

294294
if (options.debug) {
295295
console.log("Plugin path = ".concat(pluginPath()));

plugin/verticator/verticator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* https://github.com/Martinomagnifico
55
*
66
* Verticator.js for Reveal.js
7-
* Version 1.1.3
7+
* Version 1.1.4
88
*
99
* @license
1010
* MIT licensed
@@ -294,8 +294,8 @@
294294
return path;
295295
}
296296

297-
var VerticatorStylePath = !!options.csspath.verticator ? options.csspath.verticator : "".concat(pluginPath(), "verticator.css") || 'plugin/verticator/verticator.css';
298-
var TooltipStylePath = !!options.csspath.tooltip ? options.csspath.tooltip : "".concat(pluginPath(), "tooltip.css") || 'plugin/verticator/tooltip.css';
297+
var VerticatorStylePath = options.csspath.verticator ? options.csspath.verticator : "".concat(pluginPath(), "verticator.css") || 'plugin/verticator/verticator.css';
298+
var TooltipStylePath = options.csspath.tooltip ? options.csspath.tooltip : "".concat(pluginPath(), "tooltip.css") || 'plugin/verticator/tooltip.css';
299299

300300
if (options.debug) {
301301
console.log("Plugin path = ".concat(pluginPath()));

0 commit comments

Comments
 (0)