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 @@ +