diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/animacija.js b/animacija.js index 3a47be8..dffe95f 100644 --- a/animacija.js +++ b/animacija.js @@ -212,7 +212,14 @@ document.addEventListener('DOMContentLoaded', () => { document.body.style.backgroundColor = "white" document.crka.style.color = "black" - document.crka.style.fontFamily = "Courier New" - - zacetek() +}) + +window.addEventListener("mousedown", () => { + document.body.style.cursor = "none" + document.getElementById("navodila").style.display = "none" + + if (!document.zacetek) { + document.zacetek = true + zacetek() + } }) diff --git a/index.html b/index.html index b4bee9e..7a0f771 100644 --- a/index.html +++ b/index.html @@ -14,9 +14,26 @@ align-items: center; justify-content: center; user-select: none; - cursor: none; + font-family: "Courier New"; + + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + } + h1 { + font-size: 3rem; + text-align: center; + margin-bottom: 4rem; + } + #zacetek { + margin-top: 4rem; + text-align: center; } +
@@ -24,5 +41,13 @@ +