123456789101112131415 |
- (function ($) {
- "use strict";
- // Checks for ie
- if ( !!navigator.userAgent.match(/MSIE/i) || !!navigator.userAgent.match(/Trident.*rv:11\./) ){
- $('body').addClass('ie');
- }
- // Checks for iOs, Android, Blackberry, Opera Mini, and Windows mobile devices
- var ua = window['navigator']['userAgent'] || window['navigator']['vendor'] || window['opera'];
- if( (/iPhone|iPod|iPad|Silk|Android|BlackBerry|Opera Mini|IEMobile/).test(ua) ){
- $('body').addClass('smart');
- }
- })(jQuery);
|