Files
beef/modules/beefjs/os.js
mosse.benjamin 155872dc3c adding os detection class in beefjs
git-svn-id: https://beef.googlecode.com/svn/trunk@557 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
2010-11-22 03:09:05 +00:00

17 lines
266 B
JavaScript

beef.os = {
ua: navigator.userAgent,
isWin311: function() {
return (this.ua.indexOf("Win16")) ? true : false;
},
isWinXP: function() {
return this.ua.match('(Windows NT 5.1)|(Windows XP)');
}
};
alert(beef.os.isWinXP());
beef.regCmp('beef.net.os');