mzx16822 6 years ago
parent
commit
5c6bed0cc4
2 changed files with 9 additions and 1 deletions
  1. 1 1
      public/h5/datigame/css/main.css
  2. 8 0
      public/h5/datigame/js/common.js

+ 1 - 1
public/h5/datigame/css/main.css

@@ -430,7 +430,7 @@ background-color:#009688;
   border-radius: .8rem 0 0 .8rem/.8rem 0 0 .8rem;
   border-radius: .8rem 0 0 .8rem/.8rem 0 0 .8rem;
   background: #ffffff;
   background: #ffffff;
 }
 }
-
+ 
 .text-circle {
 .text-circle {
   position: absolute;
   position: absolute;
   display:flex;
   display:flex;

+ 8 - 0
public/h5/datigame/js/common.js

@@ -189,6 +189,14 @@ common={
 	                leftContent.setAttribute('style', 'transform: rotate(' + _this.data.angle + 'deg)')
 	                leftContent.setAttribute('style', 'transform: rotate(' + _this.data.angle + 'deg)')
 	            }
 	            }
 	        }
 	        }
+	        $(".text-circle").removeClass("rubberBand");
+	        $(".text-circle").removeClass("animated");
+	        if(_this.data.sum<4){
+
+	        	$(".text-circle").addClass("rubberBand");
+	        	$(".text-circle").addClass("animated");
+	        }
+	        
 	        if (_this.data.sum < -1) {
 	        if (_this.data.sum < -1) {
 	        	if(!_this.data.isAnswer)
 	        	if(!_this.data.isAnswer)
 	           	_this.Answer();
 	           	_this.Answer();