2010-09-04 04:00:09 +00:00
|
|
|
/**
|
2010-11-22 23:55:37 +00:00
|
|
|
* This script provides a function which is run to evaluate whether or not to
|
|
|
|
|
* continue loading the jquery and mediawiki modules. This code should work on
|
2010-11-05 06:53:14 +00:00
|
|
|
* even the most ancient of browsers, so be very careful when editing.
|
2010-09-04 04:00:09 +00:00
|
|
|
*/
|
|
|
|
|
/**
|
|
|
|
|
* Returns false when run in a black-listed browser
|
2010-11-22 23:55:37 +00:00
|
|
|
*
|
|
|
|
|
* This function will be deleted after it's used, so do not expand it to be
|
2010-11-05 06:53:14 +00:00
|
|
|
* generally useful beyond startup
|
2010-11-22 23:55:37 +00:00
|
|
|
*
|
2010-09-04 04:00:09 +00:00
|
|
|
* jQuery has minimum requirements of:
|
|
|
|
|
* * Firefox 2.0+
|
|
|
|
|
* * Internet Explorer 6+
|
|
|
|
|
* * Safari 3+
|
|
|
|
|
* * Opera 9+
|
|
|
|
|
* * Chrome 1+
|
|
|
|
|
*/
|
2010-10-05 20:54:38 +00:00
|
|
|
var isCompatible = function() {
|
2010-09-04 04:00:09 +00:00
|
|
|
// IE < 6
|
2010-11-22 23:55:37 +00:00
|
|
|
if ( navigator.appVersion.indexOf( 'MSIE' ) !== -1
|
2010-11-05 06:53:14 +00:00
|
|
|
&& parseFloat( navigator.appVersion.split( 'MSIE' )[1] ) < 6 )
|
|
|
|
|
{
|
2010-09-04 04:00:09 +00:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
// TODO: Firefox < 2
|
|
|
|
|
// TODO: Safari < 3
|
|
|
|
|
// TODO: Opera < 9
|
|
|
|
|
// TODO: Chrome < 1
|
|
|
|
|
return true;
|
|
|
|
|
};
|
|
|
|
|
/**
|
|
|
|
|
* The startUp() function will be generated and added here (at the bottom)
|
|
|
|
|
*/
|