Skip to content

Commit

Permalink
Remove IE Warning
Browse files Browse the repository at this point in the history
[Removed] Remove IE warning

Signed-off-by: Beda Schmid <beda@tukutoi.com>
  • Loading branch information
smileBeda committed Nov 8, 2023
1 parent 5808169 commit a3ca6aa
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,4 @@ jQuery(function ($) {
$('.height-85').css('height', 0.85 * $(window).height());
$('.height-100').css('height', 1.0 * $(window).height());

// IE Warning
if (window.document.documentMode) {
let IEWarningDiv = document.createElement('div');
IEWarningDiv.setAttribute('class', 'position-fixed top-0 end-0 bottom-0 start-0 d-flex justify-content-center align-items-center');
IEWarningDiv.setAttribute('style', 'background:white;z-index:1999');
IEWarningDiv.innerHTML = '<div style="max-width: 90vw;">' + '<h1>' + bootscore.ie_title + '</h1>' + '<p className="lead">' + bootscore.ie_limited_functionality + '</p>' + '<p className="lead">' + bootscore.ie_modern_browsers_1 + bootscore.ie_modern_browsers_2 + bootscore.ie_modern_browsers_3 + bootscore.ie_modern_browsers_4 + bootscore.ie_modern_browsers_5 + '</p>' + '</div>';
document.body.appendChild(IEWarningDiv);
}
// IE Warning End
}); // jQuery End

0 comments on commit a3ca6aa

Please sign in to comment.