diff --git a/week-3/index.html b/week-3/index.html new file mode 100644 index 0000000..417e617 --- /dev/null +++ b/week-3/index.html @@ -0,0 +1,28 @@ + + + + + + + Shopping List + + + + + + + + + + + + + + + + + + + diff --git a/week-3/js/scripts.js b/week-3/js/scripts.js new file mode 100644 index 0000000..7c13cb0 --- /dev/null +++ b/week-3/js/scripts.js @@ -0,0 +1,15 @@ + + function addItem() { + if (document.getElementById("itemEntry").value != '') { + var node = document.createElement("LI"); + node.id = 'giveCheckBox'; + var liText = document.getElementById("itemEntry").value; + var textnode = document.createTextNode(liText); + node.appendChild(textnode); + document.getElementById("myList").appendChild(node); + var cbNode = document.createElement("INPUT"); + cbNode.setAttribute("type", "checkbox"); + document.getElementById("itemEntry").value = ''; + } + +} diff --git a/week-4/css/style.css b/week-4/css/style.css new file mode 100644 index 0000000..e69de29 diff --git a/week-4/index.html b/week-4/index.html new file mode 100644 index 0000000..676cc1e --- /dev/null +++ b/week-4/index.html @@ -0,0 +1,22 @@ + + + + + + + Color Picker + + + + + + + +
+ + + +
+ + + \ No newline at end of file diff --git a/week-4/js/script.js b/week-4/js/script.js new file mode 100644 index 0000000..9bceda4 --- /dev/null +++ b/week-4/js/script.js @@ -0,0 +1,6 @@ +var bgColor; + +function changeColor() { + let bgColor = document.getElementById('bgColorPicker').value; + document.body.style.backgroundColor = bgColor; +} \ No newline at end of file