common.js 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. /*function checkMobile(){
  2. var isiPad = navigator.userAgent.match(/iPad/i) != null;
  3. if(isiPad){
  4. return false;
  5. }
  6. var isMobile=navigator.userAgent.match(/iphone|android|phone|mobile|wap|netfront|x11|java|operamobi|operamini|ucweb|windowsce|symbian|symbianos|series|webos|sony|blackberry|dopod|nokia|samsung|palmsource|xda|pieplus|meizu|midp|cldc|motorola|foma|docomo|up.browser|up.link|blazer|helio|hosin|huawei|novarra|coolpad|webos|techfaith|palmsource|alcatel|amoi|ktouch|nexian|ericsson|philips|sagem|wellcom|bunjalloo|maui|smartphone|iemobile|spice|bird|zte-|longcos|pantech|gionee|portalmmm|jig browser|hiptop|benq|haier|^lct|320x320|240x320|176x220/i)!= null;
  7. if(isMobile){
  8. return true;
  9. }
  10. return false;
  11. }
  12. (function(){
  13. if(checkMobile()){
  14. window.location.href="../m";
  15. }
  16. })();*/
  17. $(function () {
  18. /*$('#list img').click(function (e) {
  19. if(parseInt($('#info').css('right'))==0){
  20. $('#info').animate({right:-200},200).css('display','none');
  21. $('#frame').animate({left:0},200);
  22. }else{
  23. $('#info').animate({right:0},200).css({'display':'block','height':$('#frame').height()});
  24. $('#frame').animate({left:-200},200);
  25. }
  26. });*/
  27. $(window).manhuatoTop({
  28. showHeight : 400,//设置滚动高度时显示
  29. speed : 500 //返回顶部的速度以毫秒为单位
  30. });
  31. })