about summary refs log tree commit diff
path: root/usth/ICT3.2/prac/1/task11.html
diff options
context:
space:
mode:
Diffstat (limited to 'usth/ICT3.2/prac/1/task11.html')
-rw-r--r--usth/ICT3.2/prac/1/task11.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/usth/ICT3.2/prac/1/task11.html b/usth/ICT3.2/prac/1/task11.html
new file mode 100644
index 0000000..a169dca
--- /dev/null
+++ b/usth/ICT3.2/prac/1/task11.html
@@ -0,0 +1,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>