Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
removed bugs
  • Loading branch information
sk66641 committed May 26, 2024
1 parent 5596cb2 commit a27ab6b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 26 deletions.
3 changes: 0 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ <h1>Random Disco Light Simulator</h1>
<button id="reset" onclick="window.location.reload()">Reset</button>
</div>
<div id="error"></div>
<div class="screen">
<button id="screen">Enable Fullscreen</button>
</div>
</div>
</div>

Expand Down
12 changes: 0 additions & 12 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
document.getElementById("screen").addEventListener("click", () => {
if (document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement) {
document.exitFullscreen();
document.getElementById("screen").innerHTML = "Enable Fullscreen";
}
else {

document.documentElement.requestFullscreen();
document.getElementById("screen").innerHTML = "Exit Fullscreen";
}
})

function run() {

function getRandomColor() {
Expand Down
11 changes: 0 additions & 11 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,6 @@ h1 {

}

#screen {
border-radius: 10px;
background: linear-gradient(yellow, green);
cursor: pointer;
}

#screen:hover {
background: linear-gradient(green, yellow);

}

.button {
margin-top: 40px;
margin-bottom: 16px;
Expand Down

0 comments on commit a27ab6b

Please sign in to comment.