{"action":"created","comment":{"url":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/comments/40274289","id":40274289,"diff_hunk":"@@ -1 +1,31 @@\n+var asidePic = document.getElementById(\"aside-image\");\r\n+var images = document.querySelectorAll(\"#menu img\");\r\n \r\n+console.log(asidePic)\r\n+console.log(images)\r\n+\r\n+/* Hides pictures at startup and applies source of image to aside element so images can be\r\n+   displayed as list items are clicked */\r\n+\r\n+for (i = 0; i < images.length; i++) {\r\n+    image = images[i];\r\n+    image.setAttribute(\"class\", \"hide\");\r\n+\r\n+    menuitem = image.parentElement;\r\n+\r\n+    menuitem.onclick = function () {\r\n+\r\n+        picture = this.lastElementChild;\r\n+        getpic = picture.getAttribute(\"src\");\r\n+        asidePic.setAttribute(\"src\", getpic);\r\n+        asidePic.removeAttribute(\"class\");\r\n+    }\r\n+}\r\n+\r\n+console.log(menuitem);\r\n+\r\n+/* Creates new paragraph and places it after h2 heading \"Menu\" */\r\n+\r\n+var messagelocation = document.getElementsByTagName(\"h2\").item(0).nextSibling.nodeValue = \"Click on a menu item to view a picture\";\r","path":"js/script.js","position":29,"original_position":29,"commit_id":"1199a2f80a00af162355baced469b97df43bea1d","original_commit_id":"1199a2f80a00af162355baced469b97df43bea1d","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 it doesn't create a paragraph tag.  It just squishes the text in.  This wouldn't work so well if there was no whitespace in the HTML between the `<h2>` and `<h3>` tags.  ","created_at":"2015-09-24T00:17:20Z","updated_at":"2015-09-24T00:17:20Z","html_url":"https://github.com/htc-ccis2591/dom-access/pull/7#discussion_r40274289","pull_request_url":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/comments/40274289"},"html":{"href":"https://github.com/htc-ccis2591/dom-access/pull/7#discussion_r40274289"},"pull_request":{"href":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/7","id":44585274,"html_url":"https://github.com/htc-ccis2591/dom-access/pull/7","diff_url":"https://github.com/htc-ccis2591/dom-access/pull/7.diff","patch_url":"https://github.com/htc-ccis2591/dom-access/pull/7.patch","issue_url":"https://api.github.com/repos/htc-ccis2591/dom-access/issues/7","number":7,"state":"open","locked":false,"title":"Session 2 Homework 9-9-15","user":{"login":"HansonBrent","id":13989128,"avatar_url":"https://avatars.githubusercontent.com/u/13989128?v=3","gravatar_id":"","url":"https://api.github.com/users/HansonBrent","html_url":"https://github.com/HansonBrent","followers_url":"https://api.github.com/users/HansonBrent/followers","following_url":"https://api.github.com/users/HansonBrent/following{/other_user}","gists_url":"https://api.github.com/users/HansonBrent/gists{/gist_id}","starred_url":"https://api.github.com/users/HansonBrent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HansonBrent/subscriptions","organizations_url":"https://api.github.com/users/HansonBrent/orgs","repos_url":"https://api.github.com/users/HansonBrent/repos","events_url":"https://api.github.com/users/HansonBrent/events{/privacy}","received_events_url":"https://api.github.com/users/HansonBrent/received_events","type":"User","site_admin":false},"body":"After 25+ hours of working and thinking on this I can’t get any better than this. Last night I seemed to have gotten the source for the pictures isolated but I don’t have time for more. About the placement of the paragraph with the \"Click on a menu item to view a picture\" text. I tried at least 100 variations, if not more, before and after your comments to put it in the right place. Keep me working and I will see if I can get this.","created_at":"2015-09-09T18:41:59Z","updated_at":"2015-09-24T00:17:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"adc8471606e0ef198b1e48fea8ac5d95afb09b4a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/7/commits","review_comments_url":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/7/comments","review_comment_url":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htc-ccis2591/dom-access/issues/7/comments","statuses_url":"https://api.github.com/repos/htc-ccis2591/dom-access/statuses/1199a2f80a00af162355baced469b97df43bea1d","head":{"label":"HansonBrent:gh-pages","ref":"gh-pages","sha":"1199a2f80a00af162355baced469b97df43bea1d","user":{"login":"HansonBrent","id":13989128,"avatar_url":"https://avatars.githubusercontent.com/u/13989128?v=3","gravatar_id":"","url":"https://api.github.com/users/HansonBrent","html_url":"https://github.com/HansonBrent","followers_url":"https://api.github.com/users/HansonBrent/followers","following_url":"https://api.github.com/users/HansonBrent/following{/other_user}","gists_url":"https://api.github.com/users/HansonBrent/gists{/gist_id}","starred_url":"https://api.github.com/users/HansonBrent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HansonBrent/subscriptions","organizations_url":"https://api.github.com/users/HansonBrent/orgs","repos_url":"https://api.github.com/users/HansonBrent/repos","events_url":"https://api.github.com/users/HansonBrent/events{/privacy}","received_events_url":"https://api.github.com/users/HansonBrent/received_events","type":"User","site_admin":false},"repo":{"id":41831915,"name":"dom-access","full_name":"HansonBrent/dom-access","owner":{"login":"HansonBrent","id":13989128,"avatar_url":"https://avatars.githubusercontent.com/u/13989128?v=3","gravatar_id":"","url":"https://api.github.com/users/HansonBrent","html_url":"https://github.com/HansonBrent","followers_url":"https://api.github.com/users/HansonBrent/followers","following_url":"https://api.github.com/users/HansonBrent/following{/other_user}","gists_url":"https://api.github.com/users/HansonBrent/gists{/gist_id}","starred_url":"https://api.github.com/users/HansonBrent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HansonBrent/subscriptions","organizations_url":"https://api.github.com/users/HansonBrent/orgs","repos_url":"https://api.github.com/users/HansonBrent/repos","events_url":"https://api.github.com/users/HansonBrent/events{/privacy}","received_events_url":"https://api.github.com/users/HansonBrent/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HansonBrent/dom-access","description":"DOM Access Assignment (Moonflower's Coffee Shop)","fork":true,"url":"https://api.github.com/repos/HansonBrent/dom-access","forks_url":"https://api.github.com/repos/HansonBrent/dom-access/forks","keys_url":"https://api.github.com/repos/HansonBrent/dom-access/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HansonBrent/dom-access/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HansonBrent/dom-access/teams","hooks_url":"https://api.github.com/repos/HansonBrent/dom-access/hooks","issue_events_url":"https://api.github.com/repos/HansonBrent/dom-access/issues/events{/number}","events_url":"https://api.github.com/repos/HansonBrent/dom-access/events","assignees_url":"https://api.github.com/repos/HansonBrent/dom-access/assignees{/user}","branches_url":"https://api.github.com/repos/HansonBrent/dom-access/branches{/branch}","tags_url":"https://api.github.com/repos/HansonBrent/dom-access/tags","blobs_url":"https://api.github.com/repos/HansonBrent/dom-access/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HansonBrent/dom-access/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HansonBrent/dom-access/git/refs{/sha}","trees_url":"https://api.github.com/repos/HansonBrent/dom-access/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HansonBrent/dom-access/statuses/{sha}","languages_url":"https://api.github.com/repos/HansonBrent/dom-access/languages","stargazers_url":"https://api.github.com/repos/HansonBrent/dom-access/stargazers","contributors_url":"https://api.github.com/repos/HansonBrent/dom-access/contributors","subscribers_url":"https://api.github.com/repos/HansonBrent/dom-access/subscribers","subscription_url":"https://api.github.com/repos/HansonBrent/dom-access/subscription","commits_url":"https://api.github.com/repos/HansonBrent/dom-access/commits{/sha}","git_commits_url":"https://api.github.com/repos/HansonBrent/dom-access/git/commits{/sha}","comments_url":"https://api.github.com/repos/HansonBrent/dom-access/comments{/number}","issue_comment_url":"https://api.github.com/repos/HansonBrent/dom-access/issues/comments{/number}","contents_url":"https://api.github.com/repos/HansonBrent/dom-access/contents/{+path}","compare_url":"https://api.github.com/repos/HansonBrent/dom-access/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HansonBrent/dom-access/merges","archive_url":"https://api.github.com/repos/HansonBrent/dom-access/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HansonBrent/dom-access/downloads","issues_url":"https://api.github.com/repos/HansonBrent/dom-access/issues{/number}","pulls_url":"https://api.github.com/repos/HansonBrent/dom-access/pulls{/number}","milestones_url":"https://api.github.com/repos/HansonBrent/dom-access/milestones{/number}","notifications_url":"https://api.github.com/repos/HansonBrent/dom-access/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HansonBrent/dom-access/labels{/name}","releases_url":"https://api.github.com/repos/HansonBrent/dom-access/releases{/id}","created_at":"2015-09-02T23:02:41Z","updated_at":"2015-09-23T22:48:31Z","pushed_at":"2015-09-23T22:48:30Z","git_url":"git://github.com/HansonBrent/dom-access.git","ssh_url":"git@github.com:HansonBrent/dom-access.git","clone_url":"https://github.com/HansonBrent/dom-access.git","svn_url":"https://github.com/HansonBrent/dom-access","homepage":"http://htc-ccis2591.github.io/dom-access/","size":325,"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":"80ab490f0b9f98d081f3e64f5124d266e5be81f4","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":41830116,"name":"dom-access","full_name":"htc-ccis2591/dom-access","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/dom-access","description":"DOM Access Assignment (Moonflower's Coffee Shop)","fork":false,"url":"https://api.github.com/repos/htc-ccis2591/dom-access","forks_url":"https://api.github.com/repos/htc-ccis2591/dom-access/forks","keys_url":"https://api.github.com/repos/htc-ccis2591/dom-access/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htc-ccis2591/dom-access/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htc-ccis2591/dom-access/teams","hooks_url":"https://api.github.com/repos/htc-ccis2591/dom-access/hooks","issue_events_url":"https://api.github.com/repos/htc-ccis2591/dom-access/issues/events{/number}","events_url":"https://api.github.com/repos/htc-ccis2591/dom-access/events","assignees_url":"https://api.github.com/repos/htc-ccis2591/dom-access/assignees{/user}","branches_url":"https://api.github.com/repos/htc-ccis2591/dom-access/branches{/branch}","tags_url":"https://api.github.com/repos/htc-ccis2591/dom-access/tags","blobs_url":"https://api.github.com/repos/htc-ccis2591/dom-access/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htc-ccis2591/dom-access/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htc-ccis2591/dom-access/git/refs{/sha}","trees_url":"https://api.github.com/repos/htc-ccis2591/dom-access/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htc-ccis2591/dom-access/statuses/{sha}","languages_url":"https://api.github.com/repos/htc-ccis2591/dom-access/languages","stargazers_url":"https://api.github.com/repos/htc-ccis2591/dom-access/stargazers","contributors_url":"https://api.github.com/repos/htc-ccis2591/dom-access/contributors","subscribers_url":"https://api.github.com/repos/htc-ccis2591/dom-access/subscribers","subscription_url":"https://api.github.com/repos/htc-ccis2591/dom-access/subscription","commits_url":"https://api.github.com/repos/htc-ccis2591/dom-access/commits{/sha}","git_commits_url":"https://api.github.com/repos/htc-ccis2591/dom-access/git/commits{/sha}","comments_url":"https://api.github.com/repos/htc-ccis2591/dom-access/comments{/number}","issue_comment_url":"https://api.github.com/repos/htc-ccis2591/dom-access/issues/comments{/number}","contents_url":"https://api.github.com/repos/htc-ccis2591/dom-access/contents/{+path}","compare_url":"https://api.github.com/repos/htc-ccis2591/dom-access/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htc-ccis2591/dom-access/merges","archive_url":"https://api.github.com/repos/htc-ccis2591/dom-access/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htc-ccis2591/dom-access/downloads","issues_url":"https://api.github.com/repos/htc-ccis2591/dom-access/issues{/number}","pulls_url":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls{/number}","milestones_url":"https://api.github.com/repos/htc-ccis2591/dom-access/milestones{/number}","notifications_url":"https://api.github.com/repos/htc-ccis2591/dom-access/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htc-ccis2591/dom-access/labels{/name}","releases_url":"https://api.github.com/repos/htc-ccis2591/dom-access/releases{/id}","created_at":"2015-09-02T22:07:56Z","updated_at":"2015-09-02T22:14:58Z","pushed_at":"2015-09-23T22:48:30Z","git_url":"git://github.com/htc-ccis2591/dom-access.git","ssh_url":"git@github.com:htc-ccis2591/dom-access.git","clone_url":"https://github.com/htc-ccis2591/dom-access.git","svn_url":"https://github.com/htc-ccis2591/dom-access","homepage":"http://htc-ccis2591.github.io/dom-access/","size":972,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":18,"mirror_url":null,"open_issues_count":3,"forks":18,"open_issues":3,"watchers":0,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/7"},"html":{"href":"https://github.com/htc-ccis2591/dom-access/pull/7"},"issue":{"href":"https://api.github.com/repos/htc-ccis2591/dom-access/issues/7"},"comments":{"href":"https://api.github.com/repos/htc-ccis2591/dom-access/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/htc-ccis2591/dom-access/statuses/1199a2f80a00af162355baced469b97df43bea1d"}}}}