Skip to content

Commit

Permalink
tried changing nav bar using for loop and for each
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgipson committed Feb 14, 2019
1 parent 65ce107 commit cfe069a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,12 @@ email.innerHTML = "[email protected]";
let footer = document.getElementsByTagName('p')[8];
footer.innerHTML = "Copyright Great Idea! 2018"

// let aTags = document.querySelectorAll("a");
let aTags = document.querySelectorAll("a");
// let i;
// for (i = 0; i < aTags.length; i++) {
// aTags[i].style.color = "red";
// }
// }

aTags.forEach(element => {
element.style.color = 'blue';
});

0 comments on commit cfe069a

Please sign in to comment.