2019-03-27 02:20:54 +03:00
|
|
|
/////=include libraries/bowser.js
|
|
|
|
|
|
|
|
function closeCompatibilityWarning () {
|
2020-04-04 10:41:56 +03:00
|
|
|
document.getElementById('compatibility-warning').style.visibility = 'hidden';
|
2019-03-27 02:20:54 +03:00
|
|
|
}
|
|
|
|
|
2020-04-04 10:41:56 +03:00
|
|
|
console.log('checking compatibility');
|
2019-03-27 02:20:54 +03:00
|
|
|
|
|
|
|
//check browser/version
|
2020-04-04 10:41:56 +03:00
|
|
|
if ((bowser.msie && bowser.version < 11) ||
|
|
|
|
(bowser.firefox && bowser.version < 28) ||
|
|
|
|
(bowser.chrome && bowser.version < 29) ||
|
|
|
|
(bowser.msedge && bowser.version < 12) ||
|
|
|
|
(bowser.safari && bowser.version < 9) ||
|
|
|
|
(bowser.opera && bowser.version < 17) )
|
|
|
|
//show warning
|
|
|
|
document.getElementById('compatibility-warning').style.visibility = 'visible';
|
2019-03-27 02:20:54 +03:00
|
|
|
|
2020-04-04 10:41:56 +03:00
|
|
|
else alert(bowser.name+' '+bowser.version+' is fine!');
|