move obsolete browser warning from home1.css to home1.js

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Mark Eaton
2026-02-07 23:28:44 -05:00
co-authored by Claude Opus 4.6
parent 5a2bc3b4cb
commit 05e7e8942a
2 changed files with 8 additions and 10 deletions
-10
View File
@@ -608,16 +608,6 @@
});
</script>
<script type="text/javascript">
window.onload = function () {
<!-- display the error message if feature detection flags old browser -->
if (window.isES6 == false) {
document.getElementById("obsolete_browser_alert").innerHTML =
'<div class="alert alert-danger" role="alert" style="text-align: center;"><strong>WARNING! Unsupported browser!</strong><br />It looks like you\'re using an old browser.<br />This website works best with modern browsers such as the latest versions of Chrome, Firefox, Safari, and Edge.<br />If you continue with this browser, many parts of this site will not work and you will see unexpected results.</div>';
}
};
</script>
<!-- FontAwesome -->
<script
src="https://kit.fontawesome.com/4c28f38a07.js"
+8
View File
@@ -33,6 +33,14 @@
} catch (e) {}
})();
// Display warning if ES6 detection failed
window.onload = function () {
if (window.isES6 == false) {
document.getElementById("obsolete_browser_alert").innerHTML =
'<div class="alert alert-danger" role="alert" style="text-align: center;"><strong>WARNING! Unsupported browser!</strong><br />It looks like you\'re using an old browser.<br />This website works best with modern browsers such as the latest versions of Chrome, Firefox, Safari, and Edge.<br />If you continue with this browser, many parts of this site will not work and you will see unexpected results.</div>';
}
};
const hamburgerComponent = {
template: `<div class="bigger-fancy-text">
<i v-bind:class="item.icon" aria-hidden="true"></i>