var swiperHero=null,swiperHeroP=null;var hero_json={FW:{},OMF:{},DMF:{},DF:{},GK:{}};(function(a,e){$(a).ready(function(){c();b()});function c(){var f="#hero_swiper",g="#herop_swiper",d=500;swiperHero=new Swiper(f,{noSwiping:true,noSwipingClass:"stop-swiping-hero",effect:"fade",fadeEffect:{crossFade:true},speed:0,resistanceRatio:0,lazy:{elementClass:"swiper-lazy-hero",loadPrevNext:true,loadPrevNextAmount:1,loadOnTransitionStart:true},navigation:{nextEl:".hero-next",prevEl:".hero-prev"}});swiperHeroP=new Swiper(g,{speed:d,resistanceRatio:0,spaceBetween:300,lazy:{elementClass:"swiper-lazy-herop",loadPrevNext:true,loadPrevNextAmount:1,loadOnTransitionStart:true},navigation:{nextEl:".herop-next",prevEl:".herop-prev"}})}function b(){if(data_hero.length===0){return}var f=$("#hero_swiper"),k=$("#herop_swiper");for(var j in data_hero){var d=data_hero[j]["attributes"]["位置"];hero_json[d][j]=data_hero[j]}function i(n){var m=0,o='
");swiperHeroP.update();swiperHeroP.lazy.load();$("#herop_swiper .hero").on("click",function(){var p=$(this).attr("data-hash");if(p===a.location.hash){return}a.location.hash=p;g(false)})}function h(p){var r="";for(var o in p["皮肤"]){var m=p["皮肤"][o]["attributes"],q=m["技能"].split("##"),n=["","","",""],t="";for(var l in n){if(q[l]!==undefined){n[l]=q[l]}}if(m["位置"]!=="GK"){t='