{"action":"created","comment":{"url":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/comments/227576427","pull_request_review_id":167650842,"id":227576427,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzU3NjQyNw==","diff_hunk":"@@ -40,3 +40,65 @@ const siteContent = {\n // Example: Update the img src for the logo\n let logo = document.getElementById(\"logo-img\");\n logo.setAttribute('src', siteContent[\"nav\"][\"img-src\"])\n+\n+const selectEntireNav = document.querySelectorAll('a');\n+\n+\n+\n+for(let i = 0; i<selectEntireNav.length; i++){\n+  selectEntireNav[i].textContent = siteContent[\"nav\"][`nav-item-${i+1}`];\n+  selectEntireNav[i].style.color = \"green\";\n+}\n+\n+const newElement = document.createElement('a');\n+newElement.href = \"#\";\n+newElement.textContent = \"Banana\";\n+\n+const mainNav = document.querySelector('nav');\n+\n+mainNav.prepend(newElement);\n+\n+const newElement2 = document.createElement('a');\n+newElement2.href = \"#\";\n+newElement2.textContent = \"Horse\";\n+\n+mainNav.appendChild(newElement2);\n+\n+\n+const selectH1 = document.querySelector('h1');\n+selectH1.innerHTML = siteContent[\"cta\"][\"h1\"];\n+\n+const selectButton = document.querySelector('button');\n+selectButton.textContent = 'Get Started';\n+\n+const ctaIMG = document.getElementById(\"cta-img\");\n+ctaIMG.setAttribute('src', siteContent[\"cta\"][\"img-src\"]);\n+\n+const selectEntireTextContent = document.querySelectorAll('h4');\n+selectEntireTextContent[0].textContent = siteContent['main-content']['features-h4'];","path":"js/index.js","position":57,"original_position":57,"commit_id":"84ffca7bd2198c23d1274a0837aa1a8ddae925cf","original_commit_id":"84ffca7bd2198c23d1274a0837aa1a8ddae925cf","user":{"login":"trevorfehrman","id":32622731,"node_id":"MDQ6VXNlcjMyNjIyNzMx","avatar_url":"https://avatars1.githubusercontent.com/u/32622731?v=4","gravatar_id":"","url":"https://api.github.com/users/trevorfehrman","html_url":"https://github.com/trevorfehrman","followers_url":"https://api.github.com/users/trevorfehrman/followers","following_url":"https://api.github.com/users/trevorfehrman/following{/other_user}","gists_url":"https://api.github.com/users/trevorfehrman/gists{/gist_id}","starred_url":"https://api.github.com/users/trevorfehrman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevorfehrman/subscriptions","organizations_url":"https://api.github.com/users/trevorfehrman/orgs","repos_url":"https://api.github.com/users/trevorfehrman/repos","events_url":"https://api.github.com/users/trevorfehrman/events{/privacy}","received_events_url":"https://api.github.com/users/trevorfehrman/received_events","type":"User","site_admin":false},"body":"See some other solutions to see how this can be done with for loops or forEach.  This totally works though.","created_at":"2018-10-23T21:45:24Z","updated_at":"2018-10-23T21:45:41Z","html_url":"https://github.com/LambdaSchool/DOM-I/pull/510#discussion_r227576427","pull_request_url":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/510","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/comments/227576427"},"html":{"href":"https://github.com/LambdaSchool/DOM-I/pull/510#discussion_r227576427"},"pull_request":{"href":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/510"}}},"pull_request":{"url":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/510","id":224785652,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0Nzg1NjUy","html_url":"https://github.com/LambdaSchool/DOM-I/pull/510","diff_url":"https://github.com/LambdaSchool/DOM-I/pull/510.diff","patch_url":"https://github.com/LambdaSchool/DOM-I/pull/510.patch","issue_url":"https://api.github.com/repos/LambdaSchool/DOM-I/issues/510","number":510,"state":"open","locked":false,"title":"Stephen Bondor","user":{"login":"StephenBondor","id":43558517,"node_id":"MDQ6VXNlcjQzNTU4NTE3","avatar_url":"https://avatars2.githubusercontent.com/u/43558517?v=4","gravatar_id":"","url":"https://api.github.com/users/StephenBondor","html_url":"https://github.com/StephenBondor","followers_url":"https://api.github.com/users/StephenBondor/followers","following_url":"https://api.github.com/users/StephenBondor/following{/other_user}","gists_url":"https://api.github.com/users/StephenBondor/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBondor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBondor/subscriptions","organizations_url":"https://api.github.com/users/StephenBondor/orgs","repos_url":"https://api.github.com/users/StephenBondor/repos","events_url":"https://api.github.com/users/StephenBondor/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBondor/received_events","type":"User","site_admin":false},"body":"@trevorfehrman","created_at":"2018-10-22T19:24:08Z","updated_at":"2018-10-23T21:45:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1bcb08998fcaf7eb2eccc5d032a82f3b8adaa853","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/510/commits","review_comments_url":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/510/comments","review_comment_url":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LambdaSchool/DOM-I/issues/510/comments","statuses_url":"https://api.github.com/repos/LambdaSchool/DOM-I/statuses/84ffca7bd2198c23d1274a0837aa1a8ddae925cf","head":{"label":"StephenBondor:master","ref":"master","sha":"84ffca7bd2198c23d1274a0837aa1a8ddae925cf","user":{"login":"StephenBondor","id":43558517,"node_id":"MDQ6VXNlcjQzNTU4NTE3","avatar_url":"https://avatars2.githubusercontent.com/u/43558517?v=4","gravatar_id":"","url":"https://api.github.com/users/StephenBondor","html_url":"https://github.com/StephenBondor","followers_url":"https://api.github.com/users/StephenBondor/followers","following_url":"https://api.github.com/users/StephenBondor/following{/other_user}","gists_url":"https://api.github.com/users/StephenBondor/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBondor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBondor/subscriptions","organizations_url":"https://api.github.com/users/StephenBondor/orgs","repos_url":"https://api.github.com/users/StephenBondor/repos","events_url":"https://api.github.com/users/StephenBondor/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBondor/received_events","type":"User","site_admin":false},"repo":{"id":154201843,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQyMDE4NDM=","name":"DOM-I","full_name":"StephenBondor/DOM-I","private":false,"owner":{"login":"StephenBondor","id":43558517,"node_id":"MDQ6VXNlcjQzNTU4NTE3","avatar_url":"https://avatars2.githubusercontent.com/u/43558517?v=4","gravatar_id":"","url":"https://api.github.com/users/StephenBondor","html_url":"https://github.com/StephenBondor","followers_url":"https://api.github.com/users/StephenBondor/followers","following_url":"https://api.github.com/users/StephenBondor/following{/other_user}","gists_url":"https://api.github.com/users/StephenBondor/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBondor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBondor/subscriptions","organizations_url":"https://api.github.com/users/StephenBondor/orgs","repos_url":"https://api.github.com/users/StephenBondor/repos","events_url":"https://api.github.com/users/StephenBondor/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBondor/received_events","type":"User","site_admin":false},"html_url":"https://github.com/StephenBondor/DOM-I","description":null,"fork":true,"url":"https://api.github.com/repos/StephenBondor/DOM-I","forks_url":"https://api.github.com/repos/StephenBondor/DOM-I/forks","keys_url":"https://api.github.com/repos/StephenBondor/DOM-I/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StephenBondor/DOM-I/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StephenBondor/DOM-I/teams","hooks_url":"https://api.github.com/repos/StephenBondor/DOM-I/hooks","issue_events_url":"https://api.github.com/repos/StephenBondor/DOM-I/issues/events{/number}","events_url":"https://api.github.com/repos/StephenBondor/DOM-I/events","assignees_url":"https://api.github.com/repos/StephenBondor/DOM-I/assignees{/user}","branches_url":"https://api.github.com/repos/StephenBondor/DOM-I/branches{/branch}","tags_url":"https://api.github.com/repos/StephenBondor/DOM-I/tags","blobs_url":"https://api.github.com/repos/StephenBondor/DOM-I/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StephenBondor/DOM-I/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StephenBondor/DOM-I/git/refs{/sha}","trees_url":"https://api.github.com/repos/StephenBondor/DOM-I/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StephenBondor/DOM-I/statuses/{sha}","languages_url":"https://api.github.com/repos/StephenBondor/DOM-I/languages","stargazers_url":"https://api.github.com/repos/StephenBondor/DOM-I/stargazers","contributors_url":"https://api.github.com/repos/StephenBondor/DOM-I/contributors","subscribers_url":"https://api.github.com/repos/StephenBondor/DOM-I/subscribers","subscription_url":"https://api.github.com/repos/StephenBondor/DOM-I/subscription","commits_url":"https://api.github.com/repos/StephenBondor/DOM-I/commits{/sha}","git_commits_url":"https://api.github.com/repos/StephenBondor/DOM-I/git/commits{/sha}","comments_url":"https://api.github.com/repos/StephenBondor/DOM-I/comments{/number}","issue_comment_url":"https://api.github.com/repos/StephenBondor/DOM-I/issues/comments{/number}","contents_url":"https://api.github.com/repos/StephenBondor/DOM-I/contents/{+path}","compare_url":"https://api.github.com/repos/StephenBondor/DOM-I/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StephenBondor/DOM-I/merges","archive_url":"https://api.github.com/repos/StephenBondor/DOM-I/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StephenBondor/DOM-I/downloads","issues_url":"https://api.github.com/repos/StephenBondor/DOM-I/issues{/number}","pulls_url":"https://api.github.com/repos/StephenBondor/DOM-I/pulls{/number}","milestones_url":"https://api.github.com/repos/StephenBondor/DOM-I/milestones{/number}","notifications_url":"https://api.github.com/repos/StephenBondor/DOM-I/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StephenBondor/DOM-I/labels{/name}","releases_url":"https://api.github.com/repos/StephenBondor/DOM-I/releases{/id}","deployments_url":"https://api.github.com/repos/StephenBondor/DOM-I/deployments","created_at":"2018-10-22T19:16:50Z","updated_at":"2018-10-22T20:50:04Z","pushed_at":"2018-10-22T20:50:02Z","git_url":"git://github.com/StephenBondor/DOM-I.git","ssh_url":"git@github.com:StephenBondor/DOM-I.git","clone_url":"https://github.com/StephenBondor/DOM-I.git","svn_url":"https://github.com/StephenBondor/DOM-I","homepage":null,"size":734,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"LambdaSchool:master","ref":"master","sha":"eedfab360a6a67aaf5981b8bd8deca1ecd1cd01d","user":{"login":"LambdaSchool","id":24780114,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NzgwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"repo":{"id":122894487,"node_id":"MDEwOlJlcG9zaXRvcnkxMjI4OTQ0ODc=","name":"DOM-I","full_name":"LambdaSchool/DOM-I","private":false,"owner":{"login":"LambdaSchool","id":24780114,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NzgwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/LambdaSchool/DOM-I","description":null,"fork":false,"url":"https://api.github.com/repos/LambdaSchool/DOM-I","forks_url":"https://api.github.com/repos/LambdaSchool/DOM-I/forks","keys_url":"https://api.github.com/repos/LambdaSchool/DOM-I/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LambdaSchool/DOM-I/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LambdaSchool/DOM-I/teams","hooks_url":"https://api.github.com/repos/LambdaSchool/DOM-I/hooks","issue_events_url":"https://api.github.com/repos/LambdaSchool/DOM-I/issues/events{/number}","events_url":"https://api.github.com/repos/LambdaSchool/DOM-I/events","assignees_url":"https://api.github.com/repos/LambdaSchool/DOM-I/assignees{/user}","branches_url":"https://api.github.com/repos/LambdaSchool/DOM-I/branches{/branch}","tags_url":"https://api.github.com/repos/LambdaSchool/DOM-I/tags","blobs_url":"https://api.github.com/repos/LambdaSchool/DOM-I/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LambdaSchool/DOM-I/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LambdaSchool/DOM-I/git/refs{/sha}","trees_url":"https://api.github.com/repos/LambdaSchool/DOM-I/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LambdaSchool/DOM-I/statuses/{sha}","languages_url":"https://api.github.com/repos/LambdaSchool/DOM-I/languages","stargazers_url":"https://api.github.com/repos/LambdaSchool/DOM-I/stargazers","contributors_url":"https://api.github.com/repos/LambdaSchool/DOM-I/contributors","subscribers_url":"https://api.github.com/repos/LambdaSchool/DOM-I/subscribers","subscription_url":"https://api.github.com/repos/LambdaSchool/DOM-I/subscription","commits_url":"https://api.github.com/repos/LambdaSchool/DOM-I/commits{/sha}","git_commits_url":"https://api.github.com/repos/LambdaSchool/DOM-I/git/commits{/sha}","comments_url":"https://api.github.com/repos/LambdaSchool/DOM-I/comments{/number}","issue_comment_url":"https://api.github.com/repos/LambdaSchool/DOM-I/issues/comments{/number}","contents_url":"https://api.github.com/repos/LambdaSchool/DOM-I/contents/{+path}","compare_url":"https://api.github.com/repos/LambdaSchool/DOM-I/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LambdaSchool/DOM-I/merges","archive_url":"https://api.github.com/repos/LambdaSchool/DOM-I/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LambdaSchool/DOM-I/downloads","issues_url":"https://api.github.com/repos/LambdaSchool/DOM-I/issues{/number}","pulls_url":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls{/number}","milestones_url":"https://api.github.com/repos/LambdaSchool/DOM-I/milestones{/number}","notifications_url":"https://api.github.com/repos/LambdaSchool/DOM-I/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LambdaSchool/DOM-I/labels{/name}","releases_url":"https://api.github.com/repos/LambdaSchool/DOM-I/releases{/id}","deployments_url":"https://api.github.com/repos/LambdaSchool/DOM-I/deployments","created_at":"2018-02-26T01:11:25Z","updated_at":"2018-09-18T13:11:14Z","pushed_at":"2018-10-23T19:15:06Z","git_url":"git://github.com/LambdaSchool/DOM-I.git","ssh_url":"git@github.com:LambdaSchool/DOM-I.git","clone_url":"https://github.com/LambdaSchool/DOM-I.git","svn_url":"https://github.com/LambdaSchool/DOM-I","homepage":null,"size":731,"stargazers_count":3,"watchers_count":3,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":603,"mirror_url":null,"archived":false,"open_issues_count":394,"license":null,"forks":603,"open_issues":394,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/510"},"html":{"href":"https://github.com/LambdaSchool/DOM-I/pull/510"},"issue":{"href":"https://api.github.com/repos/LambdaSchool/DOM-I/issues/510"},"comments":{"href":"https://api.github.com/repos/LambdaSchool/DOM-I/issues/510/comments"},"review_comments":{"href":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/510/comments"},"review_comment":{"href":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/510/commits"},"statuses":{"href":"https://api.github.com/repos/LambdaSchool/DOM-I/statuses/84ffca7bd2198c23d1274a0837aa1a8ddae925cf"}},"author_association":"NONE"}}
{"actor":{"display_login":"trevorfehrman"}}