From 2159191a465d0c78081f7fc6002362a0d964e4cb Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 10 Apr 2016 19:16:54 +0200 Subject: add progress bars --- dep/impress.js | 2 +- index.css | 23 +++++++++++++++++++++++ index.html | 26 ++++++++++++++++++++++++-- 3 files changed, 48 insertions(+), 3 deletions(-) diff --git a/dep/impress.js b/dep/impress.js index 8115af1..0673295 100644 --- a/dep/impress.js +++ b/dep/impress.js @@ -399,7 +399,7 @@ initialized = true; - triggerEvent(root, "impress:init", { api: roots[ "impress-root-" + rootId ] }); + triggerEvent(root, "impress:init", { api: roots[ "impress-root-" + rootId ], steps: steps }); }; // `getStep` is a helper function that returns a step element defined by parameter. diff --git a/index.css b/index.css index 1e9256c..527a0af 100644 --- a/index.css +++ b/index.css @@ -90,3 +90,26 @@ table.center { #io h3 { padding-bottom: 1em; } + +.bar { + position: absolute; + right: 0; + left: 0; +} +.bar div { + width: 0; + height: 2px; +} +#progressBar { + bottom: 0; +} +#progressBar div { + background: rgba(209, 196, 233, 1); + transition: width 1s; +} +#timeBar { + top: 0; +} +#timeBar div { + background: rgba(209, 196, 233, 1); +} diff --git a/index.html b/index.html index da8f4c5..7e749bb 100644 --- a/index.html +++ b/index.html @@ -31,7 +31,8 @@ MathJax.Hub.Config({ SVG: { scale: 150 - } + }, + messageStyle: "none" }); emojione.imageType = 'svg'; @@ -60,6 +61,15 @@ sizeSlides(); }, false); + var stepIds = []; + document.addEventListener("impress:init", function(event) { + for (c=0; c +
+
-

Künstliche neuronale Netze

38 Gewichte in 19 Minuten

+
-- cgit v1.3.1