diff --git a/Public/assets/festival-info.css b/Public/festival/assets/festival-info.css similarity index 100% rename from Public/assets/festival-info.css rename to Public/festival/assets/festival-info.css diff --git a/Public/assets/festival-info.js b/Public/festival/assets/festival-info.js similarity index 100% rename from Public/assets/festival-info.js rename to Public/festival/assets/festival-info.js diff --git a/Public/assets/festival.css b/Public/festival/assets/festival.css similarity index 98% rename from Public/assets/festival.css rename to Public/festival/assets/festival.css index afc6df0..5fd28e1 100644 --- a/Public/assets/festival.css +++ b/Public/festival/assets/festival.css @@ -193,6 +193,37 @@ input[type=text] { grid-row: 5; } +.music-control { + position: absolute; + bottom: 15px; + left: 15px; + height: 30px; + display: table; + line-height: 30px; + text-align: center; + cursor: pointer; +} + +.player-icon { + height: 20px; + padding-top: 5px; +} + +.player-text { + color: #fff; + display: table-cell; + vertical-align: middle; + padding-left: 5px; +} + +#pause-button { + display: none; +} + +#playing-text { + display: none; +} + @media only screen and (max-width: 800px) { .title-text { font-size: 18vw; @@ -1671,4 +1702,4 @@ input[type=text] { -webkit-animation-name: blinkOff; animation-name: blinkOff; } -/*# sourceMappingURL=festival.css.map */ \ No newline at end of file +/*# sourceMappingURL=festival.css.map */ diff --git a/Public/assets/festival.css.map b/Public/festival/assets/festival.css.map similarity index 100% rename from Public/assets/festival.css.map rename to Public/festival/assets/festival.css.map diff --git a/Public/assets/festival.js b/Public/festival/assets/festival.js similarity index 72% rename from Public/assets/festival.js rename to Public/festival/assets/festival.js index bab49d8..1c0ce9d 100644 --- a/Public/assets/festival.js +++ b/Public/festival/assets/festival.js @@ -1,3 +1,5 @@ +var isPlaying = false; + function showRegisterForm() { document.getElementById("text-container").style.top = '2%' document.getElementById("register-button").style.opacity = 0 @@ -5,8 +7,31 @@ function showRegisterForm() { document.getElementById("name-form").style.display = 'inherit' document.getElementById("add-calender-event").style.display = 'none' document.getElementById("guest-name").focus() + if (!isPlaying) { + playPause(); + } +} + +function playPause() { var audio = document.getElementById("audio"); - audio.play(); + var playButton = document.getElementById("play-button"); + var pauseButton = document.getElementById("pause-button"); + var playText = document.getElementById("playing-text"); + var pauseText = document.getElementById("paused-text"); + if (isPlaying) { + audio.pause(); + playButton.style.display = "inherit"; + pauseButton.style.display = "none"; + playText.style.display = "none"; + pauseText.style.display = "table-cell"; + } else { + audio.play(); + playButton.style.display = "none"; + pauseButton.style.display = "inherit"; + playText.style.display = "table-cell"; + pauseText.style.display = "none"; + } + isPlaying = !isPlaying; } async function participate(isParticipating) { diff --git a/Public/assets/festival.scss b/Public/festival/assets/festival.scss similarity index 100% rename from Public/assets/festival.scss rename to Public/festival/assets/festival.scss diff --git a/Public/festival/assets/pause.svg b/Public/festival/assets/pause.svg new file mode 100644 index 0000000..fb5e164 --- /dev/null +++ b/Public/festival/assets/pause.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Public/festival/assets/play.svg b/Public/festival/assets/play.svg new file mode 100644 index 0000000..f4e3f8a --- /dev/null +++ b/Public/festival/assets/play.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Public/festival-en.html b/Public/festival/festival-en.html similarity index 90% rename from Public/festival-en.html rename to Public/festival/festival-en.html index 4e23c27..a7ef268 100644 --- a/Public/festival-en.html +++ b/Public/festival/festival-en.html @@ -59,6 +59,12 @@ +
+ + +
Paul Kalkbrenner - Since 77
+
Play music
+
diff --git a/Public/festival-en.ics b/Public/festival/festival-en.ics similarity index 100% rename from Public/festival-en.ics rename to Public/festival/festival-en.ics diff --git a/Public/festival-info.html b/Public/festival/festival-info.html similarity index 100% rename from Public/festival-info.html rename to Public/festival/festival-info.html diff --git a/Public/festival.html b/Public/festival/festival.html similarity index 90% rename from Public/festival.html rename to Public/festival/festival.html index cd66fe8..7a52bed 100644 --- a/Public/festival.html +++ b/Public/festival/festival.html @@ -59,6 +59,12 @@ +
+ + +
Paul Kalkbrenner - Since 77
+
Musik starten
+
diff --git a/Public/festival.ics b/Public/festival/festival.ics similarity index 100% rename from Public/festival.ics rename to Public/festival/festival.ics diff --git a/Public/icons/festival.ico b/Public/festival/icons/festival.ico similarity index 100% rename from Public/icons/festival.ico rename to Public/festival/icons/festival.ico diff --git a/Public/icons/festival.png b/Public/festival/icons/festival.png similarity index 100% rename from Public/icons/festival.png rename to Public/festival/icons/festival.png diff --git a/Public/since77.mp3 b/Public/festival/since77.mp3 similarity index 100% rename from Public/since77.mp3 rename to Public/festival/since77.mp3 diff --git a/local-server.sh b/local-server.sh new file mode 100755 index 0000000..6d575c6 --- /dev/null +++ b/local-server.sh @@ -0,0 +1 @@ +python3 -m http.server -d Public