var web_mid_left = "";
$(function () {
if(web_mid_left == ""){
web_mid_left = $("#web_mid_left").html();
}
htmlauto();
})
window.onresize = function(){
htmlauto();
}
function htmlauto() {
$("#head_m").remove();
$("#m_news").remove();
$("#web_foot_m").remove();
var ww = $(window).width();
if (ww < 640) {
$("body").append("
");
var web_foot_m_text = $("#web_foot_m_text").html();
if (web_foot_m_text != null || web_foot_m_text != undefined) {
$("body").append('');
}
$("#picss").html($("#prod_pic_more_text").html());
$("#prod_pic_more_text").hide();
try {
$("#m_news").html("
最新情報
" + $("#news").html());
$("#prod_pic_more").html($("#prod_pic_more_text").html());
} catch (e) { };
} else {
$("#picss").html('');
$("#prod_pic_more_text").show();
}
}
function fenlei() {
if ($(".fmenu").length > 0) {
$(".fmenu").animate({ "left": "-510px" }, function () {
$(".fmenu,.zz").remove();
$("html").removeClass("noscroll");
$("body").removeClass("noscroll");
});
}
else {
if(web_mid_left != null || web_mid_left != undefined){
$(".fmenu,.zz").remove();
$("html").addClass("noscroll");
$("body").addClass("noscroll");
$("body").eq(0).append("");
$("body").append("");
$(".fmenu").height($(window).height()).animate({ "left": "0px" });
$(".zz").on("touchmove",function(){
event.preventDefault();
});
}
}
}
function zhezhao() {
if ($(".fmenu").length > 0) {
$(".fmenu").animate({ "left": "-510px" }, function () {
$(".fmenu,.zz").remove();
$("html").removeClass("noscroll");
$("body").removeClass("noscroll");
});
}
else {
if (web_mid_left != null || web_mid_left != undefined) {
$(".fmenu,.zz").remove();
$("html").addClass("noscroll");
$("body").addClass("noscroll");
$("body").eq(0).append("");
$("body").append("");
$(".fmenu").height($(window).height()).animate({ "left": "0px" });
$(".zz").on("touchmove", function () {
event.preventDefault();
});
}
}
}
function atop() {
$('html, body').animate({ scrollTop: 0 }, 'slow');
}
function abot() {
var h = $(document).height() - $(window).height();
$(document).scrollTop(h);
}
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?4a25f871a028ba5c6e51e12134f1f073";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();