|
@@ -92,9 +92,18 @@ common={
|
|
if($(this).attr("option_id")==data.info.anwser){
|
|
if($(this).attr("option_id")==data.info.anwser){
|
|
$(this).addClass("cur_true");
|
|
$(this).addClass("cur_true");
|
|
}
|
|
}
|
|
- if($(this).attr("option_id")==_this.data.player_answerId){
|
|
|
|
|
|
+ if($(this).attr("option_id")!=data.info.anwser&&$(this).hasClass("cur_answer")){
|
|
|
|
+
|
|
|
|
+ $(this).addClass("cur_error");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if($(this).attr("option_id")==_this.data.player_answerId&&$(this).attr("option_id")==data.info.anwser){
|
|
|
|
+ //对方答案
|
|
|
|
+ $(this).addClass("player_true");
|
|
|
|
+ }
|
|
|
|
+ if($(this).attr("option_id")==_this.data.player_answerId&&$(this).attr("option_id")!=data.info.anwser){
|
|
//对方答案
|
|
//对方答案
|
|
- $(this).addClass("player_cur");
|
|
|
|
|
|
+ $(this).addClass("player_error");
|
|
}
|
|
}
|
|
|
|
|
|
})
|
|
})
|