/* footer ercode */ $(function(){ $(".top_rig img").eq(0).hover( function () { $(this).attr("src","../../static/images/footer_icon11.png"); }, function () { $(this).attr("src","../../static/images/footer_icon1.png"); } ); $(".top_rig img").eq(1).hover( function () { $(this).attr("src","../../static/images/footer_icon22.png"); $(".weichatcode").show() }, function () { $(this).attr("src","../../static/images/footer_icon2.png"); $(".weichatcode").hide() } ); $('.nav .nav_li').hover(function(){ $(this).find('.child_box').stop(true,true).slideDown(300); },function(){ $(this).find('.child_box').stop(true,true).slideUp(300); }) $('.child_box dd').hover(function(){ var dlindex=($(this).index()-1)*36+8; $(this).parents('.child_box').find('.Navmeau2Line').stop(true,true).animate({'top':dlindex},300); },function(){ $(this).find('.child_box').stop(true,true).slideUp(300); }) $(".fixMaxWords").each(function () { var euTextLen = $(this).text().length; var maxLenght = $(this).attr("maxLength"); if (maxLenght > 0 && euTextLen > maxLenght) { $(this).text($(this).text().substring(0, maxLenght) + '...'); } }); $(".logo").click(function () { if(window.location.href.indexOf("/en/") > -1) { location.href = "/en/home/index.html"; }else{ location.href = ""; } }) }) function getMin(list) { var min = parseFloat(list[0]); var len = list.length; for(var i=1; i max){ max = parseFloat(list[i]); } } return max+0.05; }