metectjs
v0.3.0
Published
The MectectJS library
Downloads
2
Readme
MetectJS
The MetectJS library to detect os and mobile devices
Add this code to your .html files
<script type="text/javascript" src="metect.js"></script>
<script type="text/javascript">
metect({
window: function(){//This code runs when detects Windows OS}
mac: function(){//This code runs when detects Mac OS}
linux: function(){//This code runs when detects Linux OS}
mobile: function(){//This code runs when detects mobile devices}
unix: function(){//This code runs when detects Unix OS}
safari: function(){//This code runs when detects Safari browser}
chrome: function(){//This code runs when detects Chromes browser}
firefox: function(){//This code runs when detects Firefox browser}
opera: function(){//This code runs when detects Opera browser}
msie: function(){//This code runs when detects Microsoft Internet Explorer browser}
})
//You can log the info of version, browser, os to the console by using medetect();
</script>