{"action":"created","comment":{"url":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/comments/227573083","pull_request_review_id":167646733,"id":227573083,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzU3MzA4Mw==","diff_hunk":"@@ -36,7 +36,86 @@ const siteContent = {\n     \"copyright\" : \"Copyright Great Idea! 2018\"\n   },\n };\n-\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+// Step 1: Point data into elements\n+let navItems = Array.from(document.querySelectorAll('nav a'));\n+let h1 = document.querySelector('h1');\n+let button = document.querySelector('button');\n+let headerImage = document.querySelector('#cta-img');\n+let h4Tags = Array.from(document.querySelectorAll('h4'));\n+let textContentTags = Array.from(document.querySelectorAll('.text-content p'));\n+let featuresH4 = h4Tags[0];\n+let featuresContent = textContentTags[0];\n+let aboutH4 = h4Tags[1];\n+let aboutContent = textContentTags[1];\n+let middleImage = document.querySelector('#middle-img');\n+let servicesH4 = h4Tags[2];\n+let servicesContent = textContentTags[2];\n+let productH4 = h4Tags[3];\n+let productContent = textContentTags[3];\n+let visionH4 = h4Tags[4];\n+let visionContent = textContentTags[4];\n+let contactH4 = h4Tags[5];\n+let contactPTags = Array.from(document.querySelectorAll('.contact p'));\n+let address = contactPTags[0];\n+let phone = contactPTags[1];\n+let email = contactPTags[2];\n+let copyright = document.querySelector('footer p');\n+\n+\n+// Step 2: Update HTML with JSON \n+console.log(h4Tags.length);\n+for (let i = 0; i < navItems.length; i++) {","path":"js/index.js","position":37,"original_position":37,"commit_id":"805979f17832a4e572ee459cb35df9f8c7adf099","original_commit_id":"805979f17832a4e572ee459cb35df9f8c7adf099","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":"Yeah this works great.  You could have also used forEach but that's pretty much the same thing.","created_at":"2018-10-23T21:33:14Z","updated_at":"2018-10-23T21:34:26Z","html_url":"https://github.com/LambdaSchool/DOM-I/pull/529#discussion_r227573083","pull_request_url":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/529","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/comments/227573083"},"html":{"href":"https://github.com/LambdaSchool/DOM-I/pull/529#discussion_r227573083"},"pull_request":{"href":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/529"}}},"pull_request":{"url":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/529","id":224816884,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0ODE2ODg0","html_url":"https://github.com/LambdaSchool/DOM-I/pull/529","diff_url":"https://github.com/LambdaSchool/DOM-I/pull/529.diff","patch_url":"https://github.com/LambdaSchool/DOM-I/pull/529.patch","issue_url":"https://api.github.com/repos/LambdaSchool/DOM-I/issues/529","number":529,"state":"open","locked":false,"title":"Jarrad Miller","user":{"login":"jm020801","id":43685361,"node_id":"MDQ6VXNlcjQzNjg1MzYx","avatar_url":"https://avatars1.githubusercontent.com/u/43685361?v=4","gravatar_id":"","url":"https://api.github.com/users/jm020801","html_url":"https://github.com/jm020801","followers_url":"https://api.github.com/users/jm020801/followers","following_url":"https://api.github.com/users/jm020801/following{/other_user}","gists_url":"https://api.github.com/users/jm020801/gists{/gist_id}","starred_url":"https://api.github.com/users/jm020801/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jm020801/subscriptions","organizations_url":"https://api.github.com/users/jm020801/orgs","repos_url":"https://api.github.com/users/jm020801/repos","events_url":"https://api.github.com/users/jm020801/events{/privacy}","received_events_url":"https://api.github.com/users/jm020801/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-22T21:15:58Z","updated_at":"2018-10-23T21:34:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c46e075bffb670b23868bc32a0e049a44656252","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/529/commits","review_comments_url":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/529/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/529/comments","statuses_url":"https://api.github.com/repos/LambdaSchool/DOM-I/statuses/805979f17832a4e572ee459cb35df9f8c7adf099","head":{"label":"jm020801:master","ref":"master","sha":"805979f17832a4e572ee459cb35df9f8c7adf099","user":{"login":"jm020801","id":43685361,"node_id":"MDQ6VXNlcjQzNjg1MzYx","avatar_url":"https://avatars1.githubusercontent.com/u/43685361?v=4","gravatar_id":"","url":"https://api.github.com/users/jm020801","html_url":"https://github.com/jm020801","followers_url":"https://api.github.com/users/jm020801/followers","following_url":"https://api.github.com/users/jm020801/following{/other_user}","gists_url":"https://api.github.com/users/jm020801/gists{/gist_id}","starred_url":"https://api.github.com/users/jm020801/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jm020801/subscriptions","organizations_url":"https://api.github.com/users/jm020801/orgs","repos_url":"https://api.github.com/users/jm020801/repos","events_url":"https://api.github.com/users/jm020801/events{/privacy}","received_events_url":"https://api.github.com/users/jm020801/received_events","type":"User","site_admin":false},"repo":{"id":154213767,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQyMTM3Njc=","name":"DOM-I","full_name":"jm020801/DOM-I","private":false,"owner":{"login":"jm020801","id":43685361,"node_id":"MDQ6VXNlcjQzNjg1MzYx","avatar_url":"https://avatars1.githubusercontent.com/u/43685361?v=4","gravatar_id":"","url":"https://api.github.com/users/jm020801","html_url":"https://github.com/jm020801","followers_url":"https://api.github.com/users/jm020801/followers","following_url":"https://api.github.com/users/jm020801/following{/other_user}","gists_url":"https://api.github.com/users/jm020801/gists{/gist_id}","starred_url":"https://api.github.com/users/jm020801/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jm020801/subscriptions","organizations_url":"https://api.github.com/users/jm020801/orgs","repos_url":"https://api.github.com/users/jm020801/repos","events_url":"https://api.github.com/users/jm020801/events{/privacy}","received_events_url":"https://api.github.com/users/jm020801/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jm020801/DOM-I","description":null,"fork":true,"url":"https://api.github.com/repos/jm020801/DOM-I","forks_url":"https://api.github.com/repos/jm020801/DOM-I/forks","keys_url":"https://api.github.com/repos/jm020801/DOM-I/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jm020801/DOM-I/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jm020801/DOM-I/teams","hooks_url":"https://api.github.com/repos/jm020801/DOM-I/hooks","issue_events_url":"https://api.github.com/repos/jm020801/DOM-I/issues/events{/number}","events_url":"https://api.github.com/repos/jm020801/DOM-I/events","assignees_url":"https://api.github.com/repos/jm020801/DOM-I/assignees{/user}","branches_url":"https://api.github.com/repos/jm020801/DOM-I/branches{/branch}","tags_url":"https://api.github.com/repos/jm020801/DOM-I/tags","blobs_url":"https://api.github.com/repos/jm020801/DOM-I/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jm020801/DOM-I/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jm020801/DOM-I/git/refs{/sha}","trees_url":"https://api.github.com/repos/jm020801/DOM-I/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jm020801/DOM-I/statuses/{sha}","languages_url":"https://api.github.com/repos/jm020801/DOM-I/languages","stargazers_url":"https://api.github.com/repos/jm020801/DOM-I/stargazers","contributors_url":"https://api.github.com/repos/jm020801/DOM-I/contributors","subscribers_url":"https://api.github.com/repos/jm020801/DOM-I/subscribers","subscription_url":"https://api.github.com/repos/jm020801/DOM-I/subscription","commits_url":"https://api.github.com/repos/jm020801/DOM-I/commits{/sha}","git_commits_url":"https://api.github.com/repos/jm020801/DOM-I/git/commits{/sha}","comments_url":"https://api.github.com/repos/jm020801/DOM-I/comments{/number}","issue_comment_url":"https://api.github.com/repos/jm020801/DOM-I/issues/comments{/number}","contents_url":"https://api.github.com/repos/jm020801/DOM-I/contents/{+path}","compare_url":"https://api.github.com/repos/jm020801/DOM-I/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jm020801/DOM-I/merges","archive_url":"https://api.github.com/repos/jm020801/DOM-I/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jm020801/DOM-I/downloads","issues_url":"https://api.github.com/repos/jm020801/DOM-I/issues{/number}","pulls_url":"https://api.github.com/repos/jm020801/DOM-I/pulls{/number}","milestones_url":"https://api.github.com/repos/jm020801/DOM-I/milestones{/number}","notifications_url":"https://api.github.com/repos/jm020801/DOM-I/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jm020801/DOM-I/labels{/name}","releases_url":"https://api.github.com/repos/jm020801/DOM-I/releases{/id}","deployments_url":"https://api.github.com/repos/jm020801/DOM-I/deployments","created_at":"2018-10-22T20:40:12Z","updated_at":"2018-10-22T21:48:25Z","pushed_at":"2018-10-22T21:48:24Z","git_url":"git://github.com/jm020801/DOM-I.git","ssh_url":"git@github.com:jm020801/DOM-I.git","clone_url":"https://github.com/jm020801/DOM-I.git","svn_url":"https://github.com/jm020801/DOM-I","homepage":null,"size":733,"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/529"},"html":{"href":"https://github.com/LambdaSchool/DOM-I/pull/529"},"issue":{"href":"https://api.github.com/repos/LambdaSchool/DOM-I/issues/529"},"comments":{"href":"https://api.github.com/repos/LambdaSchool/DOM-I/issues/529/comments"},"review_comments":{"href":"https://api.github.com/repos/LambdaSchool/DOM-I/pulls/529/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/529/commits"},"statuses":{"href":"https://api.github.com/repos/LambdaSchool/DOM-I/statuses/805979f17832a4e572ee459cb35df9f8c7adf099"}},"author_association":"NONE"}}
{"actor":{"display_login":"trevorfehrman"}}