Fixed basic message parser
[lhc/web/wiklou.git] / resources / startup.js
1 /**
2 * This script provides a function which is run to evaluate whether or not to continue loading the jquery and mediawiki
3 * modules. This code should work on even the most anchient of browsers, so be very careful when editing.
4 */
5 /**
6 * Returns false when run in a black-listed browser
7 *
8 * This function will be deleted after it's used, so do not expand it to be generally useful beyond startup
9 *
10 * jQuery has minimum requirements of:
11 * * Firefox 2.0+
12 * * Internet Explorer 6+
13 * * Safari 3+
14 * * Opera 9+
15 * * Chrome 1+
16 */
17 window.isCompatible = function() {
18 // IE < 6
19 if ( navigator.appVersion.indexOf( 'MSIE' ) !== -1 && parseFloat( navigator.appVersion.split( 'MSIE' )[1] ) < 6 ) {
20 return false;
21 }
22 // TODO: Firefox < 2
23 // TODO: Safari < 3
24 // TODO: Opera < 9
25 // TODO: Chrome < 1
26 return true;
27 };
28 /**
29 * The startUp() function will be generated and added here (at the bottom)
30 */