File size: 1,054 Bytes
f6221a9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
      <html>
        <head>
          
          <style>
            body {
  font-family: "Arial", sans-serif;
  background-color:  white;
  margin: 0;
  padding: 24px;
}

* {
  box-sizing: border-box;
  }

  .container {
    max-width: 30rem;
    margin: auto;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid lightgray;
    text-align: center;
  }
  .container h1 {
    margin: 0 0 24px;
  }

  #button {
    background-color: black;
    color: white;
    border-radius: 100px;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
  }
          </style>
        </head>
        <body>
          <div class="container">
    <h1>
        Space Developer
    </h1>
<button id="button">
    Button clicked: 0
    </button>
</div>

          
          <script>
            let count = 0;
const button = document.getElementById("button");

button.addEventListener("click", (e) => {
    count = count + 1;
    button.innerHTML = `Button clicked: ${count}`
});
          </script>
        </body>
      </html>