<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">function articleListHandle() {
    //鏄剧ず鏂瑰紡鍒囨崲
    $(".widthimg").click(function () {
        $(this).addClass("current").siblings().removeClass("current");
        $(".articleListBox.active").find(".device").addClass("active");
        $(".articleListBox.active").find(".morenstyle").css({ "display": "none" });
    })
    $(".widthtext").click(function () {
        $(this).addClass("current").siblings().removeClass("current");
        $(".articleListBox.active").find(".device").removeClass("active");
        $(".articleListBox.active").find(".morenstyle").css({ "display": "none" });
    })
    $(".widthabs").click(function () {
        $(this).addClass("current").siblings().removeClass("current");
        $(".articleListBox.active").find(".device").addClass("active");
        $(".articleListBox.active").find(".morenstyle").css({ "display": "block" });
    })

    //鍏ㄩ€変笌鍙嶉€�
    $(document).on("click", ".checkAll", function () {
        $('input[name="journalArticleCheck"]').prop("checked", this.checked);
    });
    var $journalArticleCheck = $("input[name='journalArticleCheck']");
    $journalArticleCheck.click(function () {
        $(".checkAll").prop("checked", $journalArticleCheck.length == $("input[name='journalArticleCheck']:checked").length ? true : false);
    });
    var pageType = getUrlParam("pageType");
    var currentPage = $("#pageViewId").val();


    //鏍忕洰瀹氫綅
    $('.column').mouseover(function () {
        $('.column-list').stop().slideDown();
    }).mouseout(function () {
        $('.column-list').stop().slideUp();
    })
    // 鏍忕洰鐐瑰嚮婊氬姩浜嬩欢锛屽彲閰嶇疆鏁版嵁瀛楀吀椤规潵閰嶇疆鍥犲叿浣撳垔涓€у寲鐨勯《閮ㄥ畾浣嶅鑷寸殑閬尅闂
    $('.column-ul li a').on("click", function () {
        var columnid = $(this).attr('href');
        var scrollNode;
        if (allData.dic.currentIssueOverflowScrollInHomePage &amp;&amp; ($("#pageViewId").val() == "shouye" || $("#pageViewId").val() == "home")) {
            scrollNode = $("body");
        } else {
            scrollNode = $("html")
        }
        scrollNode.animate({
            scrollTop: $(window).width() &gt; 1200 ? allData.dic.scrollPaddingTopPC ? $(columnid).offset().top - 10 - allData.dic.scrollPaddingTopPC + "px" : $(columnid).offset().top - 10 + "px" : allData.dic.scrollPaddingTopAPP ? $(columnid).offset().top - 10 - allData.dic.scrollPaddingTopAPP + "px" : $(columnid).offset().top - 10 + "px",
        }, {
            duration: 500,
            easing: "swing"
        });
        $('.column-list').stop().hide();
    })
    if (!$('.column-ul').text().trim()) {
        $('.column-ul').parents('.column').css('display', 'none');
    } else {
        $('.column-ul').parents('.column').css('display', 'block');
    }
    // 鏂囩珷鍒楄〃宸︿晶澶嶉€夋銆佸簭鍙枫€佸浘鏍囦笌鏂囧瓧鏍囬瀵归綈
    $(".article-list").each(function () {
        var h = $(this).find(".article-list-title a").css("line-height");
        $(this).find(".article-list-left").css({ "height": h });
        $(this).find(".article-list-left").children().addClass("allCenter");
        $(this).find(".article-list-left").children("span").css({ "height": h, "line-height": h })
    });
    console.log("----pic----");
    if ($(window).width() &gt; 768 || (!isNull($('#isShowImg').val()) &amp;&amp; $('#isShowImg').val() == '1')) {
        // scrollImg();
        pic();

        head.ready('lozad.min.js', function () {
            var observer = lozad(); // lazy loads elements with default selector as '.lozad'
            observer.observe();
        })
    } else {
        $('.curtu').hide();
    }

    $(window).resize(function () {
        if ($(window).width() &gt; 768 || (!isNull($('#isShowImg').val()) &amp;&amp; $('#isShowImg').val() == '1')) {
            pic();
        }
    });
    head.ready(function () {
        if ($(".group3").length) {
            $(".group3").colorbox({
                rel: 'group3', width: '90%', height: "75%", opacity: '0.8',
                onComplete: function () {
                    $("#cboxTitle").niceScroll({
                        cursorcolor: "transparent",
                        cursoropacitymax: 1,
                        touchbehavior: false,
                        cursorwidth: "5px",
                        cursorborder: "0",
                        cursorborderradius: "5px"
                    });
                    //娓叉煋鏁板鍏紡
                    if (window.MathJax &amp;&amp; MathJax.Hub || (document.addEventListener('mathjaxLoaded', function () {
                        MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
                    }))) {
                        MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
                    }
                }
            });
        }
        if (window.MathJax &amp;&amp; MathJax.Hub || (document.addEventListener('mathjaxLoaded', function () {
            MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
        }))) {
            MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
        }
    })
    customArticleListHandle();
}

$(function () {
    var tooltip = $('[data-toggle="tooltip"]');
    if (!isNull(tooltip)) {
        tooltip.tooltip();
    }
    //banner鍥剧墖璁℃暟鍣�
    var bannerImgNum = $(".banner .carousel-inner .item").length;
    if (bannerImgNum &gt; 0) {
        var bannerOlNum = '&lt;li data-target="#myCarousel" data-slide-to="0" class="active"&gt;&lt;/li&gt;';
        for (var i = 1; i &lt; bannerImgNum; i++) {
            bannerOlNum += '&lt;li data-target="#myCarousel" data-slide-to="' + i + '"&gt;&lt;/li&gt;';
        }
        $(".banner .carousel-indicators").empty().append(bannerOlNum);
    }
    //瀵艰埅閫変腑楂樹寒
    var currentPage = $("#pageViewId").val();
    if (typeof (currentPage) != 'undefined') {
        //$(".nav-inner&gt;li[type='"+currentPage+"']").addClass("active").siblings("li").removeClass("active");
        //$(".nav-inner li ol li[type='"+currentPage+"']").parents("li").addClass("active").siblings("li").removeClass("active");
        var navLi = $(".header-nav ul&gt;li");
        for (var i = 0; i &lt; navLi.length; i++) {
            //navLi.eq(i).find("ol li").attr("type")==currentPage || navLi.eq(i).attr("type")=="qikanzaixian"
            var hasLi = false;
            if (navLi.eq(i).find("ol li").length &gt; 0) {
                var navLi2 = navLi.eq(i).find("ol li");
                for (var j = 0; j &lt; navLi2.length; j++) {
                    if (navLi2.eq(j).attr("type") == currentPage) {
                        navLi2.eq(j).parents("li").addClass("active").siblings("li").removeClass("active");
                        hasLi = true;
                    }
                }
                if (hasLi == false) {
                    if (navLi.eq(i).attr("type") == currentPage) {
                        navLi.eq(i).addClass("active").siblings("li").removeClass("active");
                    }
                }
            }
            else {
                if (navLi.eq(i).attr("type") == currentPage) {
                    navLi.eq(i).addClass("active").siblings("li").removeClass("active");
                }
            }
        }
    }
    //鏈熷垔鍒楄〃涓幓鎺夋渶鍚庝竴鏉℃枃绔犵殑涓媌order
    //$(".articleListBox").find(".article-list:last-child").css("border",0);
    //棣栭〉鏂囩珷鍒楄〃tab鍒囨崲
    $(".tab-ul li").click(function () {
        var tabUlLiIndenx = $(this).index();
        $(".tab-ol li").eq(tabUlLiIndenx).addClass("active").siblings().removeClass("active");
    })
    //鏂囩珷涓浘
    //    var mySwiper = $('.swiper-container').swiper({
    //        loop:true,
    //        grabCursor: true,
    //        paginationClickable: true
    //    });
    $('.arrow-left').on('click', function (e) {
        e.preventDefault()
        var swiper = $(this).siblings('.swiper-container').data('swiper');
        swiper.swipePrev();
        var obj = swiper.imagesToLoad[swiper.activeIndex];
        var srcPath = obj.src;
        if (srcPath == "" || srcPath == undefined) {
            $(obj).attr("src", $(obj).attr("srcl"));
        }
    });
    $('.arrow-right').on('click', function (e) {
        e.preventDefault()
        var swiper = $(this).siblings('.swiper-container').data('swiper');
        swiper.swipeNext();
        var obj = swiper.imagesToLoad[swiper.activeIndex];
        var srcPath = obj.src;
        if (srcPath == "" || srcPath == undefined) {
            $(obj).attr("src", $(obj).attr("srcl"));
        }
    });



    $(".achiveBox .panel-collapse").eq(0).addClass("in");

    //楂樼骇妫€绱㈢粨鏋滈〉
    $(".clearText").click(function () {
        var inputText = $(this).siblings().val();
        //alert(inputText);
        if (inputText != " ") {
            $(this).siblings().val("");
        }
    })

    $("#clearText").click(function () {
        $(".inputText input").val("");
    })

    //妫€绱㈢粨鏋滈〉鑱氱被娣诲姞婊氬姩鏉�
    head.ready('jquery.nicescroll.js', function(){
        $(".soutongji div,#copyReference").niceScroll({
            cursorcolor: "#054d8c",
            cursoropacitymax: 1,
            touchbehavior: false,
            cursorwidth: "5px",
            cursorborder: "0",
            cursorborderradius: "5px"
        });
    })

    //妫€绱㈡潯浠剁偣鍑诲叧闂綋鍓嶆潯浠�
    $(".condition-p span i").click(function () {
        $(this).parent("span").hide();
    })

    /**鍥炲埌椤堕儴**/
    $(window).scroll(function () {
        var backScrollTop = $(window).scrollTop();
        var windowHeight = $(window).height();
        if (backScrollTop &gt;= windowHeight / 2) {
            $(".bottom-fixed").fadeIn(500);
        } else {
            $(".bottom-fixed").fadeOut(500);
        }
    })
    $(".bottom-fixed").click(function () {
        $("html,body").animate({ scrollTop: 0 }, 500);
    })

    //鎼滅储缁撴灉椤祎ab鏍忓垏鎹�
    $(".resultTab li").click(function () {
        $(this).addClass("active").siblings().removeClass("active");
    })

    //鎼滅储缁撴灉椤典腑鍏ㄦ枃涓弬鑰冩枃鐚笂鏍囦笉鏄剧ず鍙傝€冩枃鐚�
    $(".div_show_none .xref a").attr({ "href": "javascript:void(0)" });
    $(".div_show_none a[ref-type='bibr']").attr({ "href": "javascript:void(0)" });



    //鐣欒█鏉跨偣鍑诲叧闂�
    $(".messageClose").click(function () {
        $(".monitor").hide();
        $(".messageBoardWrap").hide();
    })




    //20190513鐗堟湰杩囧垔
    function loadGuoKanTab() {
        $(".guokan-tab li").click(function () {
            $(this).addClass("curr").siblings().removeClass("curr");
            _index = $(this).index();
            $(".guokan-con .guokan-con-tab").eq(_index).addClass("active").siblings().removeClass("active");
            if (_index == 1) {
                $(".guokan-con .guokan-dl").each(function () {
                    $(this).find("dd").css({ "width": Math.floor($(this).width() / $(this).find("dd").length - 2), "margin-left": "1px", "margin-right": "1px" });
                });
            }
        })
        var yearTab = $(".guokan-dlyear.dlyear-tab dl");
        var tempYear = $(".guokan-dl dd.active a").text().trim();
        for (var i = 0; i &lt; yearTab.length; i++) {
            if (yearTab.eq(i).attr("id") == tempYear) {
                yearTab.eq(i).show().siblings().hide();
            }
        }

        $(".guokan-dlwrap .guokan-dl dd").click(function () {
            var yearA = $(this).find("a").text().trim();
            //var yearTab=$(".guokan-dlyear.dlyear-tab dl");
            if (yearA == "") {
                return;
            }
            yearTab.hide();
            $(this).addClass("active").siblings().removeClass("active");
            $(this).addClass("active").parents(".guokan-dl").siblings(".guokan-dl").find("dd").removeClass("active");
            for (var i = 0; i &lt; yearTab.length; i++) {
                if (yearTab.eq(i).attr("id") == yearA) {
                    yearTab.eq(i).show().siblings().hide();
                }
            }

        });
    }

    //鍘绘帀鍒楄〃鏈€鍚庝竴鏉＄嚎

    if ($('.article-list-journalg').length &gt; 0 &amp;&amp; $('.article-list').length &gt; 0) {
        $('.article-list-journalg').prev('.article-list').css({ 'border': 0 })
    }


})
/*window.onload = function(){
    var $hei = $(".guokan-con .guokan-pic li a img").height();
    $(".guokan-con .guokan-pic li a img").css("height",$hei);
}
$(window).load(function() {
    var $hei = $(".guokan-con .guokan-pic li a img").height();
    $(".guokan-con .guokan-pic li a img").css("height",$hei);
});*/
$(function () {
    var $hei = $(".guokan-con .guokan-pic li a img").height();
    $(".guokan-con .guokan-pic li a img").css("height", $hei);
})
//鐩稿叧鏈熷垔灞曞紑鍔熻兘
function showMore(obj) {
    var moreDiv = $(obj).parent(".archiveList");
    var openStatus = moreDiv.hasClass("current");
    if (openStatus) {
        $(obj).find("span").addClass("icon-sanjiao1");
        $(obj).find("span").removeClass("icon-sanjiao");
        moreDiv.removeClass("current");
    } else {
        $(obj).find("span").removeClass("icon-sanjiao1");
        $(obj).find("span").addClass("icon-sanjiao");
        moreDiv.addClass("current");
    }
}

/**
 * 鏂囩珷寮瑰嚭寮曠敤淇℃伅鍒版枃浠�
 * e锛歰bject锛屽綋鍓嶅璞�
 * */
function referenceText(citation) {
    $("#copyReference").empty();
    var context = "&lt;p&gt;" + citation + "&lt;/p&gt;";
    $("#copyReference").html(context);
}

//寮瑰嚭妯℃€佹澶嶅埗鍔熻兘
function copywz() {
    var ReferenceHtml = document.getElementById('copyReference').innerHTML;
    var noLabel = ReferenceHtml.replace(/&lt;.+?&gt;/gim, '');
    document.getElementById("biao1").value = noLabel;
    //alert($("#copyReference").text());
    document.getElementById("biao1").value = $("#copyReference").text();
    var wz = document.getElementById("biao1");
    wz.select(); // 閫夋嫨瀵硅薄
    //trim(wz.value)
    document.execCommand("Copy"); // 鎵ц娴忚鍣ㄥ鍒跺懡浠�
    var currentPage = $("#pageViewId").val();
    var pageType = getUrlParam("pageType");
    if (!isNull(pageType) &amp;&amp; "en" == pageType || currentPage == 'Home' || currentPage == 'archivearticle') {
        alert("copy citation success");
    }
    else alert("澶嶅埗鎴愬姛");
}

//鍗曚釜瀵煎嚭
function setExportData(articleId) {
    $("#exportArticleId").attr("article_id", articleId);
}

/**
 * 鍔犺浇鏈熷垪琛�
 * @return
 */
function loadAllIssuelist() {
    var ajaxArg = {
        url: local_host + "article/getAllJournalCatalogList",
        returnFun: loadIssuelist
    };
    ajaxPost(ajaxArg);
}
/**
 * 鍔犺浇妫€绱㈣仈鍔ㄧ殑骞存湡
 * @return
 */
function loadIssuelist(data) {
    /**select妗嗗€�**/
    if (!isNull(data)) {
        $("#s1").empty();
        var i = 0;
        for (var key in data) {
            i = i + 1;
            var issues = data[key];
            $("#s1").append("&lt;option value=" + key + "&gt;" + key + "骞寸" + issues[0].volume + "鍗�&lt;/option&gt;");
            if (i == 1) {
                $("#s2").empty();
                $.each(issues, function (j, e) {
                    $("#s2").append("&lt;option value=" + e.issue + "&gt;绗�" + e.issue + "鏈�&lt;/option&gt;");

                })
            }
        }

        $("#s1").change(function () {
            var yearCurrent = $("#s1").val();
            for (var key in data) {
                var issues = data[key];
                if (key == yearCurrent) {
                    $("#s2").empty();
                    $.each(issues, function (j, e) {
                        $("#s2").append("&lt;option value=" + e.issue + "&gt;绗�" + e.issue + "鏈�&lt;/option&gt;");
                    })
                }
            }
        })
    }
}

/*閫夋嫨鏈熷悗璺宠浆鍒拌繃鍒婇〉闈� */
function selectIssue(obj) {
    $(".left_search").attr("action", ($(obj).val()));
}

/* 鎼滅储骞翠唤閫夋嫨妗嗕簨浠� */
$(document).on("input", ".search_year", function () {
    var yearId = $(this).val();
    $(this).parent().siblings(".form-group").find("." + yearId).show().siblings().hide();
    //缁橝ction璧嬪€�
    $(this).parents(".left_search").attr("action", $(this).parent().siblings(".form-group").find("." + yearId).val());
})

// citation鍐呯殑doi閾炬帴鏄惁鑳借秴鍑轰竴琛�
function citationLinkWidthOutOfLine() {
    if ($(".info").length &amp;&amp; $(".info span").length) {
        if ($(".info span").width() + 25 &gt; $(".info").width()) {
            return true;
        }
    }
    return false;
}

function phoneInit() {

    $(function () {
        $(".fl-layout .article-list:last").css({ "border-bottom": "none" });

        /*pc瀵艰埅*/
        $(".header-nav").on("mouseenter", 'ul &gt; li', function (e) {
            if ($(this).children().hasClass("data-show")) {
                $(this).children("a").addClass("active");
                $(this).find(".data-show").stop().slideDown(200);
            }
        });
        $(".header-nav").on("mouseleave", 'ul &gt; li', function (e) {
            if ($(this).children().hasClass("data-show")) {
                $(this).children("a").removeClass("active");
                $(this).find(".data-show").stop().slideUp(200);
            }
        });

        /*瀵艰埅缁撴潫*/
        //$(".tab-ul-index li:last").css({"margin":0,"float":"right"});

        /*鍝嶅簲寮忔墜鏈簀s*/
        //	搴曢儴top鎸夐挳锛岀偣鍑昏繑鍥為《閮�
        $(document).on('touchend', '.toTop', function () {
            $('body,html').animate({ scrollTop: 0 }, 300);
        })
        /*
        $('.navList').click(function(){
            if($('.smallUl').css('display')=='none'){
                $('.smallUl').slideDown();
                $(this).find('.span1').css({"transform":"rotate(-45deg)","margin-top":10});
                $(this).find(".span2").css({"opacity":0});
                $(this).find('.span3').css({"transform":"rotate(45deg)","margin-top":-21});
            }else{
                $('.smallUl').slideUp();
                $(this).find('.span1').css({"transform":"rotate(0deg)","margin-top":0});
                $(this).find(".span2").css({"opacity":1});
                $(this).find('.span3').css({"transform":"rotate(0deg)","margin-top":0});
            }
            if($(".search-app-wrap").css("display")=="block"){
                $(".search-app-wrap").hide(0);
                $(".search-app").removeClass("active");
            }
        });
        
        $(".search-app").click(function () {
            if($(".search-app-wrap").css("display")=="none"){
                $(".search-app-wrap").stop().slideDown(200);
                $(this).addClass("active");
            }else{
                $(".search-app-wrap").stop().slideUp(200);
                $(this).removeClass("active");
            }
            if($(".smallUl").css("display")=="block"){
                $(".smallUl").hide(0);
                $(".navList").find('.span1').css({"transform":"rotate(0deg)","margin-top":0});
                $(".navList").find(".span2").css({"opacity":1});
                $(".navList").find('.span3').css({"transform":"rotate(0deg)","margin-top":0});
            }
        });
        
        
       
        $(".smallUl&gt;li").click(function () {
            if($(this).find(".data-show").css("display")=="none") {
                $(this).find("a span").addClass("active");
                $(this).siblings().find("a span").removeClass("active");
                $(this).find(".data-show").slideDown(200);
                $(this).siblings().find(".data-show").slideUp(200);
            }else {
                $(this).find(".data-show").slideUp(200);
                $(this).find("a span").removeClass("active");
            }
        });
        for(var i=0;i&lt;$(".smallUl&gt;li").length;i++){
            if($(".smallUl&gt;li").eq(i).find("li").length&gt;0){
                $(".smallUl&gt;li").eq(i).children("a").append('&lt;span&gt;&lt;img src="'+local_host+'style/web/images/public/selet-arrow_app.png"&gt;&lt;/span&gt;');
            }
        }
        */
        _flag = true;
        function run() {
            //$(".phone-nav .text").css({"width":parseInt($(".phone-nav .container").width()-$(".navList").width()-$(".phone-nav .sub").width()-$(".phone-nav .en").width()-30)});
            if ($(window).width() &lt;= 1200) {
                $(".header .navList span").last().css({ "margin": 0, "border": "none" });
                $(".smallUl").css({ "top": $(".phone-nav").outerHeight() });
               // $(".tab-ul-index").css({ "width": $(".tab-ul-index li").length * $(".tab-ul-index li").outerWidth(true) });
                $(".item-div .tab-box").css({ "overflow-x": "auto", "overflow-y": "hidden" });
            } else {
                //$(".tab-ul-index").css({ "width": "100%" });
                $(".item-div .tab-box").css({ "overflow-x": "inherit", "overflow-y": "inherit" });
            }
            $(".advance-search-bot").css({ "min-height": $(window).height() - $(".header").height() - $(".footer").height() - $(".phone-nav").height() - 100 });
            $(".main&gt;.container").css({ "min-height": $(window).height() - $(".footer").height() - $(".phone-nav").height() });
            $(".archcon .tab-ul").each(function () {
                $(this).find("dd").css({ "width": Math.floor($(this).width() / $(this).find("dd").length - 2), "margin-left": "1px", "margin-right": "1px" });
            });

            if (window.innerWidth &lt;= 991) {
                var left = $(".second-level-l").prop("outerHTML");
                $(".second-level-r").prev(".second-level-l").hide();
                $(".second-level-r").next().append(left);
                $(".second-level-r").next("div").show();
                setTimeout(function () {
                    $(document).on("input", ".search_year", function () {
                        var yearId = $(this).val();
                        $(this).parent().siblings(".form-group").find("." + yearId).show().siblings().hide();
                        //缁橝ction璧嬪€�
                        $(this).parents(".left_search").attr("action", $(this).parent().siblings(".form-group").find("." + yearId).val());
                    })
                }, 200)
                if ($(".second-level-r").next().find(".second-level-l").length &gt; 1) {
                    $(".second-level-r").next().append(left);
                    $(".second-level-r").next().find(".second-level-l").eq(0).show().siblings().remove();
                }
                if ($("div[class *= orders-]").length &gt; 0 &amp;&amp; $(".main-index").length &gt; 0) {
                    if ($(".main-phone").length == 0) {
                        $(".main .container").prepend("&lt;div class='main-phone'&gt;&lt;/div&gt;");
                        var temparr = [];
                        $("div[class *= orders-]").each(function (i, e) {
                            $index = $(e).attr("class").indexOf("orders-");
                            temparr.push($(e).attr("class").substring($index + 7, $index + 9));
                        })
                        temparr = temparr.sort(function (a, b) {
                            return a - b;
                        });
                        var mainPhone = $(".main-phone");
                        for (var i = 0; i &lt; temparr.length; i++) {
                            mainPhone.append($('.orders-' + temparr[i]).prop("outerHTML"))
                        }
                        //_flag = false;

                        if ($('.carousel').length &gt; 0) {
                            var $carousels = $('.carousel');
                            var startX, endX;
                            var offset = 50;
                            $carousels.on('touchstart', function (e) {
                                startX = e.originalEvent.touches[0].clientX;
                            });
                            $carousels.on('touchmove', function (e) {
                                endX = e.originalEvent.touches[0].clientX;
                            });
                            $carousels.on('touchend', function (e) {
                                var distance = Math.abs(startX - endX);
                                if (distance &gt; offset) {
                                    $(this).carousel(startX &gt; endX ? 'next' : 'prev');
                                }
                            })
                        }

                    }

                    $(".main-phone").show();
                    $(".main-left,.main-right,.main-mid").hide();
                }


            } else {
                if ($("div[class *= orders-]").length &gt; 0) {
                    $(".main-left,.main-right,.main-mid").show();
                    $(".main-phone").remove();
                }
                $(".second-level-r").prev(".second-level-l").show();
                $(".second-level-r").next("div").hide();
                $(document).on("input", ".search_year", function () {
                    var yearId = $(this).val();
                    $(this).parent().siblings(".form-group").find("." + yearId).show().siblings().hide();
                    //缁橝ction璧嬪€�
                    $(this).parents(".left_search").attr("action", $(this).parent().siblings(".form-group").find("." + yearId).val());
                })
            }
            /*search*/
            if ($(window).width() &lt;= 767) {
                if ($(".inputText.paddingLeftNone").siblings(".form-control-1-box").find("select").css("display") == "none") {
                    $(".search-wrap .inputText.paddingLeftNone").css({ "width": "100%", "margin": "0" });
                } else {
                    $(".search-wrap .inputText.paddingLeftNone").css({ "width": "71%", "margin": "0 0 0 2%" });
                }
            } else {
                if ($(".inputText.paddingLeftNone").siblings(".form-control-1-box").find("select").css("display") == "none") {
                    $(".search-wrap .inputText.paddingLeftNone").css({ "width": "482px", "margin": "0 30px 0 0" });
                } else {
                    $(".search-wrap .inputText.paddingLeftNone").css({ "width": "365px", "margin": "0 30px 0 0" });
                }
            }

        }
        function detectZoom() {
            var ratio = 0,
                screen = window.screen,
                ua = navigator.userAgent.toLowerCase();

            if (window.devicePixelRatio !== undefined) {
                ratio = window.devicePixelRatio;
            }
            else if (~ua.indexOf('msie')) {
                if (screen.deviceXDPI &amp;&amp; screen.logicalXDPI) {
                    ratio = screen.deviceXDPI / screen.logicalXDPI;
                }
            }
            else if (window.outerWidth !== undefined &amp;&amp; window.innerWidth !== undefined) {
                ratio = window.outerWidth / window.innerWidth;
            }

            if (ratio) {
                ratio = Math.round(ratio * 100);
            }

            return ratio;

        };
        // $(window).load(function () {
        //     run();
        // });
        $(window).on("load", function (e) {
            run();
        })
        if (citationLinkWidthOutOfLine()) {
            $(".quot").addClass("out-of-line");
        } else {
            $(".quot").removeClass("out-of-line");
        }
        $(window).resize(function () {
            if (citationLinkWidthOutOfLine()) {
                $(".quot").addClass("out-of-line");
            } else {
                $(".quot").removeClass("out-of-line");
            }
            run();
            if (detectZoom() != 100) {
                run();
            }
        });

        var topArr = [];
        for (var i = 0; i &lt; $(".phone-htmlContent .navTitle").length; i++) {
            topArr.push($(".phone-htmlContent .navTitle").eq(i).offset().top);
        }
        // 鎵嬫満鍙充笅瑙掔洰褰曢珮搴�
        $(".article-menu-bot").css({ "height": $(window).height() - $(".article-menu&gt;h3").height() });
        $(".article-btn").click(function () {
            if ($(".article-menu").css("z-index") == "-1") {
                $(".article-menu").addClass("ac1");
                var wrapper = document.querySelector('.article-menu-bot');
                /*var scroll = new BScroll(wrapper,{
                    click:true
                });*/
            } else {
                $(".article-menu").removeClass("ac1");
            }
        });


        // 鎵嬫満涓婂埌鍏ㄦ枃绗竴鏉℃樉绀哄彸涓嬭鐩綍
        if ($("#htmlContent&gt;.full-text").length &gt; 0) {
            $(window).scroll(function () {
                var htmlT = $("#htmlContent&gt;.html-text").offset().top;
                if ($(window).scrollTop() &gt;= htmlT) {
                    $(".article-btn").addClass("ac");
                } else {
                    $(".article-btn").removeClass("ac");
                }
            })
        }

        //    鍏ㄦ枃涓偣鍑绘爣棰樺睍寮€鐩稿簲鏍囬鍐呭
        $(document).on('click', '.main figcaption', '.phone-htmlContent .navTitle', function (e) {
            var _this = $(this);
            if (_this.hasClass('grayBgColor')) {
                _this.removeClass('grayBgColor').parent().removeClass('grayBorder');
                _this.next().hide();
            } else {
                _this.addClass('grayBgColor').parent().addClass('grayBorder');
                _this.next().show();
            }
        });
        $(".open-articleEn").click(function () {
            if ($(this).next(".articleEn").css("display") == "none") {
                $(this).next(".articleEn").slideDown(200);
                $(this).find("span").addClass("icon-jian").removeClass("icon-jia");
            } else {
                $(this).next(".articleEn").slideUp(200);
                $(this).find("span").addClass("icon-jia").removeClass("icon-jian");
            }
        })
        // 绉诲姩绔粦鍔�
        if ($(".mescroll").length &gt; 0) {
            var wrapper = document.querySelector('.mescroll');
            var scroll = new BScroll(wrapper);
        }

    })
}

function pic() {
    // 濡傛灉鍙湁涓€寮犲浘鐗囧氨涓嶆樉绀哄乏鍙崇澶�
    $(".article-list").each(function () {
        if ($(this).find(".picList li").length &lt;= 1) {
            $(this).find(".picPrev,.picNext").hide();
        }
    });
    if ($(window).width() &gt;= 1200) {
        $(".picList").each(function () {
            var _li = $(this).find("li");
            $(this).css({ "width": _li.length * _li.width() });
            $(this).find("li").eq(0).addClass("active");
        });
        $(".picNext").click(function () {
            var index = $(this).siblings(".picList").find("li.active").index();
            var length = $(this).siblings(".picList").find("li").length;
            if (index &gt;= 0 &amp;&amp; index &lt; length - 1) {
                ++index;
                $(this).siblings(".picList").find("li").eq(index).addClass("active").siblings("li").removeClass("active");
                // if (typeof ($(this).siblings(".picList").find("li").eq(index).find("a img").attr("srcl")) != "undefined") {
                //     var aNhref = $(this).siblings(".picList").find("li").eq(index).find("a img").attr("srcl");
                //     $(this).siblings(".picList").find("li").eq(index).find("a img").attr({ "src": aNhref });
                // } else {
                //     var aNhref = $(this).siblings(".picList").find("li").eq(index).find("a").attr("href");
                //     $(this).siblings(".picList").find("li").eq(index).find("a img").attr({ "src": aNhref });
                // }
            } else if (index == length - 1) {
                var index = 0;
                $(this).siblings(".picList").find("li").eq(index).stop(true, true).addClass("active").siblings("li").removeClass("active");
            }
        });
        $(".picPrev").click(function () {
            var index = $(this).siblings(".picList").find("li.active").index();
            var length = $(this).siblings(".picList").find("li").length;
            if (index &gt;= 0 &amp;&amp; index &lt;= length - 1) {
                --index;
                $(this).siblings(".picList").find("li").eq(index).addClass("active").siblings("li").removeClass("active");
                // if (typeof ($(this).siblings(".picList").find("li").eq(index).find("a img").attr("srcl")) != "undefined") {
                //     var aNhref = $(this).siblings(".picList").find("li").eq(index).find("a img").attr("srcl");
                //     $(this).siblings(".picList").find("li").eq(index).find("a img").attr({ "src": aNhref });
                // } else {
                //     var aNhref = $(this).siblings(".picList").find("li").eq(index).find("a").attr("href");
                //     $(this).siblings(".picList").find("li").eq(index).find("a img").attr({ "src": aNhref });
                // }
            } else if (index == 0) {
                $(this).siblings(".picList").find("li").eq(length - 1).addClass("active").siblings("li").removeClass("active");
            }
        });
    } else {
        $(".picList").css({ "width": "100%" });
        $(".article-list").each(function () {
            $(this).find(".curtu-show .picList li").each(function () {
                $(this).find("a").removeClass("group3 cboxElement");
                $(this).find("a img").attr({ "src": $(this).find("a").attr("href") });
            });

        })
        if ($(".picList").length &gt; 0) {
            $('.picList').owlCarousel({
                items: 1,
                itemsDesktop: [1170, 1],
                itemsDesktopSmall: [992, 1],
                itemsTablet: [768, 1],
                itemsTabletSmall: [450, 1],
                itemsMobile: [360, 1],
                navigation: true,
                navigationText: ["", ""],
                autoPlay: false,
                rewindSpeed: 300
            });
        }
    }
}

/*浼樺厛鍙戣〃鍜屽綋鏈焥rcl鍥剧墖鍒囨崲*/
$(function () {
    $(document).on("click", ".weixin", function () {
        shareTools("weixin", $(this));
        if ($(this).parent().siblings(".weixinBox").css("display") == "none") {
            $(this).parent().siblings(".weixinBox").show();
        }
    });
    $(document).on("click", ".kongjian", function () {
        shareTools("qzone", $(this));
    });
    $(document).on("click", ".xinlang", function () {
        shareTools("sina", $(this));
    });

    // 浼樺彂琛ㄥ浘鐗囩涓€寮犲浘鐗囨噿鍔犺浇
    function scrollImg() {
        var aImg = $("#lan .article-list .curtu .picList");
        var len = aImg.length;
        var n = 0;//瀛樺偍鍥剧墖鍔犺浇鍒扮殑浣嶇疆锛岄伩鍏嶆瘡娆￠兘浠庣涓€寮犲浘鐗囧紑濮嬮亶鍘�
        var seeHeight = document.documentElement.clientHeight;//鍙鍖哄煙楂樺害
        var scrollTop = document.body.scrollTop || document.documentElement.scrollTop;
        for (var i = n; i &lt; len; i++) {
            var prioTop = $("#lan .article-list").find(".curtu").eq(i).offset().top;
            //console.log(prioTop)
            if (prioTop &lt; seeHeight + scrollTop) {
                if ($("#lan .article-list").find(".curtu").eq(i).find(".picList li:first img").attr("src") == undefined) {
                    if (typeof ($("#lan .article-list .curtu .picList li").eq(i).find("a img").attr("srcl")) != "undefined") {
                        $("#lan .article-list").find(".curtu").eq(i).find(".picList li:first img").attr({ "src": $("#lan .article-list").find(".curtu").eq(i).find(".picList li:first a img").attr("srcl") });
                    } else {
                        $("#lan .article-list").find(".curtu").eq(i).find(".picList li:first img").attr({ "src": $("#lan .article-list").find(".curtu").eq(i).find(".picList li:first a").attr("href") });
                    }
                }
                n = i + 1;
            }
        }
    }

    // $(window).scroll(function () {
    //     if ($(window).width() &gt; 768 || (!isNull($('#isShowImg').val()) &amp;&amp; $('#isShowImg').val() == '1')) {
    //         scrollImg();
    //     }
    // });
    /*褰撴湡鎴栬€呬紭鍏堝彂琛ㄥ浘鐗囧厛涓嶅姞杞�,鐐瑰嚮鍚庡啀鍔犺浇绗竴寮�*/
    // $(".tab-ul li.current_").click(function () {
    //     var index = $(this).index();
    //     var articleList = $("#myTabContent .tab-pane").eq(index).find(".article-list");
    //     for (var i = 0; i &lt; articleList.length; i++) {
    //         if (articleList.eq(i).find(".picList li:first a img").attr("src") == undefined) {
    //             articleList.eq(i).find(".picList li:first a img").attr({ "src": articleList.eq(i).find(".picList li:first a img").attr("srcl") });
    //         }
    //     }
    // });







    /////////杩囧垔椤甸€変腑闂鍙婂悇绉嶅垏鎹�
    //鏂拌繃鍒婇〉js(涓枃)
    var lindex = 0,
        _index = 0,
        tempyearlist = 0,
        tempyearblock = 0,
        columimg = $('.columimg'),
        columlist = $('.columlist'),
        yearlistclick,
        yearblockclick;
    if (!sessionStorage.getItem('index')) {
        sessionStorage['index'] = -1;
    }
    if (!sessionStorage.getItem('method')) {
        sessionStorage['method'] = 0;
    }
    var his = window.history.length;
    $(".arc-listit dd").click(function () {
        _index = $(this).index(".arc-listit dd");
        tempyearlist = $(this).attr("temp");
        yearlistclick = $(".archcon.archcon-new dl dd a:contains('" + tempyearlist + "')").parent("dd");
        sessionStorage['index'] = tempyearlist;
        yearlistclick.addClass("active").siblings().removeClass("active");
        yearlistclick.addClass("active").parents(".tab-ul").siblings(".tab-ul").find("dd").removeClass("active");
        //$(".ever-year,.tab-content.tab-images&gt;div,.tab-content.tab-images&gt;ul").hide();
        for (var i = 0; i &lt; $(".archcon-new .tab-pane").length; i++) {
            if ($(".archcon-new .tab-pane").eq(i).attr("id") == tempyearlist) {
                $(".archcon-new .tab-pane").eq(i).show().siblings().hide();
            }
        }
        $(this).addClass("active").siblings().removeClass("active");
        initColumn(columimg, columlist);
        if (lindex == 0) {
            columimg.show().find('.archimg').hide().eq(_index).show();
        } else {
            columlist.show().find('.ar-list').hide().eq(_index).show();
        }
    })
    //鍥炬枃锛屽垪琛ㄦ樉绀哄垏鎹�
    $(".arcmethod li").click(function () {
        sessionStorage['method'] = $(this).index();
        $(this).addClass("active").siblings().removeClass("active");
        lindex = $(this).index(".arcmethod li");
        initColumn(columimg, columlist);
        var _index = $(".arc-listit dd.active").index();
        if (lindex == 0) {
            $(".conarch .archcon").eq(lindex).show().siblings(".conarch .archcon").hide()
            columimg.show().find('.archimg').hide().eq(_index - 1).show();
        } else if (lindex == 1) {
            $(".conarch .archcon").eq(lindex - 1).show().siblings(".conarch .archcon").hide()
            columlist.show().find('.ar-list').hide().eq(_index - 1).show();
        } else {
            initColumn(columimg, columlist);
            $(".conarch .archcon").eq(lindex - 1).show().siblings(".conarch .archcon").hide()
            $(".archcon .tab-ul").each(function () {
                $(this).find("dd").css({ "width": Math.floor($(this).width() / $(this).find("dd").length - 2), "margin-left": "1px", "margin-right": "1px" });
            });
        }
    });

    $(".archcon.archcon-new dl dd").click(function (event) {
        var yearA = $(this).find("a").text().trim();
        if (yearA == "") {
            return;
        }

        var yearTab = $(".archcon-new .tab-pane");
        yearTab.hide();
        tempyearblock = $(this).find("a").text().trim();
        var yearblockclick = $(".arc-listit dd[temp = '" + tempyearblock + "']");
        yearblockclick.addClass("active").siblings().removeClass("active");
        yearblockIndex = yearblockclick.index();
        sessionStorage['index'] = tempyearblock;
        initColumn(columimg, columlist);
        columimg.find('.archimg').hide().eq(yearblockIndex).show();
        columlist.find('.ar-list').hide().eq(yearblockIndex).show();


        $(this).addClass("active").siblings().removeClass("active");
        $(this).addClass("active").parents(".tab-ul").siblings(".tab-ul").find("dd").removeClass("active");
        //$(".ever-year,.tab-content.tab-images&gt;div,.tab-content.tab-images&gt;ul").hide();
        for (var i = 0; i &lt; yearTab.length; i++) {
            if (yearTab.eq(i).attr("id") == yearA) {
                yearTab.eq(i).show().siblings().hide();
            }
        }
    });
    if ((his != 0 || his != 1) &amp;&amp; sessionStorage['index'] != -1) {
        //    	$(yearlistclick).trigger('click');
        //    	$(yearblockclick).trigger('click');
        var aaa = sessionStorage['index'];
        $(".arc-listit dd[temp='" + aaa + "']").trigger('click');
        $(".archcon.archcon-new dl dd a:contains('" + aaa + "')").parents("dd").trigger('click');
        $(".arcmethod li").eq(sessionStorage['method']).trigger('click');
    }


    //鏂拌繃鍒婇〉js(鑻辨枃)
    $(".arc-listeng dd").click(function () {
        var _index = $(this).index(".arc-listeng dd");
        console.log(_index);
        $(this).addClass("active").siblings().removeClass("active");
        $(".arcimgeng .archimg").eq(_index).addClass("activein").siblings(".archimg").removeClass("activein");

    })


    //鏂囩珷璇︽儏椤电偣鍑诲勾璺宠浆鍒拌繃鍒婇〉鏄剧ず瀵瑰簲鐨勫勾
    if (window.location.href.indexOf("archive_list") &gt; 0) {
        var archiveUrl = window.location.href;
        archiveUrl = archiveUrl.substring(archiveUrl.length - 4);
        //    	$(".archcon-new .tab-ul").each(function(){
        //    		var dd=$(this).find("dd");
        //    		for(var i=0;i&lt;dd.length;i++){
        //        		if(dd.eq(i).find("a").text().trim()==archiveUrl){
        //        			console.log(dd.eq(i).find("a").text().trim())
        //        			console.log(archiveUrl)
        //        			dd.eq(i).click();
        //        		}
        //        	}
        //    	})
        $(".guokan-tab li:nth-child(2)").trigger("click");
        $(".guokan-dlwrap .guokan-dl dd[datas= '" + archiveUrl + "']").trigger("click");
    }


    //鏂伴椈璇︽儏椤靛幓鎺夌┖P鏍囩
    //var advSetting = {columnName:"鏂伴椈璇︽儏椤靛箍鍛�",size:2,callback:showNewsPageAd};
    //    $(".box-body p").each(function(i,e){
    //        var newsTextImg=$(e).find("img").length;
    //        //alert(newsTextImg);
    //        if(newsTextImg == 0){
    //            var newsText=$(e).text().trim();
    //            //alert(newsText);
    //            if(newsText === ""){
    //                //alert(2);
    //                $(e).remove();
    //            }
    //        }
    //    });
    if ($(".toolBox1").length &gt; 0) {
        if ($(".toolBox1").html().trim() == "") {
            $(".toolBox1").hide();
        }
    };
    // 涓枃鏂囩珷璇︽儏椤靛垏鎹㈤殣钘忓脊鍑虹殑鍙傝€冩枃鐚�
    $(".nav-wrapper ul.pull-left li").click(function () {
        if ($(".box-tan").css("display") == "block") {
            $(".box-tan").hide();
        }
    })
})


//涓枃杩囧垔璋冪敤鍑芥暟
function initColumn(img, list) {
    img.hide();
    list.hide();
}

/*鏄剧ず澶у浘鍚庣偣鍑诲叧闂寜閽拰闃村奖閮ㄥ垎srcl闂*/
function src() {
    var allSrc = [];
    var tanSrc = $("#cboxLoadedContent img");
    var allSlide = $(".picList li");
    var allSlideA = allSlide.find("a");
    for (var i = 0; i &lt; allSlide.length; i++) {
        allSrc.push((allSlideA[i].href));
    }
    if ($(".picBox").length &gt; 0) {
        for (var i = 0; i &lt; allSlide.length; i++) {
            for (var j = 0; j &lt; tanSrc.length; j++) {
                if (tanSrc[j].src == allSlideA[i].href) {
                    $(".picList li").eq(i).find("a img").attr({ "src": $("#myTabContent .picList li").eq(i).find("a").attr("href") });
                    $(".picList li").eq(i).addClass("active").siblings().removeClass("active");
                }
            }
        }
    }
}

/*鐣欒█鏉�************************************************************************************************************************************/
function messageBoard() {
    $(".monitor").show();
    $(".messageBoardWrap").show();
    $(".authNum").val("");
    $(".realName").val("");
    $(".email").val("");
    $(".phone").val("");
    $(".title").val("");
    $(".content").val("");
    $(".authImgMB").attr("src", local_host + "util/AuthExpImageServlet?" + Math.random());

}

/**
 * 鍒锋柊楠岃瘉鐮�
 * 
 * */
function refreshexpMB(obj) {
    obj.src = local_host + "util/AuthExpImageServlet?" + Math.random();
}

/**
 * 
 * @return
 */
function subMessageBoard() {
    var data = {
        "authNum": $(".authNum").val(),
        "realName": $(".realName").val(),
        "email": $(".email").val(),
        "phone": $(".phone").val(),
        "title": $(".title").val(),
        "content": $(".content").val()
    }
    var ajaxArg = {
        url: local_host + "createMessageBoard",   								//url 璺緞
        data: data,  															//data 浼犻€佹暟鎹�
        returnFun: outputMessageBoard 												//鍥炶皟鍑芥暟
    };
    ajaxPost(ajaxArg);
}

function outputMessageBoard(data) {
    if (data.message == 'ok') {
        alert(data.extraData);
        $(".monitor").hide();
        $(".messageBoardWrap").hide();
    } else {
        alert(data.extraData);
        $(".authNum").val("");
        $(".authImgMB").attr("src", local_host + "util/AuthExpImageServlet?" + Math.random());
    }
}
function loadFloatBoxHandler() {
    $(document).on("click", ".notice-window .closex", function () {
        $(this).find("a").toggleClass("show");
    })



    //鎮诞绐條ocal鍜宻ession褰㈠紡鍏抽棴
    /*var flySession = "",
        flyStorage = "",
        fixedSession = "",
        fixedStorage = "";*/

    //sessionStorage
    if (!sessionStorage.getItem("fixedSession") &amp;&amp; !localStorage.getItem("fixedStorage")) {
        $(".notice-fixed").show();
    }
    $(".notice-fixed .close-session").click(function () {
        $(".notice-fixed").hide();
        sessionStorage.setItem("fixedSession", "flySession");
    })

    //localStorage
    $(document).on("click", ".notice-fixed .close-local", function () {
        $(".notice-fixed").hide();
        localStorage.setItem("fixedStorage", "fixedStorage");
    })

    //婊″睆椋為绐楄皟鐢�, 璋冪敤鏀剧疆鍒版覆鏌撳悗
    // if ($("#ad1").length &gt; 0 &amp;&amp; !sessionStorage.getItem("flySession") &amp;&amp; !localStorage.getItem("flyStorage")) {
    //     var ad1 = new AdMove("ad1");
    //     ad1.Run();
    // }
    //婊″睆椋為绐楀舰寮忓叧闂�
    if (!sessionStorage.getItem("flySession") &amp;&amp; !localStorage.getItem("flyStorage")) {
        $(".notice-fly").show();
    }
    $(document).on("click", ".notice-fly .close-session", function () {
        $(".notice-fly").remove();
        sessionStorage.setItem("flySession", "flySession");
    })

    //localStorage
    $(document).on("click", ".notice-fly .close-local", function () {
        $(".notice-fly").remove();
        localStorage.setItem("flyStorage", "flyStorage");
    })


    //	var url = window.location.href;
    //	if(url.indexOf("_preview.htm")&gt;0){
    //		$("&lt;script&gt;").attr({src: local_host + "style/dwz/ueditor/ueditor.config.js" , type:"text/javascript", charset:"utf-8"}).appendTo("body");
    //		//$("&lt;script&gt;").attr({src: local_host + "style/dwz/ueditor/lang/zh-cn/zh-cn.js" , type:"text/javascript", charset:"utf-8"}).appendTo("body");
    //		//$("&lt;script&gt;").attr({src: local_host + "style/dwz/ueditor/lang/en/en.js" , type:"text/javascript", charset:"utf-8"}).appendTo("body");
    //		$("&lt;script&gt;").attr({src: local_host + "style/dwz/ueditor/ueditor.all.js" , type:"text/javascript", charset:"utf-8"}).appendTo("body");
    //		
    //		$("&lt;script&gt;").attr({src: local_host + "style/web/js/public/newsEdit.js", type:"text/javascript", charset:"utf-8"}).appendTo("body");
    //		
    //		
    //	}
}
loadFloatBoxHandler();
/*绉诲姩绔搷搴斿紡(涓€佽嫳鏂囧叡鐢�) 宸茬Щ鍔ㄥ埌artilces.js afterArticleDitailPartAjax涓�*/

function phoneShowTab() {
    if ($(window).width() &lt;= 1200) {
        //$(".article-box-content li:first-child").trigger("click");
        //var abc = $(".article-box-content li.current").attr("id");
        //$("#" + abc).prev(".phone-title").trigger("click");
        $("#htmlContent,#FullText").addClass("phone-htmlContent");
        //$(".article-box-content .phone-title a").trigger("click");
        //涓枃
        if ($("#htmlContent").length &gt; 0) {
            $(".article-box-content .phone-title").eq(0).find("a").addClass("nonce");
            $("#htmlContent.phone-htmlContent h3.navTitle").each(function () {
                var _id = $(this).attr("id");
                $("#htmlContent.phone-htmlContent").find("." + _id).hide();
            })
        }
        //鑻辨枃
        if ($("#FullText").length &gt; 0) {
            $(".article-box-content .phone-title").eq(0).find("a").trigger("click");
            $("#FullText.phone-htmlContent h3.navTitle").each(function () {
                var _id = $(this).attr("id");
                $("#FullText.phone-htmlContent").find("." + _id).hide();
            })
        }
        $(".article-btn").addClass("ac");

        //绉诲姩绔叏鏂囬儴鍒嗙偣鍑绘樉绀轰笌闅愯棌
        $(".phone-htmlContent h3.navTitle").each(function () {
            var _id = $(this).attr("id");
            $(".phone-htmlContent").find("." + _id).hide();
        })
        $(".phone-htmlContent h3.navTitle").click(function () {
            var tempId = $(this).attr("id");
            $(".phone-htmlContent").find("." + tempId).toggle(200);
        })
    }
    if ($(window).width() &gt; 1200) {
        //$(".article-nav li:first-child").trigger("click");
        $("#htmlContent,#FullText").removeClass("phone-htmlContent");
        /*		$("#htmlContent.phone-htmlContent h3.navTitle").each(function(){
                    var _id =$(this).attr("id");
                    $("#htmlContent").find("."+_id).show();
                })*/
        $(".article-btn").removeClass("ac");
    }
}

/*鎵嬫満鏂囩珷璇︽儏椤靛彸涓嬭闄ゅ叏鏂囧鐩綍*/
function getPhoneNav() {
    var htmlTop = '', htmlBtm = '', arr = $('.article-box-content .phone-title');
    for (var i = 0; i &lt; arr.length; i++) {
        htmlTop += arr.eq(i).prop("outerHTML");
        if ($(arr[i]).hasClass("html-text")) break;
    }
    for (var i = 0; i &lt; arr.length; i++) {
        if ($(arr[i]).hasClass("phone-mark")) continue;
        htmlBtm += arr.eq(i).prop("outerHTML");
    }
    $(".iphone-wrapper").before(htmlTop);
    $(".iphone-wrapper").after(htmlBtm);
    /*if($(window).width() &lt; 1200){*/
    $(".article-menu-bot .phone-title").click(function () {
        var _index = $(this).index(".article-menu-bot .phone-title");
        //console.log(typeof($(".article-box-content .phone-title").eq(_index)))
        var _t = $(".article-box-content .phone-title").eq(_index).offset().top;
        $('html,body').animate({ scrollTop: _t - 10 }, 300);
    })
    /*}*/
    //$(".phone-tab .html-text").after($(".iphone-wrapper").prop("outerHTML"))
}

/*鎵嬫満鏂囩珷璇︽儏椤靛彸涓嬭鍏ㄦ枃鐩綍*/
function getFullTextPhone() {
    var html = '', arr = $('.article-box-content .navTitle');
    for (var i = 0; i &lt; arr.length; i++) {
        html += '&lt;li&gt;' + arr.eq(i).prop("outerHTML") + '&lt;/li&gt;';
    }
    $(".iphone-wrapper").append(html);
    /*if($(window).width() &lt; 1200){*/
    $(".iphone-wrapper li").each(function (i) {
        $(this).click(function () {
            if (!$(".html-text a").hasClass("nonce")) { $(".html-text.phone-title").trigger("click") }
            $(this).addClass("ac").siblings().removeClass("ac");
            var _this = $(this), index = _this.index(), _id = _this.find(".navTitle span").attr("id"),
                tempB = $('.phone-htmlContent #' + _id);
            /* if($('.phone-htmlContent .navTitle').eq(index).parent(".group").css("display")=="none"){
                 $('.phone-htmlContent .navTitle').eq(index).parent(".group").show();
             }*/
            if (_this.find(".navTitle")[0].tagName != "H3") {
                var _num = _this.find(".navTitle").attr("class").lastIndexOf(' ');
                var tempC = "." + _this.find(".navTitle").attr("class").substring(_num, _num.length).trim();
            } else {
                var tempC = "." + _this.find(".navTitle").attr("id");

            }
            if ($(tempC).css("display") == "none") {
                $(tempC).show();
            }

            setTimeout(function () {
                var top = $(tempB).offset().top;
                $('html,body').animate({ scrollTop: top }, 300);
            }, 300)

        })

    });
    /* }*/

}
//绉诲姩绔洰褰曟墜婊戞樉绀轰笌闅愯棌
/*$(function () {
    if($('.article-menu').length &gt; 0){
        var articleMenu = $('.article-menu');
        var startX,endX;
        var offset = 50;
        articleMenu.on('touchstart',function (e) {
            startX = e.originalEvent.touches[0].clientY;
        });
        articleMenu.on('touchmove',function (e) {
            endX = e.originalEvent.touches[0].clientY;
        });
        articleMenu.on('touchend',function (e) {
            var distance = Math.abs(startX - endX);
            if (distance &gt; offset){
                $(this).addClass("ac1")
            }else{
                $(this).removeClass("ac1")
            }
        })
    }
});*/

$(window).on("load", function () {
    if ($('.articleBody styled-content').length &gt; 0) {
        $('.articleBody styled-content').each(function () { var _v = $(this).attr('style'); $(this).find('img').length ? $(this).find('img')[0].style = _v : ""; })
    }
})

function initExport() {
    //瀵煎嚭
    $("#export").click(function () {
        var articleIds = "";
        var exportCheckObj = $("input[name='journalArticleCheck']:checked");
        var size = exportCheckObj.length;
        if (size == 0) {
            if ($("#language").val() == "en") {
                alert("Please select at least one article!");
                return false;
            } else {
                alert("璇疯嚦灏戦€夋嫨涓€绡囨枃绔狅紒");
                return false;
            }
        } else {
            $.each(exportCheckObj, function (i, e) {
                var articleId = $(e).attr("checkArticleId");
                if (size - 1 == i) {
                    articleIds += articleId
                } else {
                    articleIds += articleId + ",";
                }
            })
            //alert(articleId);
            $("#exportArticleId").attr("article_id", articleIds);
        }
    });

    //寮曠敤鏈枃
    $("#ReferencePaper").click(function () {
        var showAlert = "";
        var pageType = "";
        if ($("#language").val() == "en") {
            showAlert = "Please select at least one article!";
            pageType = "en";
        } else {
            showAlert = "璇疯嚦灏戦€夋嫨涓€绡囨枃绔狅紒";
            pageType = "cn";
        }
        if ($("input[name='journalArticleCheck']:checked").length == 0) {
            if ($("#language").val() == "en") {
                alert(showAlert);
                return false;
            } else {
                alert(showAlert);
                return false;
            }
        } else {
            var html = "";
            var articleIds = "";
            $.each($("input[name='journalArticleCheck']:checked"), function (i, e) {
                //                var contenObj = $(e).parents(".article-list-left").siblings().clone();
                //                html += $(contenObj).find(".citation").show().prop('outerHTML');
                var articleId = $(e).attr("checkArticleId");
                var size = $("input[name='journalArticleCheck']:checked").length;
                if (size - 1 == i) {
                    articleIds += articleId
                } else {
                    articleIds += articleId + ",";
                }
            })
            if (!isNull(articleIds)) {
                $.ajax({
                    type: 'post',
                    url: local_host + "article/getCitationStr",
                    data: {
                        'ids': articleIds,
                        'fileType': 1,
                        'pageType': pageType
                    },
                    success: function (dataMap) {
                        var citation = "";
                        if (pageType == "cn") {
                            citation = dataMap.citationCn.split("****");
                        } else {
                            citation = dataMap.citationEn.split("****");
                        }
                        for (var i = 0; i &lt; citation.length; i++) {
                            html += '&lt;div style="display: block;" class="citation"&gt;' + citation[i] + '&lt;/div&gt;';
                        }
                        $("#copyReference").html(html);
                        if (window.MathJax &amp;&amp; MathJax.Hub || (document.addEventListener('mathjaxLoaded', function () {
                            MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
                        }))) {
                            MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
                        }
                    }
                })
            }

        }
    });
}
initExport();</pre></body></html>