repl.it
@austinsanims/

cool points dot com

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • coolpoint.png
  • script.js
  • shagger.jpeg
  • style.css
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>repl.it</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <a id="coolpoint" onclick="onCoolClicktm();"><img src="coolpoint.png" align="center" style="display:block;margin-left: auto;margin-right: auto;"></a>
    <h1 id="header" align="center">CLICK THE COOL POINT FOR FREE COOL POINT !</h1>
    <script>
      function onCoolClicktm() {
        var coolpoint = document.getElementById('coolpoint');
        var header = document.getElementById('header');
        header.innerHTML = "Z O I N K S";
        coolpoint.src = "shagger.jpeg"
      }
    </script>
  </body>
</html>
result
console