Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Martino committed Feb 15, 2022
2 parents ff33e89 + cfc4d1f commit 8e139db
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Reveal.initialize({
* **`offset`**: Sets the offset of Verticator from the edge (right or left, see 'position') of the screen. Set to `3vmin` by default, it can be set to any other valid CSS size and unit.
* **`autogenerate`**: Autogenerate a UL element with the class `verticator` if none is found. Set to `true` by default.


## Like it?

If you like it, please star this repo.
Expand Down
1 change: 1 addition & 0 deletions plugin/verticator/plugin-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const Plugin = () => {

if (!theVerticator) {
if(!options.autogenerate) return

let ul = document.createElement('ul');
ul.className += "verticator";
revealElement.insertBefore(ul, revealElement.childNodes[0]);
Expand Down
7 changes: 3 additions & 4 deletions plugin/verticator/verticator.esm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/*****************************************************************
* @author: Martijn De Jongh (Martino), [email protected]
* https://github.com/Martinomagnifico
Expand All @@ -10,7 +9,7 @@
* MIT licensed
*
* Thanks to:
* - Hakim El Hattab, Reveal.js
* - Hakim El Hattab, Reveal.js
******************************************************************/


Expand All @@ -21,7 +20,7 @@ var Plugin = function Plugin() {
} catch (t) {
!function (t) {
var e = /:scope(?![\w-])/gi,
r = u(t.querySelector);
r = u(t.querySelector);

t.querySelector = function (t) {
return r.apply(this, arguments);
Expand Down Expand Up @@ -67,7 +66,7 @@ var Plugin = function Plugin() {

var getNodeindex = function getNodeindex(elm) {
var c = elm.parentNode.children,
i = 0;
i = 0;

for (; i < c.length; i++) {
if (c[i] == elm) return i;
Expand Down
3 changes: 2 additions & 1 deletion plugin/verticator/verticator.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
* MIT licensed
*
* Thanks to:
* - Hakim El Hattab, Reveal.js
* - Hakim El Hattab, Reveal.js
******************************************************************/



(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
Expand Down

0 comments on commit 8e139db

Please sign in to comment.