{"action":"created","comment":{"url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/pulls/comments/40172095","id":40172095,"diff_hunk":"@@ -39,12 +90,36 @@\n //        - add the class of hide to the h3\n //        - EXTRA!  - If there are two paragraphs of text, hide the second one\n // --------------------------------------------------------------------------------\n-\n-\n+   var allarticles = document.getElementsByTagName(\"article\");\n+   var paragraphs;\n+   var x = 1;\n+\n+   for (i = 0; i < allarticles.length; i++) {\n+       console.log(allarticles[i]);\n+       allh3[i].className = \"hide\"; \n+       console.log(allh3[i].className);\n+       paragrah = allarticles[i].getElementsByTagName(\"p\");\n+\n+       if ( x < paragrah.length) {\n+           paragrah[1].style.visibility = \"hidden\";","path":"js/script.js","position":101,"original_position":101,"commit_id":"8f7ef8372e0ab962366eb2c57e965c8a37a52eda","original_commit_id":"8f7ef8372e0ab962366eb2c57e965c8a37a52eda","user":{"login":"mbMosman","id":5143491,"avatar_url":"https://avatars.githubusercontent.com/u/5143491?v=3","gravatar_id":"","url":"https://api.github.com/users/mbMosman","html_url":"https://github.com/mbMosman","followers_url":"https://api.github.com/users/mbMosman/followers","following_url":"https://api.github.com/users/mbMosman/following{/other_user}","gists_url":"https://api.github.com/users/mbMosman/gists{/gist_id}","starred_url":"https://api.github.com/users/mbMosman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbMosman/subscriptions","organizations_url":"https://api.github.com/users/mbMosman/orgs","repos_url":"https://api.github.com/users/mbMosman/repos","events_url":"https://api.github.com/users/mbMosman/events{/privacy}","received_events_url":"https://api.github.com/users/mbMosman/received_events","type":"User","site_admin":false},"body":"This works, but using the style \"hide\" from the CSS file (or setting the display: none) would remove the empty whitespace on the page too.  Not a big deal for this assignment, but showing/hiding is a common task, and usually we don't want the empty space left on the page.","created_at":"2015-09-23T05:33:12Z","updated_at":"2015-09-23T05:33:12Z","html_url":"https://github.com/htc-ccis2591/exploring-dom/pull/1#discussion_r40172095","pull_request_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/htc-ccis2591/exploring-dom/pulls/comments/40172095"},"html":{"href":"https://github.com/htc-ccis2591/exploring-dom/pull/1#discussion_r40172095"},"pull_request":{"href":"https://api.github.com/repos/htc-ccis2591/exploring-dom/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/pulls/1","id":44880849,"html_url":"https://github.com/htc-ccis2591/exploring-dom/pull/1","diff_url":"https://github.com/htc-ccis2591/exploring-dom/pull/1.diff","patch_url":"https://github.com/htc-ccis2591/exploring-dom/pull/1.patch","issue_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/issues/1","number":1,"state":"open","locked":false,"title":"Wrote Javascript As instructed by the comments","user":{"login":"JoeFranks1993","id":13989082,"avatar_url":"https://avatars.githubusercontent.com/u/13989082?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeFranks1993","html_url":"https://github.com/JoeFranks1993","followers_url":"https://api.github.com/users/JoeFranks1993/followers","following_url":"https://api.github.com/users/JoeFranks1993/following{/other_user}","gists_url":"https://api.github.com/users/JoeFranks1993/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeFranks1993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeFranks1993/subscriptions","organizations_url":"https://api.github.com/users/JoeFranks1993/orgs","repos_url":"https://api.github.com/users/JoeFranks1993/repos","events_url":"https://api.github.com/users/JoeFranks1993/events{/privacy}","received_events_url":"https://api.github.com/users/JoeFranks1993/received_events","type":"User","site_admin":false},"body":"Wrote Javascript As instructed by the comments","created_at":"2015-09-13T21:07:16Z","updated_at":"2015-09-23T05:33:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"54b38c737a5e13784218f31a96486933fff7300b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/pulls/1/commits","review_comments_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/pulls/1/comments","review_comment_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/issues/1/comments","statuses_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/statuses/8f7ef8372e0ab962366eb2c57e965c8a37a52eda","head":{"label":"JoeFranks1993:gh-pages","ref":"gh-pages","sha":"8f7ef8372e0ab962366eb2c57e965c8a37a52eda","user":{"login":"JoeFranks1993","id":13989082,"avatar_url":"https://avatars.githubusercontent.com/u/13989082?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeFranks1993","html_url":"https://github.com/JoeFranks1993","followers_url":"https://api.github.com/users/JoeFranks1993/followers","following_url":"https://api.github.com/users/JoeFranks1993/following{/other_user}","gists_url":"https://api.github.com/users/JoeFranks1993/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeFranks1993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeFranks1993/subscriptions","organizations_url":"https://api.github.com/users/JoeFranks1993/orgs","repos_url":"https://api.github.com/users/JoeFranks1993/repos","events_url":"https://api.github.com/users/JoeFranks1993/events{/privacy}","received_events_url":"https://api.github.com/users/JoeFranks1993/received_events","type":"User","site_admin":false},"repo":{"id":42338969,"name":"exploring-dom","full_name":"JoeFranks1993/exploring-dom","owner":{"login":"JoeFranks1993","id":13989082,"avatar_url":"https://avatars.githubusercontent.com/u/13989082?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeFranks1993","html_url":"https://github.com/JoeFranks1993","followers_url":"https://api.github.com/users/JoeFranks1993/followers","following_url":"https://api.github.com/users/JoeFranks1993/following{/other_user}","gists_url":"https://api.github.com/users/JoeFranks1993/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeFranks1993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeFranks1993/subscriptions","organizations_url":"https://api.github.com/users/JoeFranks1993/orgs","repos_url":"https://api.github.com/users/JoeFranks1993/repos","events_url":"https://api.github.com/users/JoeFranks1993/events{/privacy}","received_events_url":"https://api.github.com/users/JoeFranks1993/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JoeFranks1993/exploring-dom","description":"Exploring DOM Assignment","fork":true,"url":"https://api.github.com/repos/JoeFranks1993/exploring-dom","forks_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/forks","keys_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/teams","hooks_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/hooks","issue_events_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/issues/events{/number}","events_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/events","assignees_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/assignees{/user}","branches_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/branches{/branch}","tags_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/tags","blobs_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/git/refs{/sha}","trees_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/statuses/{sha}","languages_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/languages","stargazers_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/stargazers","contributors_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/contributors","subscribers_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/subscribers","subscription_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/subscription","commits_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/commits{/sha}","git_commits_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/git/commits{/sha}","comments_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/comments{/number}","issue_comment_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/issues/comments{/number}","contents_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/contents/{+path}","compare_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/merges","archive_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/downloads","issues_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/issues{/number}","pulls_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/pulls{/number}","milestones_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/milestones{/number}","notifications_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/labels{/name}","releases_url":"https://api.github.com/repos/JoeFranks1993/exploring-dom/releases{/id}","created_at":"2015-09-12T00:50:40Z","updated_at":"2015-09-12T00:50:42Z","pushed_at":"2015-09-13T21:07:15Z","git_url":"git://github.com/JoeFranks1993/exploring-dom.git","ssh_url":"git@github.com:JoeFranks1993/exploring-dom.git","clone_url":"https://github.com/JoeFranks1993/exploring-dom.git","svn_url":"https://github.com/JoeFranks1993/exploring-dom","homepage":null,"size":324,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"htc-ccis2591:gh-pages","ref":"gh-pages","sha":"93a4fa6f33aa5e737095cb2af1584a1bc94d667e","user":{"login":"htc-ccis2591","id":12668622,"avatar_url":"https://avatars.githubusercontent.com/u/12668622?v=3","gravatar_id":"","url":"https://api.github.com/users/htc-ccis2591","html_url":"https://github.com/htc-ccis2591","followers_url":"https://api.github.com/users/htc-ccis2591/followers","following_url":"https://api.github.com/users/htc-ccis2591/following{/other_user}","gists_url":"https://api.github.com/users/htc-ccis2591/gists{/gist_id}","starred_url":"https://api.github.com/users/htc-ccis2591/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htc-ccis2591/subscriptions","organizations_url":"https://api.github.com/users/htc-ccis2591/orgs","repos_url":"https://api.github.com/users/htc-ccis2591/repos","events_url":"https://api.github.com/users/htc-ccis2591/events{/privacy}","received_events_url":"https://api.github.com/users/htc-ccis2591/received_events","type":"Organization","site_admin":false},"repo":{"id":42208439,"name":"exploring-dom","full_name":"htc-ccis2591/exploring-dom","owner":{"login":"htc-ccis2591","id":12668622,"avatar_url":"https://avatars.githubusercontent.com/u/12668622?v=3","gravatar_id":"","url":"https://api.github.com/users/htc-ccis2591","html_url":"https://github.com/htc-ccis2591","followers_url":"https://api.github.com/users/htc-ccis2591/followers","following_url":"https://api.github.com/users/htc-ccis2591/following{/other_user}","gists_url":"https://api.github.com/users/htc-ccis2591/gists{/gist_id}","starred_url":"https://api.github.com/users/htc-ccis2591/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htc-ccis2591/subscriptions","organizations_url":"https://api.github.com/users/htc-ccis2591/orgs","repos_url":"https://api.github.com/users/htc-ccis2591/repos","events_url":"https://api.github.com/users/htc-ccis2591/events{/privacy}","received_events_url":"https://api.github.com/users/htc-ccis2591/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htc-ccis2591/exploring-dom","description":"Exploring DOM Assignment","fork":false,"url":"https://api.github.com/repos/htc-ccis2591/exploring-dom","forks_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/forks","keys_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/teams","hooks_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/hooks","issue_events_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/issues/events{/number}","events_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/events","assignees_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/assignees{/user}","branches_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/branches{/branch}","tags_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/tags","blobs_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/git/refs{/sha}","trees_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/statuses/{sha}","languages_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/languages","stargazers_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/stargazers","contributors_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/contributors","subscribers_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/subscribers","subscription_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/subscription","commits_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/commits{/sha}","git_commits_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/git/commits{/sha}","comments_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/comments{/number}","issue_comment_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/issues/comments{/number}","contents_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/contents/{+path}","compare_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/merges","archive_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/downloads","issues_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/issues{/number}","pulls_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/pulls{/number}","milestones_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/milestones{/number}","notifications_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/labels{/name}","releases_url":"https://api.github.com/repos/htc-ccis2591/exploring-dom/releases{/id}","created_at":"2015-09-09T22:35:03Z","updated_at":"2015-09-09T22:56:13Z","pushed_at":"2015-09-23T04:58:57Z","git_url":"git://github.com/htc-ccis2591/exploring-dom.git","ssh_url":"git@github.com:htc-ccis2591/exploring-dom.git","clone_url":"https://github.com/htc-ccis2591/exploring-dom.git","svn_url":"https://github.com/htc-ccis2591/exploring-dom","homepage":null,"size":715,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":15,"mirror_url":null,"open_issues_count":13,"forks":15,"open_issues":13,"watchers":0,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/htc-ccis2591/exploring-dom/pulls/1"},"html":{"href":"https://github.com/htc-ccis2591/exploring-dom/pull/1"},"issue":{"href":"https://api.github.com/repos/htc-ccis2591/exploring-dom/issues/1"},"comments":{"href":"https://api.github.com/repos/htc-ccis2591/exploring-dom/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/htc-ccis2591/exploring-dom/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/htc-ccis2591/exploring-dom/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htc-ccis2591/exploring-dom/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/htc-ccis2591/exploring-dom/statuses/8f7ef8372e0ab962366eb2c57e965c8a37a52eda"}}}}