|
@@ -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);
|
|
|
});
|
|
|
|
|
|
|