summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-04-19 15:50:29 +0200
committerJules Laplace <julescarbon@gmail.com>2021-04-19 15:50:29 +0200
commit03b78c302023ff296a8b4200801fa9de7291eed8 (patch)
treeced297791326a0cb3229372e9eaf2532062aa0e9 /frontend
parent0231b8df6732aee5c5f254b3d15e5139800e6ea0 (diff)
more charles edits.. fix audio
Diffstat (limited to 'frontend')
-rw-r--r--frontend/site/audio/audio.player.js4
-rw-r--r--frontend/site/projects/museum/views/titles.css6
-rw-r--r--frontend/site/projects/museum/views/titles.overlay.js1
3 files changed, 6 insertions, 5 deletions
diff --git a/frontend/site/audio/audio.player.js b/frontend/site/audio/audio.player.js
index e6e8f44..d036347 100644
--- a/frontend/site/audio/audio.player.js
+++ b/frontend/site/audio/audio.player.js
@@ -39,8 +39,8 @@ export default class AudioPlayer {
playPage(page) {
const { background_audio_id, restart_audio, stop_all_sounds } = page.settings
- // console.log('playPage', page)
- if (stop_all_sounds) {
+ console.log('playPage', page)
+ if (stop_all_sounds && this.current_background_id !== background_audio_id) {
Object.keys(this.players).forEach(id => this.stop(id))
} else if (
this.current_background_id
diff --git a/frontend/site/projects/museum/views/titles.css b/frontend/site/projects/museum/views/titles.css
index 547c9ba..562edd9 100644
--- a/frontend/site/projects/museum/views/titles.css
+++ b/frontend/site/projects/museum/views/titles.css
@@ -21,7 +21,7 @@
padding: 1rem;
font-family: 'Helvetica', sans-serif;
- font-size: 1.66vw;
+ font-size: 1.5vw;
pointer-events: none;
user-select: none;
@@ -34,9 +34,9 @@
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
- width: 65vw;
+ width: 80vw;
font-family: "Druk Wide";
- font-size: 1.66vw;
+ font-size: 1.5vw;
color: #fff;
text-shadow: 0px 2px 6px rgba(0,0,0,0.5);
opacity: 0;
diff --git a/frontend/site/projects/museum/views/titles.overlay.js b/frontend/site/projects/museum/views/titles.overlay.js
index 12b8bae..95c272d 100644
--- a/frontend/site/projects/museum/views/titles.overlay.js
+++ b/frontend/site/projects/museum/views/titles.overlay.js
@@ -102,6 +102,7 @@ class TitlesOverlay extends Component {
showTitle() {
if (!this.titleRef.current) return
+ this.titleRef.current.innerHTML = ""
this.titleRef.current.style.color = this.state.content.color || "rgba(255, 121, 13, 1.0)"
this.titleRef.current.style.opacity = 0
this.titleTimeout = setTimeout(() => {