This file add a method for the object window in JavaScript who can check the userAgent and return true if is a mobile or false if isn't.
You can use it with:
var result = window.mobilecheck();
if (result == true) {
// code only for mobile
}
else {
// code only for not mobile
}