Skip to content

Commit 7b992cd

Browse files
committed
Remove IE banner
1 parent ecd1a1e commit 7b992cd

File tree

4 files changed

+4
-55
lines changed

4 files changed

+4
-55
lines changed

angular/index.html

-17
Original file line numberDiff line numberDiff line change
@@ -133,22 +133,5 @@ <h2><i class="twa twa-stars"></i> Supported Languages</h2>
133133
<script src="https://cdn.jsdelivr.net/npm/simple-keyboard@latest/build/index.js"></script>
134134
<script src="../assets/js/jquery.min.js"></script>
135135
<script src="../assets/js/main.js"></script>
136-
137-
<script>
138-
if(jQuery){
139-
var isIE = false;
140-
var ua = window.navigator.userAgent;
141-
var old_ie = ua.indexOf('MSIE ');
142-
var new_ie = ua.indexOf('Trident/');
143-
if ((old_ie > -1) || (new_ie > -1)) {
144-
isIE = true;
145-
}
146-
147-
if ( isIE ) {
148-
console.log("IE Detected!");
149-
jQuery("body").prepend('<div style="position: fixed;background: #e66365;width: 100%;z-index: 999999;padding: 20px 50px;color: white;"><strong>Warning:</strong> Internet Explorer is not supported. Please upgrade to a more modern browser.</div>');
150-
}
151-
}
152-
</script>
153136
</body>
154137
</html>

assets/js/main.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ var isMobileWidth = false;
33
let Keyboard = window.SimpleKeyboard.default;
44

55
let keyboard = new Keyboard({
6-
onChange: input => onChange(input),
7-
onKeyPress: button => onKeyPress(button),
6+
onChange: function(input){ onChange(input) },
7+
onKeyPress: function(button) { onKeyPress(button) },
88
physicalKeyboardHighlight: true,
99
maxLength: 70,
1010
mergeDisplay: true,
11-
onInit: () => {
11+
onInit: function() {
1212
$('body').addClass('keyboard-shown');
1313
//$(".simple-keyboard-input").focus();
1414
},
@@ -56,7 +56,7 @@ function handleNumbers() {
5656
}
5757

5858

59-
document.addEventListener('keydown', (e) => {
59+
document.addEventListener('keydown', function(e) {
6060
if(e.key === "Tab"){
6161
e.preventDefault();
6262
}

react/index.html

-17
Original file line numberDiff line numberDiff line change
@@ -133,22 +133,5 @@ <h2><i class="twa twa-stars"></i> Supported Languages</h2>
133133
<script src="https://cdn.jsdelivr.net/npm/simple-keyboard@latest/build/index.js"></script>
134134
<script src="../assets/js/jquery.min.js"></script>
135135
<script src="../assets/js/main.js"></script>
136-
137-
<script>
138-
if(jQuery){
139-
var isIE = false;
140-
var ua = window.navigator.userAgent;
141-
var old_ie = ua.indexOf('MSIE ');
142-
var new_ie = ua.indexOf('Trident/');
143-
if ((old_ie > -1) || (new_ie > -1)) {
144-
isIE = true;
145-
}
146-
147-
if ( isIE ) {
148-
console.log("IE Detected!");
149-
jQuery("body").prepend('<div style="position: fixed;background: #e66365;width: 100%;z-index: 999999;padding: 20px 50px;color: white;"><strong>Warning:</strong> Internet Explorer is not supported. Please upgrade to a more modern browser.</div>');
150-
}
151-
}
152-
</script>
153136
</body>
154137
</html>

vuejs/index.html

-17
Original file line numberDiff line numberDiff line change
@@ -133,22 +133,5 @@ <h2><i class="twa twa-stars"></i> Supported Languages</h2>
133133
<script src="https://cdn.jsdelivr.net/npm/simple-keyboard@latest/build/index.js"></script>
134134
<script src="../assets/js/jquery.min.js"></script>
135135
<script src="../assets/js/main.js"></script>
136-
137-
<script>
138-
if(jQuery){
139-
var isIE = false;
140-
var ua = window.navigator.userAgent;
141-
var old_ie = ua.indexOf('MSIE ');
142-
var new_ie = ua.indexOf('Trident/');
143-
if ((old_ie > -1) || (new_ie > -1)) {
144-
isIE = true;
145-
}
146-
147-
if ( isIE ) {
148-
console.log("IE Detected!");
149-
jQuery("body").prepend('<div style="position: fixed;background: #e66365;width: 100%;z-index: 999999;padding: 20px 50px;color: white;"><strong>Warning:</strong> Internet Explorer is not supported. Please upgrade to a more modern browser.</div>');
150-
}
151-
}
152-
</script>
153136
</body>
154137
</html>

0 commit comments

Comments
 (0)