diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2013-09-07 21:21:14 -0400 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2013-09-07 21:21:14 -0400 |
commit | 86d70ba573286267f7f4fe22ffe1e392db58a0ea (patch) | |
tree | 992dc74b3998ca6265d878ce375c654674ea9c27 /www/js/html5ks.js | |
parent | bc17143e104dbcc0098cefecd75e11f63c7a1529 (diff) | |
download | html5ks-86d70ba573286267f7f4fe22ffe1e392db58a0ea.tar.xz html5ks-86d70ba573286267f7f4fe22ffe1e392db58a0ea.zip |
fix minor bugs, add opus warn
Diffstat (limited to 'www/js/html5ks.js')
-rw-r--r-- | www/js/html5ks.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/www/js/html5ks.js b/www/js/html5ks.js index 502ca75..9ca2bde 100644 --- a/www/js/html5ks.js +++ b/www/js/html5ks.js @@ -192,6 +192,9 @@ window.html5ks = { if (/MSIE/.test(navigator.userAgent)) { document.getElementById("ie").style.display = "block"; } + if (!Modernizr.audio.opus) { + document.getElementById("opus").style.display = "block"; + } for (var i = 0; i < warns.length; i++) { if (window.getComputedStyle(warns[i]).getPropertyValue("display") !== "none") { warn.style.visibility = "visible"; |