From 0596b9f6c561daa67945adb81570efd30650dffd Mon Sep 17 00:00:00 2001 From: stuebinm Date: Mon, 15 Mar 2021 18:38:02 +0100 Subject: Add a display view which does nothing but display the slides (should be useful e.g. as input for a screen recorder) --- picarones-elm/default.nix | 3 ++- picarones-elm/display.html | 34 ++++++++++++++++++++++++++++++++++ picarones-elm/slide.html | 4 ++-- picarones-elm/src/Display.elm | 32 ++++++++++++++++++++++++++++++++ picarones-elm/src/Main.elm | 6 ------ picarones-elm/src/Switcher.elm | 39 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 109 insertions(+), 9 deletions(-) create mode 100644 picarones-elm/display.html create mode 100644 picarones-elm/src/Display.elm create mode 100644 picarones-elm/src/Switcher.elm (limited to 'picarones-elm') diff --git a/picarones-elm/default.nix b/picarones-elm/default.nix index 2fc650b..45106b4 100644 --- a/picarones-elm/default.nix +++ b/picarones-elm/default.nix @@ -47,11 +47,12 @@ in mkDerivation { patchPhase = '' substituteInPlace index.html --replace "{{ baseurl }}" ${lib.escapeShellArg baseurl} substituteInPlace slide.html --replace "{{ serverurl }}" ${lib.escapeShellArg serverurl} + substituteInPlace display.html --replace "{{ serverurl }}" ${lib.escapeShellArg serverurl} ''; srcs = ./elm-srcs.nix; src = ./.; - targets = ["Main" "Cover"]; + targets = ["Display" "Switcher" "Cover"]; srcdir = "./src"; outputJavaScript = true; } diff --git a/picarones-elm/display.html b/picarones-elm/display.html new file mode 100644 index 0000000..88bebf1 --- /dev/null +++ b/picarones-elm/display.html @@ -0,0 +1,34 @@ + + + + + Main + + + + + +
+ + + diff --git a/picarones-elm/slide.html b/picarones-elm/slide.html index a72fb3c..4c63f97 100644 --- a/picarones-elm/slide.html +++ b/picarones-elm/slide.html @@ -3,7 +3,7 @@ Main - + @@ -12,7 +12,7 @@