From 182cca811dc1750327072fa97d4a4d3348e64101 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 22 Jun 2020 17:10:00 +0200 Subject: VERY funny code :) --- js/main.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'js/main.js') diff --git a/js/main.js b/js/main.js index 0539d9f..3a7a7c4 100644 --- a/js/main.js +++ b/js/main.js @@ -124,3 +124,20 @@ function koch(start, end, iteration) { koch([x2, y2], [end[0], end[1]], iteration - 1); } } + +// Some revealjs thingies +// This some real hacky shit yo +Reveal.addEventListener("fragmentshown", (event) => { + switch (event.fragment.getAttribute("data-action")) { + case "nebenrechnung": + Reveal.slide(4, 1, 0); + break; + case "umfang-back": + Reveal.slide(4, 0, 2); + break; + case "gooo": + Reveal.slide(5, 0, 0); + break; + default: + } +}); -- cgit v1.2.3