var tj_type = '官网WAP'; typeof(_hmt)!="undefined" && _hmt.push(['_setAutoPageview', false]); typeof(_hmt)!="undefined" && _hmt.push(['_trackPageview', '/'+tj_type+'/首页']); //rem (function(doc, win) { var docEl = doc.documentElement, resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize', recalc = function() { var clientWidth = docEl.clientWidth; if (!clientWidth) return; docEl.style.fontSize = 100 * (clientWidth / 750) + 'px'; }; if (!doc.addEventListener) return; win.addEventListener(resizeEvt, recalc, false); doc.addEventListener('DOMContentLoaded', recalc, false); })(document, window); //header $(document).ready(function(){ $('#nav').height($(window).height() +'px'); $('#header-more-btn').click(function(){ if($('#header').hasClass('header-nav-active')){ $('#header').removeClass('header-nav-active'); }else{ $('#header').addClass('header-nav-active'); } }); $('#header-close-btn').click(function(){ if($('#header').hasClass('header-nav-active')){ $('#header').removeClass('header-nav-active'); }else{ $('#header').addClass('header-nav-active'); } }); $('.download-item').click(function () { if(navigator.userAgent.indexOf("android")>-1){ location.href="http://down.wecnnet.com/down.html"; }else{ location.href="http://down.wecnnet.com/down.html"; } }); })