diff --git a/DOM.js b/DOM.js
new file mode 100644
index 0000000..cbe5529
--- /dev/null
+++ b/DOM.js
@@ -0,0 +1,33 @@
+function addText() {
+ document.getElementById("para1").textContent = "We are coders!";
+}
+
+function changeText() {
+ document.getElementById("para1").innerHTML = "Developers for life!";
+ }
+
+function addImage() {
+ let image = new Image(200, 200);
+ image.src = "tech.jpg";
+ document.getElementById("para2").appendChild(image);
+ }
+
+function changeColor() {
+ document.getElementById("para1").style.color = "brown";
+}
+
+function fontSize() {
+ document.getElementById("para1").style.fontSize = "40px";
+}
+
+function hideImage() {
+ document.getElementById("para2").textContent = "";
+}
+
+
+
+
+
+
+
+
diff --git a/TOC.html b/TOC.html
new file mode 100644
index 0000000..4c8b218
--- /dev/null
+++ b/TOC.html
@@ -0,0 +1,30 @@
+
+
+
+
+
+ Table of Contents
+
+
+
+
+
Table of Contents
+
+
+
+
Fruits
+ Red Fruits
+ Apple
+ Raspberry
+ Orange Fruits
+ Orange
+ Tangerine
+ Vegetables
+ Vegetables Which Are Actually Fruits
+ Tomato
+ Eggplant
+
+
+
+
+
\ No newline at end of file
diff --git a/about.html b/about.html
new file mode 100644
index 0000000..8e22267
--- /dev/null
+++ b/about.html
@@ -0,0 +1,26 @@
+
+
+
+
+ About me
+
+
+
+
+
+
+
+ About Me
+
+
+ - Nickname: hinz
+ - Favorites: music, pizza, The Office
+ - Hometown: Bear
+ - Random Fact: Brown is my favorite color.
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/js-dom.html b/js-dom.html
new file mode 100644
index 0000000..cdd4eef
--- /dev/null
+++ b/js-dom.html
@@ -0,0 +1,38 @@
+
+
+
+ DOM lab
+
+
+
+
+
+
+
+ Developers for life!
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/main.js b/main.js
new file mode 100644
index 0000000..ebc5047
--- /dev/null
+++ b/main.js
@@ -0,0 +1,8 @@
+
+ function changeFont() {
+ document.getElementById("font").style.fontFamily = "Arial,sans-serif";
+ }
+
+ function changeColor() {
+ document.getElementById("list").style.color = "green";
+ }
\ No newline at end of file
diff --git a/toc.js b/toc.js
new file mode 100644
index 0000000..5fcc244
--- /dev/null
+++ b/toc.js
@@ -0,0 +1,49 @@
+var c = function() {
+ return({
+ log: function(msg) {
+ consoleDiv = document.getElementById('console');
+ para = document.createElement('p');
+ text = document.createTextNode(msg);
+ para.appendChild(text);
+ consoleDiv.appendChild(para);
+ }
+ });
+}();
+
+window.onload = function () {
+ var toc = "";
+ var level = 0;
+ var maxLevel = 3;
+
+ document.getElementById("contents").innerHTML =
+ document.getElementById("contents").innerHTML.replace(
+ /([^<]+)<\/h([\d])>/gi,
+ function (str, openLevel, titleText, closeLevel) {
+ if (openLevel != closeLevel) {
+ c.log(openLevel)
+ return str + ' - ' + openLevel;
+ }
+
+ if (openLevel > level) {
+ toc += (new Array(openLevel - level + 1)).join("");
+ } else if (openLevel < level) {
+ toc += (new Array(level - openLevel + 1)).join("
");
+ }
+
+ level = parseInt(openLevel);
+
+ var anchor = titleText.replace(/ /g, "_");
+ toc += "" + titleText
+ + "";
+
+ return ""
+ + titleText + "";
+ }
+ );
+
+ if (level) {
+ toc += (new Array(level + 1)).join("");
+ }
+
+ document.getElementById("toc").innerHTML += toc;
+};
\ No newline at end of file