mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
first commit
This commit is contained in:
20
js/_checkCompatibility.js
Normal file
20
js/_checkCompatibility.js
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
/////=include libraries/bowser.js
|
||||
|
||||
function closeCompatibilityWarning () {
|
||||
document.getElementById('compatibility-warning').style.visibility = 'hidden';
|
||||
}
|
||||
|
||||
console.log('checking compatibility')
|
||||
|
||||
//check browser/version
|
||||
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';
|
||||
|
||||
else alert(bowser.name+' '+bowser.version+' is fine!')
|
Reference in New Issue
Block a user