diff options
| -rw-r--r-- | slides/presentations/example/default.pug | 4 | ||||
| -rw-r--r-- | slides/vendor/slides.js | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/slides/presentations/example/default.pug b/slides/presentations/example/default.pug index ebb1b66..f9c6452 100644 --- a/slides/presentations/example/default.pug +++ b/slides/presentations/example/default.pug | |||
| @@ -3,6 +3,8 @@ section | |||
| 3 | p September 21, 2018 | 3 | p September 21, 2018 |
| 4 | a(href="https://twitter.com/mitjafelicijan") @mitjafelicijan | 4 | a(href="https://twitter.com/mitjafelicijan") @mitjafelicijan |
| 5 | 5 | ||
| 6 | |||
| 7 | |||
| 6 | section.center | 8 | section.center |
| 7 | q We Cannot Solve Our Problems With The Same Thinking We Used When We Created Them. | 9 | q We Cannot Solve Our Problems With The Same Thinking We Used When We Created Them. |
| 8 | footer — Albert Einstein | 10 | footer — Albert Einstein |
| @@ -41,7 +43,7 @@ section | |||
| 41 | figcaption.right Step 1: Finding nearest point | 43 | figcaption.right Step 1: Finding nearest point |
| 42 | 44 | ||
| 43 | div.center | 45 | div.center |
| 44 | img(src="presentations/example/drawing1.svg") | 46 | img(src="drawing1.svg") |
| 45 | 47 | ||
| 46 | hr | 48 | hr |
| 47 | figcaption.right Step 1: Finding nearest point | 49 | figcaption.right Step 1: Finding nearest point |
diff --git a/slides/vendor/slides.js b/slides/vendor/slides.js index a909352..77fcca6 100644 --- a/slides/vendor/slides.js +++ b/slides/vendor/slides.js | |||
| @@ -69,6 +69,11 @@ window.addEventListener('load', function(evt) { | |||
| 69 | } | 69 | } |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | // fixes images relative path | ||
| 73 | document.querySelectorAll('img').forEach(function(image) { | ||
| 74 | image.src = `presentations/${hash}/${image.getAttribute('src')}`; | ||
| 75 | }); | ||
| 76 | |||
| 72 | let slides = document.querySelectorAll('section'); | 77 | let slides = document.querySelectorAll('section'); |
| 73 | let currentIdx = 0; | 78 | let currentIdx = 0; |
| 74 | showSlide(slides, currentIdx); | 79 | showSlide(slides, currentIdx); |
