summaryrefslogtreecommitdiffhomepage
path: root/js/main.js
diff options
context:
space:
mode:
authorMarvin Borner2020-06-22 17:10:00 +0200
committerMarvin Borner2020-06-22 17:10:00 +0200
commit182cca811dc1750327072fa97d4a4d3348e64101 (patch)
treeb3d7aabf5b7cd64d108da3c825c1212e33d9a843 /js/main.js
parentec888354b4274b69ede15d3b83e6989683329ac1 (diff)
VERY funny code :)
Diffstat (limited to 'js/main.js')
-rw-r--r--js/main.js17
1 files changed, 17 insertions, 0 deletions
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:
+ }
+});