Skip to content

Commit

Permalink
Updates to example code
Browse files Browse the repository at this point in the history
  • Loading branch information
BigKnell committed Apr 23, 2018
1 parent fb22e9d commit 3bf8d72
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const siteContent = {
"nav-item-3": "Vision",
"nav-item-4": "Features",
"nav-item-5": "Contact",
"imgsrc": "img/logo.png"
"img-src": "img/logo.png"
},
"cta": {
"h1": "DOM Is Awesome",
Expand Down Expand Up @@ -36,8 +36,6 @@ const siteContent = {
},
};


//?

let mainContent = document.querySelector(".main-content");
mainContent.innerHTML = siteContent["main-content"].features-h4;
// Example: Update the img src for the logo
let logo = document.getElementById("logo-img");
logo.setAttribute('src', siteContent["nav"]["img-src"])

0 comments on commit 3bf8d72

Please sign in to comment.