|
@@ -235,7 +235,9 @@ function daoshu(argument) {
|
|
|
if(data.user_id == $("#user_id").val()){
|
|
|
var score = parseInt($("#py1_score").html());
|
|
|
if(data.is_true == 1){
|
|
|
- $("#py1_score").html(score+300*(sum/10));
|
|
|
+ var s=score+300*(sum/10);
|
|
|
+ if(s<0)s=0;
|
|
|
+ $("#py1_score").html(s);
|
|
|
$(".cur_answer").addClass("cur_true");
|
|
|
}else{
|
|
|
$(".cur_answer").addClass("cur_error");
|
|
@@ -243,7 +245,9 @@ function daoshu(argument) {
|
|
|
}else{
|
|
|
if(data.is_true == 1){
|
|
|
var score = parseInt($("#py2_score").html());
|
|
|
- $("#py2_score").html(score+300*(sum/10));
|
|
|
+ var s=score+300*(sum/10);
|
|
|
+ if(s<0)s=0;
|
|
|
+ $("#py2_score").html(s);
|
|
|
}
|
|
|
}
|
|
|
var py1_score = parseInt($("#py1_score").html());
|