loading
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<html>
<body>
  <style>
    h1 {
      color:Saddlebrown;
    }
    </style>
  <script>
    var kekszaehler = 0;
    function keksgeklickt() {
      console.log(`Keksfunktion`);
      kekszaehler = kekszaehler + 1;
      document.getElementById(`ausgabe`).innerHTML = kekszaehler;
      if (kekszaehler == 10) {document.getElementById(`rang`).innerHTML = "Amateur";
      }
      if (kekszaehler == 100000) {document.getElementById(`rang`).innerHTML = "hobbyloser";
      }
      if (kekszaehler == 50) {document.getElementById(`rang`).innerHTML = "ok";
      }
      if (kekszaehler == 100) {document.getElementById(`rang`).innerHTML = "schon ganz gut";
      }
      if (kekszaehler == 999999999999999) {document.getElementById(`rang`).innerHTML = "hacker";
      }
      if (kekszaehler == 200) {document.getElementById(`rang`).innerHTML = "sehr gut";
      }
      if (kekszaehler == 500) {document.getElementById(`rang`).innerHTML = "profi";
      }
      if (kekszaehler == 1000) {document.getElementById(`rang`).innerHTML = "bester";
    }
    if (kekszaehler == 5000) {document.getElementById(`rang`).innerHTML = "perfekt";
    }
    if (kekszaehler == 10000) {document.getElementById(`rang`).innerHTML = "mehralsperfekt";
    }
    }
    </script>
  <h1>cookie clicker</h1>
  <p>press the cookie</p>
  <img src="keks.png" width="250px" onclick="keksgeklickt()">
  <p id="ausgabe">0</p>
  <p id="rang">Noob</p>
</body>
</html>
result
console