Skip to content

Commit

Permalink
Merge pull request #2 from VijiatJack/dev
Browse files Browse the repository at this point in the history
Applying requested updates
  • Loading branch information
VijiatJack authored May 30, 2024
2 parents dc9c268 + 7248e03 commit 25e6ef0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/components/Controls.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -260,7 +260,7 @@ import "./controls.css";

// update video
if (pastHour != timeHours) {
updateVideo();
updateVideo(true);
}
}

Expand All @@ -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
Expand Down
12 changes: 6 additions & 6 deletions src/components/Lamp.astro
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
#light-switch div.knob span {
font-size: 0.8em;
position: relative;
bottom: 2px;
bottom: 20px;
}

#film {
Expand Down Expand Up @@ -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;
}
}
</style>

0 comments on commit 25e6ef0

Please sign in to comment.