Skip to content

Commit

Permalink
mistakes fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Kat Fries authored and Kat Fries committed Sep 17, 2018
1 parent b604b8c commit 2dffd32
Showing 1 changed file with 40 additions and 2 deletions.
42 changes: 40 additions & 2 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,47 @@ footerP.innerText = siteContent.footer.copyright;


let nav = document.querySelector("header nav");
nav.append("Blog");
nav.prepend("Portfolio");
// nav.prepend("Portfolio");

let newA = document.createElement("a");
nav.prepend(newA);
// document.body.container.header.nav.appendChild(newA);
newA.innerText = "Portfolio";
newA.href = "#";
newA.style.color = 'green';

let myHeader = document.querySelector("header nav");
let newA2 = document.createElement("a");
myHeader.appendChild(newA2);
newA2.innerText = "Blog";
newA2.href = "#";
newA2.style.color = 'green';
// nav.appendChild("Blog");

// var p = document.createElement("p");
// document.body.appendChild(p);


aTags.forEach(tag => tag.style.color = 'green');
nav.style.color = 'green';

{/* <button onclick="myFunction()">Click Me</button>
<div id="myDIV">
This is my DIV element.
</div>
Step 2) Add JavaScript:
Example
function myFunction() {
var x = document.getElementById("myDIV");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
} */}

// function buttonFunc () {
// ctaTextButton.style.["background-color"] === "black" ?
// }

0 comments on commit 2dffd32

Please sign in to comment.