|
@@ -153,6 +153,15 @@ var textCircle = document.querySelector(".text-circle");
|
|
|
sum= sum-1;
|
|
|
$("#Jvs .con").show();
|
|
|
angle += 36;
|
|
|
+ if(angle < 360){
|
|
|
+ if(angle > 180){
|
|
|
+ rightContent.setAttribute('style', 'transform: rotate('+(angle-180)+'deg)');
|
|
|
+ }else{
|
|
|
+ leftContent.setAttribute('style', 'transform: rotate('+angle+'deg)');
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
if(sum<0){
|
|
|
//cur_question++;
|
|
|
//getQuestion(room_id, cur_question);
|
|
@@ -164,15 +173,7 @@ var textCircle = document.querySelector(".text-circle");
|
|
|
}
|
|
|
|
|
|
|
|
|
- if(angle < 360){
|
|
|
- if(angle > 180){
|
|
|
- rightContent.setAttribute('style', 'transform: rotate('+(angle-180)+'deg)');
|
|
|
- }else{
|
|
|
- leftContent.setAttribute('style', 'transform: rotate('+angle+'deg)');
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
- }
|
|
|
},1000)
|
|
|
}
|
|
|
//绑定通信
|