PageSourceSearch

https://www.steiermark.com/ab/input.js

js steiermark.com collected 2026-09-24 09:08:49 UTC 819 bytes, 40 lines download raw bytes

1const heldKeys = {};
2
3const addHoldKeyListener = keyname => {
4    addEventListener('keydown', ({ code }) => {
5        if (code === keyname) {
6            heldKeys[keyname] = true;
7        }
8    });
9    addEventListener('keyup', ({ code }) => {
10        if (code === keyname) {
11            heldKeys[keyname] = false;
12        }         
13    });
14};
15
16const mouseClickHandle = () => {
17
18    if (gameOver){
19      gameOverReset();
20    }
21    
22    else if(ballplayerconnect){
23          
24
25          if(heldKeys['ArrowLeft'] == true){
26                balls[0].velocityX = INITIAL_BALL_XV ;
27              }
28              else if(heldKeys['ArrowRight'] == true){
29                balls[0].velocityX = -INITIAL_BALL_XV ;
30              }
31
32          ballplayerconnect = false;
33    }  
34
35    if(cannon){
36      fireBullets = true;
37    }
38}
39
40

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.