Skip to content

Commit

Permalink
Updated page
Browse files Browse the repository at this point in the history
  • Loading branch information
DomenPigeon committed Apr 4, 2024
1 parent cfa27cd commit 4bcdcc0
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .idea/.idea.domenpigeon.github.io.dir/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/.idea.domenpigeon.github.io.dir/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 21 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
Hello on Domen's site
Hello on Domen's site

<body id="body">
<button onclick="clickMeIfYouDare()">Click me if you dare</button>
</body>

<script>
function clickMeIfYouDare() {
const body = document.getElementById('body');

setInterval(() => {
if (body.style.backgroundColor === 'red') {
body.style.backgroundColor = 'blue';
} else {
body.style.backgroundColor = 'red';
}
}, 10)
}
</script>


0 comments on commit 4bcdcc0

Please sign in to comment.