{"action":"created","comment":{"url":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/comments/81494435","pull_request_review_id":2470540,"id":81494435,"diff_hunk":"@@ -1 +1,50 @@\n+(function () {\r\n \r\n+//AddContextMenu\r\n+var addMenuContext = function () {\r\n+var menuElement = document.getElementsByTagName(\"h2\");\r\n+var menuNav = document.createElement(\"div\");\r\n+var menuContext = document.createTextNode(\"Click on Images to Enlarge.\");\r\n+\r\n+menuElement[0].appendChild(menuNav);\r\n+menuNav.appendChild(menuContext);\r\n+}\r\n+\r\n+addMenuContext();\r\n+\r\n+//HidingImages\r\n+var hideImg = function () {\r\n+   var menuImages = document.getElementsByTagName(\"img\");\r\n+    var i = 0;\r\n+    for (i; i < menuImages.length; i++) {\r\n+            img = menuImages[i];\r\n+            img.setAttribute(\"class\", \"hide\");\r\n+  \r\n+        }\r\n+    \r\n+}\r\n+\r\n+hideImg();\r\n+\r\n+//EnlargeImages\r\n+var showImg = function () {\r\n+    var menuItems = document.getElementsByClassName(\"menu-item\");\r\n+    var i = 0;\r\n+    for (i; i < menuItems.length; i++){\r\n+        menuItems[i].addEventListener(\"click\", function() {\r\n+            var click = this;\r\n+            var span = click.getElementsByTagName(\"span\");\r\n+            var sideImg = document.getElementById(\"aside-image\");\r\n+            var imgSource = span.nextElementSibling.getAttribute(\"src\");\r\n+            \r\n+            sideImg.removeAttribute(\"hide\");\r\n+            sideImg.setAttribute(\"src\", \"imgSource\");\r","path":"js/script.js","position":41,"original_position":41,"commit_id":"bff9aa8d2bc3cec0a86aa5a45978438be8905c46","original_commit_id":"bff9aa8d2bc3cec0a86aa5a45978438be8905c46","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":"You wouldn't want quotes here.  src and imgSource should be variable names.","created_at":"2016-10-03T06:05:24Z","updated_at":"2016-10-03T06:06:39Z","html_url":"https://github.com/htc-ccis2591/dom-access/pull/24#discussion_r81494435","pull_request_url":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/comments/81494435"},"html":{"href":"https://github.com/htc-ccis2591/dom-access/pull/24#discussion_r81494435"},"pull_request":{"href":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/24","id":85315670,"html_url":"https://github.com/htc-ccis2591/dom-access/pull/24","diff_url":"https://github.com/htc-ccis2591/dom-access/pull/24.diff","patch_url":"https://github.com/htc-ccis2591/dom-access/pull/24.patch","issue_url":"https://api.github.com/repos/htc-ccis2591/dom-access/issues/24","number":24,"state":"open","locked":false,"title":"Current Work","user":{"login":"chee-yang","id":16657903,"avatar_url":"https://avatars.githubusercontent.com/u/16657903?v=3","gravatar_id":"","url":"https://api.github.com/users/chee-yang","html_url":"https://github.com/chee-yang","followers_url":"https://api.github.com/users/chee-yang/followers","following_url":"https://api.github.com/users/chee-yang/following{/other_user}","gists_url":"https://api.github.com/users/chee-yang/gists{/gist_id}","starred_url":"https://api.github.com/users/chee-yang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chee-yang/subscriptions","organizations_url":"https://api.github.com/users/chee-yang/orgs","repos_url":"https://api.github.com/users/chee-yang/repos","events_url":"https://api.github.com/users/chee-yang/events{/privacy}","received_events_url":"https://api.github.com/users/chee-yang/received_events","type":"User","site_admin":false},"body":"1. getElementById()\r\n2 .getElementById(\"aside-image)\r\n3. getElementsByClass(\"menu-item\")\r\n4. \r\n5. ","created_at":"2016-09-14T22:18:45Z","updated_at":"2016-10-03T06:06:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"25221e6dcc34184b81a82af4e5fe7588c041931e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/24/commits","review_comments_url":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/24/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/24/comments","statuses_url":"https://api.github.com/repos/htc-ccis2591/dom-access/statuses/bff9aa8d2bc3cec0a86aa5a45978438be8905c46","head":{"label":"chee-yang:gh-pages","ref":"gh-pages","sha":"bff9aa8d2bc3cec0a86aa5a45978438be8905c46","user":{"login":"chee-yang","id":16657903,"avatar_url":"https://avatars.githubusercontent.com/u/16657903?v=3","gravatar_id":"","url":"https://api.github.com/users/chee-yang","html_url":"https://github.com/chee-yang","followers_url":"https://api.github.com/users/chee-yang/followers","following_url":"https://api.github.com/users/chee-yang/following{/other_user}","gists_url":"https://api.github.com/users/chee-yang/gists{/gist_id}","starred_url":"https://api.github.com/users/chee-yang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chee-yang/subscriptions","organizations_url":"https://api.github.com/users/chee-yang/orgs","repos_url":"https://api.github.com/users/chee-yang/repos","events_url":"https://api.github.com/users/chee-yang/events{/privacy}","received_events_url":"https://api.github.com/users/chee-yang/received_events","type":"User","site_admin":false},"repo":{"id":68246696,"name":"dom-access","full_name":"chee-yang/dom-access","owner":{"login":"chee-yang","id":16657903,"avatar_url":"https://avatars.githubusercontent.com/u/16657903?v=3","gravatar_id":"","url":"https://api.github.com/users/chee-yang","html_url":"https://github.com/chee-yang","followers_url":"https://api.github.com/users/chee-yang/followers","following_url":"https://api.github.com/users/chee-yang/following{/other_user}","gists_url":"https://api.github.com/users/chee-yang/gists{/gist_id}","starred_url":"https://api.github.com/users/chee-yang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chee-yang/subscriptions","organizations_url":"https://api.github.com/users/chee-yang/orgs","repos_url":"https://api.github.com/users/chee-yang/repos","events_url":"https://api.github.com/users/chee-yang/events{/privacy}","received_events_url":"https://api.github.com/users/chee-yang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chee-yang/dom-access","description":"DOM Access Assignment (Moonflower's Coffee Shop)","fork":true,"url":"https://api.github.com/repos/chee-yang/dom-access","forks_url":"https://api.github.com/repos/chee-yang/dom-access/forks","keys_url":"https://api.github.com/repos/chee-yang/dom-access/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chee-yang/dom-access/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chee-yang/dom-access/teams","hooks_url":"https://api.github.com/repos/chee-yang/dom-access/hooks","issue_events_url":"https://api.github.com/repos/chee-yang/dom-access/issues/events{/number}","events_url":"https://api.github.com/repos/chee-yang/dom-access/events","assignees_url":"https://api.github.com/repos/chee-yang/dom-access/assignees{/user}","branches_url":"https://api.github.com/repos/chee-yang/dom-access/branches{/branch}","tags_url":"https://api.github.com/repos/chee-yang/dom-access/tags","blobs_url":"https://api.github.com/repos/chee-yang/dom-access/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chee-yang/dom-access/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chee-yang/dom-access/git/refs{/sha}","trees_url":"https://api.github.com/repos/chee-yang/dom-access/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chee-yang/dom-access/statuses/{sha}","languages_url":"https://api.github.com/repos/chee-yang/dom-access/languages","stargazers_url":"https://api.github.com/repos/chee-yang/dom-access/stargazers","contributors_url":"https://api.github.com/repos/chee-yang/dom-access/contributors","subscribers_url":"https://api.github.com/repos/chee-yang/dom-access/subscribers","subscription_url":"https://api.github.com/repos/chee-yang/dom-access/subscription","commits_url":"https://api.github.com/repos/chee-yang/dom-access/commits{/sha}","git_commits_url":"https://api.github.com/repos/chee-yang/dom-access/git/commits{/sha}","comments_url":"https://api.github.com/repos/chee-yang/dom-access/comments{/number}","issue_comment_url":"https://api.github.com/repos/chee-yang/dom-access/issues/comments{/number}","contents_url":"https://api.github.com/repos/chee-yang/dom-access/contents/{+path}","compare_url":"https://api.github.com/repos/chee-yang/dom-access/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chee-yang/dom-access/merges","archive_url":"https://api.github.com/repos/chee-yang/dom-access/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chee-yang/dom-access/downloads","issues_url":"https://api.github.com/repos/chee-yang/dom-access/issues{/number}","pulls_url":"https://api.github.com/repos/chee-yang/dom-access/pulls{/number}","milestones_url":"https://api.github.com/repos/chee-yang/dom-access/milestones{/number}","notifications_url":"https://api.github.com/repos/chee-yang/dom-access/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chee-yang/dom-access/labels{/name}","releases_url":"https://api.github.com/repos/chee-yang/dom-access/releases{/id}","deployments_url":"https://api.github.com/repos/chee-yang/dom-access/deployments","created_at":"2016-09-14T21:58:39Z","updated_at":"2016-09-14T21:58:40Z","pushed_at":"2016-09-14T22:37:53Z","git_url":"git://github.com/chee-yang/dom-access.git","ssh_url":"git@github.com:chee-yang/dom-access.git","clone_url":"https://github.com/chee-yang/dom-access.git","svn_url":"https://github.com/chee-yang/dom-access","homepage":"http://htc-ccis2591.github.io/dom-access/","size":254,"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":"50e0a9fae0706f9b5fca3229fa7e47513021aadb","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}","deployments_url":"https://api.github.com/repos/htc-ccis2591/dom-access/deployments","created_at":"2015-09-02T22:07:56Z","updated_at":"2016-09-07T22:42:08Z","pushed_at":"2016-09-15T00:44:29Z","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":525,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":39,"mirror_url":null,"open_issues_count":8,"forks":39,"open_issues":8,"watchers":0,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/24"},"html":{"href":"https://github.com/htc-ccis2591/dom-access/pull/24"},"issue":{"href":"https://api.github.com/repos/htc-ccis2591/dom-access/issues/24"},"comments":{"href":"https://api.github.com/repos/htc-ccis2591/dom-access/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/htc-ccis2591/dom-access/pulls/24/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/24/commits"},"statuses":{"href":"https://api.github.com/repos/htc-ccis2591/dom-access/statuses/bff9aa8d2bc3cec0a86aa5a45978438be8905c46"}}}}
{"actor":{"display_login":"mbMosman"}}