| 
					
				 | 
			
			
				@@ -193,7 +193,7 @@ common={ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    		   $(".gstart").show(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  			common.tips(res.msg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  		}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 		else this.tips("登录失败"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 		else this.tips("正在登录"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  	},initSocket:function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  		var _this=this; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  		  var ws = new WebSocket(this.data.WebSocket); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -201,13 +201,29 @@ common={ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  		 	  	_this.onSocket(e); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  		 	  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 	},loadQuestion(responsedata) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 	},randomNum:function(minNum,maxNum){  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            switch(arguments.length){  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                case 1:  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    return parseInt(Math.random()*minNum+1,10);  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                break;  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                case 2:  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    return parseInt(Math.random()*(maxNum-minNum+1)+minNum,10);  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                break;  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    default:  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        return 0;  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    break;  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        },loadQuestion(responsedata) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         console.log(responsedata); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     var _this=this; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         _this.data.isAnswer=false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         _this.data.question_id= responsedata.info.question.question_id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $("#Jqtitle").html(responsedata.info.question.title ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var question=""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         var answers = responsedata.info.options 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for(var i in answers){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -219,6 +235,10 @@ common={ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            $(".g-doc .g-inner").addClass("doing"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        // is_end = responsedata.info.question.is_end; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          this.daoshu(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          var animate=["zoomInDown","bounceIn","flash"]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        var r = _this.randomNum(0,2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         $("#Jqtitle").addClass(animate[r]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $("#Jqtitle").addClass("animated"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       	$("#question .item").on("touchend",function(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  			var l = $("#question .item.cur_answer").length; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  			if(l>0)return; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -263,6 +283,7 @@ common={ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  	},daoshu:function(argument) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  			var _this=this; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	    clearInterval(this.data.ts); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	    $("#Jqtitle").attr("class","tit"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	    this.data.sum = 9; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	     this.data.angle = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	   	var leftContent  = document.querySelector(".left-content"); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -300,6 +321,7 @@ common={ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	        if (_this.data.sum < 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	        	if(!_this.data.isAnswer) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	           	_this.Answer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	            
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	            _this.data.sum = 9; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	            _this.data.angle = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	            leftContent.setAttribute('style', 'transform: rotate(0deg)'); 
			 |