diff options
author | heqnx <root@heqnx.com> | 2025-07-05 23:39:46 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-07-05 23:39:46 +0300 |
commit | 3559ca8a720086f080286e887a29b6fa68810fa9 (patch) | |
tree | 137599a6df246e898b6e61444853ae6744902878 /templates/var/www/html/misc.js | |
parent | 78ab05ec73f8211cee2183bc69af61d14b7e28cb (diff) | |
download | ansible-icecast2-3559ca8a720086f080286e887a29b6fa68810fa9.tar.gz ansible-icecast2-3559ca8a720086f080286e887a29b6fa68810fa9.zip |
adding ios error message for ogg streaming, for now
Diffstat (limited to 'templates/var/www/html/misc.js')
-rw-r--r-- | templates/var/www/html/misc.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/var/www/html/misc.js b/templates/var/www/html/misc.js new file mode 100644 index 0000000..4532fba --- /dev/null +++ b/templates/var/www/html/misc.js @@ -0,0 +1,7 @@ +if (/iP(hone|od|ad)/.test(navigator.userAgent)) { + const alertDiv = document.getElementById('alert'); + alertDiv.textContent = "iOS does not support browser OGG streaming"; + alertDiv.style.color = "#FF0000"; + alertDiv.style.fontWeight = "normal"; + alertDiv.style.display = "block"; +} |