From 919646e70d52d37305c331cb7225b20054ad75a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20Podgor=C5=A1ek?= Date: Wed, 6 Jun 2018 01:26:43 +0200 Subject: [PATCH] Dodano preverjanje za ogg predvajanje --- animacija.js | 4 ++++ index.html | 12 ++++++++++-- modernizr.js | 1 + 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 modernizr.js diff --git a/animacija.js b/animacija.js index dffe95f..c432663 100644 --- a/animacija.js +++ b/animacija.js @@ -218,6 +218,10 @@ window.addEventListener("mousedown", () => { document.body.style.cursor = "none" document.getElementById("navodila").style.display = "none" + if (!Modernizr.audio.ogg) { + document.getElementById("fejl").style.display = "block" + } + if (!document.zacetek) { document.zacetek = true zacetek() diff --git a/index.html b/index.html index 7a0f771..ed81182 100644 --- a/index.html +++ b/index.html @@ -32,9 +32,12 @@ margin-top: 4rem; text-align: center; } + #fejl { + margin-top: 3rem; + text-align: right; + display: none; + } - - @@ -48,6 +51,11 @@

3. Pozor! Ogled avdio-vizualizacije lahko sproži epileptični napad.

🖰 Kliknite kjerkoli za začetek

+

* Ker imate zastarel spletni brskalnik, boste priča zgolj vizualni podobi in ne potrebujete slušalk

+ + + + diff --git a/modernizr.js b/modernizr.js new file mode 100644 index 0000000..5169277 --- /dev/null +++ b/modernizr.js @@ -0,0 +1 @@ +!function(e,n,a){function o(e,n){return typeof e===n}function s(){var e,n,a,s,t,c,r;for(var u in l)if(l.hasOwnProperty(u)){if(e=[],n=l[u],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(a=0;a