about summary refs log tree commit diff
path: root/usth/ICT3.2/prac/1/task11.html
blob: a169dcaae4043f74894604074f1c99f960c4363c (plain) (blame)
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
<!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel='stylesheet' type='text/css' href='task11.css'>
<script src='task11.js'></script>

<body>
  <header>
    <h1>Banner<h1>
  </header>

  <section>
    <nav>
      <p id=cat class=box>Cats</p>
      <p id=communist class=box>Communism</p>
      <p id=dog class=box>Dogs</p>
      <p id=about class=box>About</p>
    </nav>

    <article id=foobar></article>
  </section>

  <footer>Copyright</footer>

  <script>
    for (id of ['cat', 'communist', 'dog', 'about']) {
        document.getElementById(id).onclick = cb(id);
    }
  </script>

</body>
</html>