MCPcopy
hub / github.com/arcxingye/EatKano / updatePanel

Function updatePanel

static/index.js:243–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241 }
242
243 function updatePanel() {
244 if (mode === MODE_NORMAL) {
245 if (!_gameOver) {
246 GameTimeLayer.innerHTML = createTimeText(_gameTimeNum);
247 }
248 } else if (mode === MODE_ENDLESS) {
249 let cps = getCPS();
250 let text = (cps === 0 ? I18N['calculating'] : cps.toFixed(2));
251 GameTimeLayer.innerHTML = `CPS:${text}`;
252 } else {
253 GameTimeLayer.innerHTML = `SCORE:${_gameScore}`;
254 }
255 }
256 //使重试按钮获得焦点
257 function foucusOnReplay(){
258 $('#replay').focus()

Callers 6

index.jsFile · 0.85
gameRestartFunction · 0.85
timerFunction · 0.85
gameOverFunction · 0.85
gameTapEventFunction · 0.85
closeWelcomeLayerFunction · 0.85

Calls 2

createTimeTextFunction · 0.85
getCPSFunction · 0.85

Tested by

no test coverage detected