Skip to content

Commit

Permalink
The fullscreen button is now hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoSlongo committed Nov 25, 2024
1 parent a5c641f commit 9cbed0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="stylesheet" href="./style.css">
<link rel="icon" href="./icons/iconV2.png">
</head>
<body onload="updateTime();">
<body onload="inzitialSetup();">
<video autoplay muted loop id="backgroundVideo">
<source src="./background/video/lofiCityStuff.mp4" type="video/mp4" id = "videoBackground">
</video>
Expand Down
6 changes: 6 additions & 0 deletions javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
var dateVar;
var dateDay = null;

function inzitialSetup(){
hideButton();
updateTime();
}

/* Function that updates time */
function updateTime() {
/* Waits for a second before updating the time */
Expand Down Expand Up @@ -40,6 +45,7 @@ function hideButton(){
document.getElementById("fullscreenButton").style.color = "rgba(0, 0, 0, 0)";
}

//Going to get replace by a menu to select different formats and videos/images
/* Function to change the background (Not Working) */
function changeToImage(){
document.getElementById("videoBackground").style.display = "none";
Expand Down

0 comments on commit 9cbed0d

Please sign in to comment.