/**
* 基础JS
*/
var ht = $('html');
var fs = 625;
var ss = 1080;
var htfs;
if (ht.width()window.innerHeight) {
fontSize = ht.width()*fs/ss/1.77777;
} else {
fontSize = ht.width()*fs/ss;
}
}
ht.css({'font-size':fontSize+'%'});htfs = parseFloat(ht.css('font-size'));
}
if (supportOrientation) {
window.addEventListener('orientationchange',updateOrientation,false);
} else{
window.addEventListener('resize',updateOrientation,false);
}
updateOrientation();
}
window.addEventListener('DOMContentLoaded',init,false);
}
$(document).ready(function(){
$(window).resize(function(){
if (ht.width()-1,/*IE*/
presto:u.indexOf('Presto')>-1,/*opera*/
webkit:u.indexOf('AppleWebKit')>-1,/*apple google*/
gecko:u.indexOf('Gecko')>-1 && u.indexOf('KHTML')==-1,/*firefox*/
mobile:!!u.match(/AppleWebKit.*Mobile.*/)||!u.match(/AppleWebKit/),/*移动*/
ios:!!u.match(/\(i[^;]+;( U;)?CPU.+Mac OS X/),/*ios*/
android:u.indexOf('Android')>-1 || u.indexOf('Linux')>-1,/*android uc*/
iPhone:u.indexOf('iPhone')>-1|| u.indexOf('Mac')>-1,/*iPhone QQHD*/
iPad:u.indexOf('iPad')>-1,/*iPad*/
webApp:u.indexOf('Safari')==-1,
weixin: u.indexOf('MicroMessenger') > -1, //是否微信
qq:u.indexOf('QQ') > -1,
};
}(),
language:(navigator.browserLanguage||navigator.language).toLowerCase(),
}