anan66 commited on
Commit
495f69d
·
1 Parent(s): 418c130

upload house game

Browse files
Files changed (1) hide show
  1. house/gameapp.js +3 -5
house/gameapp.js CHANGED
@@ -111,17 +111,15 @@ function userInput(_text) {
111
  });
112
  // 获取焦点
113
  input.addEventListener("focus", ()=>{
114
- setTimeout(()=>{
115
- div.style.left = "-999999px";
116
- }, 500);
117
  });
118
  // 失去焦点
119
  input.addEventListener("blur", () => {
120
  div.remove();
121
  window.input_div = null;
122
  });
123
- input.focus();
124
- input.click();
125
  }
126
  }
127
 
 
111
  });
112
  // 获取焦点
113
  input.addEventListener("focus", ()=>{
114
+ div.style.left = "-999999px";
 
 
115
  });
116
  // 失去焦点
117
  input.addEventListener("blur", () => {
118
  div.remove();
119
  window.input_div = null;
120
  });
121
+ //input.focus();
122
+ //input.click();
123
  }
124
  }
125