|
@@ -201,8 +201,12 @@ function initScoreItem(data){
|
|
|
$(".del-flaw").css({"opacity":hasAu2?"1":"0.5",cursor:hasAu2?"pointer":"unset"});
|
|
|
$(".flaw-item .title a[href]").click(function(){
|
|
|
const id = $(this).attr("href");
|
|
|
+ const anchors=$(this).attr("anchors").split(",");
|
|
|
+ let ans = anchors.map((it)=>{
|
|
|
+ return "#anchor"+it;
|
|
|
+ });
|
|
|
$(".info-item .cont,.flaw-item .title").removeClass("active");
|
|
|
- $(id).addClass("active");
|
|
|
+ $(ans.join(",")).addClass("active");
|
|
|
$(this).parent().addClass("active");
|
|
|
});
|
|
|
}
|