var _htmlFontSize = (function(){
var clientWidth = document.documentElement ? document.documentElement.clientWidth : document.body.clientWidth;
if(clientWidth > 640) clientWidth = 640;
document.documentElement.style.fontSize = clientWidth * 1/16+"px";
return clientWidth * 1/16;
})();
//瀵艰埅
$(function(){
$(".icon-navMenu").click(function () {
if ($(".navbar").is(":hidden")) {
$(".floatmask").show();
$(".mainBox").stop(true, true).animate({ "left":'8rem' }, 300);
$(".navbar").css("display", "block");
$(".navbar ul").stop(true, true).animate({ "left": 0 }, 300);
$(".navbar ul").addClass('show');
}
else {
$(".floatmask").hide();
$(".mainBox").stop(true, true).animate({ "left": 0 }, 300);
$(".navbar ul").stop(true, true).animate({
"left": '-8rem'
}, 300, function () {
$(".navbar").css("display", "none");
$(".navbar ul").removeClass('show');
});
}
});
$('.floatmask').click(function(){
$(".mainBox").stop(true, true).animate({ "left": 0 }, 300);
$(".navbar ul").stop(true, true).animate({
"left": '-8rem'
}, 300, function () {
$(".navbar").css("display", "none");
$(".navbar ul").removeClass('show');
});
$(this).hide();
})
//杩斿洖椤堕儴
$(".backtop").click(function(){
$('body,html').animate({scrollTop:0},1000);
return false;
});
})