06/16/2016 By emehany
// Checks for ie
var isIE = !!navigator.userAgent.match(/MSIE/i) || !!navigator.userAgent.match(/Trident.*rv:11\./);
isIE && $('html').addClass('ie');
// Checks for iOs, Android, Blackberry, Opera Mini, and Windows mobile devices
var ua = window['navigator']['userAgent'] || window['navigator']['vendor'] || window['opera'];
(/iPhone|iPod|iPad|Silk|Android|BlackBerry|Opera Mini|IEMobile/).test(ua) && $('html').addClass('smart');
Login to Comment