Skip to content
Snippets Groups Projects
Commit caeae22d authored by Piotr Gawron's avatar Piotr Gawron
Browse files

missing endsWith function for Internet Explorer added,

moreover, if IE browser is detected alert info is presented to the user
parent c6a1d8d2
No related branches found
No related tags found
1 merge request!90missing endsWith function for Internet Explorer added,
...@@ -28,6 +28,17 @@ GuiConnector.yPos = 0; ...@@ -28,6 +28,17 @@ GuiConnector.yPos = 0;
GuiConnector.init = function() { GuiConnector.init = function() {
var self = this; var self = this;
if (!String.prototype.endsWith) {
String.prototype.endsWith = function(pattern) {
var d = this.length - pattern.length;
return d >= 0 && this.lastIndexOf(pattern) === d;
};
}
var isIE = /* @cc_on!@ */false || !!document.documentMode;
if (isIE) {
alert("This webpage works well with Chrome, Firefox and Safari.");
}
// bootstrap tab initialization // bootstrap tab initialization
$("ul.nav-tabs a").click(function(e) { $("ul.nav-tabs a").click(function(e) {
e.preventDefault(); e.preventDefault();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment