diff --git a/src/components/Controls.astro b/src/components/Controls.astro index bf5131d..1818460 100644 --- a/src/components/Controls.astro +++ b/src/components/Controls.astro @@ -160,9 +160,9 @@ import "./controls.css"; var today = new Date(); var timeHours = today.getHours(); - function updateVideo() { + function updateVideo(autoplay: boolean) { function autoPlay(video: string) { - player.load(video, true); + player.load(video, autoplay); } switch (timeHours) { @@ -260,7 +260,7 @@ import "./controls.css"; // update video if (pastHour != timeHours) { - updateVideo(); + updateVideo(true); } } @@ -286,11 +286,11 @@ import "./controls.css"; refreshClock(); updateTime(); - updateVideo(); + updateVideo(false); // when animal crossing video ends player.on("ended", () => { - updateVideo(); + updateVideo(true); }); // every second diff --git a/src/components/Lamp.astro b/src/components/Lamp.astro index 20c8922..b7a6290 100644 --- a/src/components/Lamp.astro +++ b/src/components/Lamp.astro @@ -71,7 +71,7 @@ #light-switch div.knob span { font-size: 0.8em; position: relative; - bottom: 2px; + bottom: 20px; } #film { @@ -104,12 +104,12 @@ @media only screen and (max-width: 1100px) { #light-switch { - display: none; + right: 3em; } - } - @media only screen and (max-width: 1000px) { - #light-switch { - display: none; + + #light-switch div.rope { + width: .75em; + height: 3em; } }