summaryrefslogtreecommitdiff
path: root/web/js/bb.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/bb.js')
-rw-r--r--web/js/bb.js24
1 files changed, 22 insertions, 2 deletions
diff --git a/web/js/bb.js b/web/js/bb.js
index 8d8590db..565a3ab4 100644
--- a/web/js/bb.js
+++ b/web/js/bb.js
@@ -1,11 +1,31 @@
-function check_browser() {
+function checkBrowser() {
if (
!window.navigator
|| window.navigator.userAgent.indexOf("MSIE ") > 0
|| window.navigator.userAgent.indexOf("Trident/") > 0
|| window.navigator.userAgent.indexOf("Edge/") > 0
) {
- $("bad-browser-modal").style.visibility = "visible";
+ var el_modal = document.createElement("div");
+ el_modal.className = "modal";
+ el_modal.style.visibility = "visible";
+ el_modal.innerHTML = `
+ <div class="modal-window">
+ <div class="modal-content">
+ Hello. You are using an incompatible or legacy browser.<br>
+ Please use one of the following browsers:
+ <hr>
+ <ul>
+ <li><a target="_blank" href="https://google.com/chrome">Google Chrome</a> <sup><i>recommended</i></sup></li>
+ <li><a target="_blank" href="https://chromium.org/Home">Chromium</a> <sup><i>recommended</i></sup></li>
+ <li><a target="_blank" href="https://mozilla.org/firefox">Mozilla Firefox</a></li>
+ <li><a target="_blank" href="https://apple.com/safari">Apple Safari</a></li>
+ <li><a target="_blank" href="https://opera.com">Opera</a></li>
+ <li><a target="_blank" href="https://vivaldi.com">Vivaldi</a></li>
+ </ul>
+ </div>
+ </div>
+ `;
+ document.body.appendChild(el_modal);
return false;
} else {
return true;