diff --git a/week-7/js/fix-the-page.js b/week-7/js/fix-the-page.js index 4a2c7be..826aa3b 100755 --- a/week-7/js/fix-the-page.js +++ b/week-7/js/fix-the-page.js @@ -4,10 +4,11 @@ */ // 1) Add CSS Properties to the body tag -document.getElementById("css-zen-garden").style.fontSize = "10pt/14pt"; -document.getElementById("css-zen-garden").style.backgroundColor = "#69f"; -document.getElementById("css-zen-garden").style.color = "#000033"; -document.getElementById("css-zen-garden").style.margin = "0px"; +let body = document.getElementById("css-zen-garden") +body.style.fontSize = "10pt/14pt"; +body.style.backgroundColor = "#69f"; +body.style.color = "#000033"; +body.style.margin = "0px"; // 2) Add the .page-wrapper class document.querySelector("div").classList.add("page-wrapper"); @@ -47,6 +48,18 @@ let resources = [ }, ]; -//document.getElementById("resourceList") +for (i = 0; i < resources.length; i++ ) { + document.getElementById("resourceList").innerHTML += "
  • " + resources[i].innerHTML + "
  • "; +} + + + + + + + + + +