summaryrefslogtreecommitdiffhomepage
path: root/js/main.js
diff options
context:
space:
mode:
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:
+ }
+});