Skip to content

Commit

Permalink
modified wk7
Browse files Browse the repository at this point in the history
  • Loading branch information
maa17019 committed Mar 8, 2021
1 parent 2df0afb commit 36fc564
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions week-7/js/fix-the-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -47,6 +48,18 @@ let resources = [
},
];

//document.getElementById("resourceList")
for (i = 0; i < resources.length; i++ ) {
document.getElementById("resourceList").innerHTML += "<li><a href=" + resources[i].href + "title =" + resources[i].title + ">" + resources[i].innerHTML + "</a></li>";
}












0 comments on commit 36fc564

Please sign in to comment.