浏览代码

服务端刷题

mzx16822 6 年之前
父节点
当前提交
78e11fc5ce
共有 1 个文件被更改,包括 34 次插入33 次删除
  1. 34 33
      resources/views/home/user.blade.php

+ 34 - 33
resources/views/home/user.blade.php

@@ -414,41 +414,42 @@ var rules={
     line:1 
   }
 };
- var btnConfig={
-          className: "btn-1",
-          currentClass:"on",
-          history:false,
-            rules:rules,
-            currentIndex:0,
-                onEnterPress:function () {
-                  // body...
-                  if(this.className=="btn-1"){
-                    start();
-                  }
-                  if(this.className=="btn-2"){
-                    var ischeck=true
-                    for (var i = 0; i < this.hotbtn.length; i++) {
-                      if(this.hotbtn[i].classList.contains("cur_answer")){
-                        ischeck=false;
-                      }
-                    }
-                    if(ischeck){
-                      var answerId=this.current.getAttribute("data-id");
-                      this.current.classList.add("cur_answer");
-                      answer(answerId);
-                    }
+
+ // var btnConfig={
+ //          className: "btn-1",
+ //          currentClass:"on",
+ //          history:false,
+ //            rules:rules,
+ //            currentIndex:0,
+ //                onEnterPress:function () {
+ //                  // body...
+ //                  if(this.className=="btn-1"){
+ //                    start();
+ //                  }
+ //                  if(this.className=="btn-2"){
+ //                    var ischeck=true
+ //                    for (var i = 0; i < this.hotbtn.length; i++) {
+ //                      if(this.hotbtn[i].classList.contains("cur_answer")){
+ //                        ischeck=false;
+ //                      }
+ //                    }
+ //                    if(ischeck){
+ //                      var answerId=this.current.getAttribute("data-id");
+ //                      this.current.classList.add("cur_answer");
+ //                      answer(answerId);
+ //                    }
                     
-                  }
-                  if(this.className=="btn-3"){
-                   var href= this.current.getAttribute("data-href");
-                    window.location.href=href;
-                  }
+ //                  }
+ //                  if(this.className=="btn-3"){
+ //                   var href= this.current.getAttribute("data-href");
+ //                    window.location.href=href;
+ //                  }
                   
-                },
-                onPress:function () {
-                  // body...
-                }}
-    window.main = new tvSysBtnBind(btnConfig);
+ //                },
+ //                onPress:function () {
+ //                  // body...
+ //                }}
+ //    window.main = new tvSysBtnBind(btnConfig);
 });