{"action":"created","comment":{"url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pulls/comments/25986972","id":25986972,"diff_hunk":"@@ -0,0 +1,30 @@\n+function tabs (e) {\n+  var id = e.target.id.toLowerCase();\n+  $('.active').removeClass('active');\n+  switch (id){\n+    case 'menu-nav-tab':\n+      menuTab();\n+      break;\n+    case 'about-nav-tab':\n+      aboutUsTab();\n+      break;\n+    default:\n+      homeTab();\n+  }\n+}\n+\n+function menuTab (section) {\n+  $('#menu').addClass('active');\n+}\n+\n+function aboutUsTab (section) {\n+  $('#about-us').addClass('active');\n+}\n+\n+function homeTab () {\n+  $('.description').addClass('active');\n+}\n+\n+$(document).ready(function () {\n+  $('.tabs').on('click', function(e){tabs(e);});\n+});","path":"main.js","position":30,"original_position":30,"commit_id":"5ad4a5d24c89f851ea72c470c1e8c90c80b3b23a","original_commit_id":"5ad4a5d24c89f851ea72c470c1e8c90c80b3b23a","user":{"login":"zspencer","id":50284,"avatar_url":"https://avatars.githubusercontent.com/u/50284?v=3","gravatar_id":"","url":"https://api.github.com/users/zspencer","html_url":"https://github.com/zspencer","followers_url":"https://api.github.com/users/zspencer/followers","following_url":"https://api.github.com/users/zspencer/following{/other_user}","gists_url":"https://api.github.com/users/zspencer/gists{/gist_id}","starred_url":"https://api.github.com/users/zspencer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zspencer/subscriptions","organizations_url":"https://api.github.com/users/zspencer/orgs","repos_url":"https://api.github.com/users/zspencer/repos","events_url":"https://api.github.com/users/zspencer/events{/privacy}","received_events_url":"https://api.github.com/users/zspencer/received_events","type":"User","site_admin":false},"body":"I think `$('.tabs').on('click', tabs)` is valid. I'd rename `tabs` to `changeTabHandler` though.","created_at":"2015-03-06T23:23:57Z","updated_at":"2015-03-06T23:23:57Z","html_url":"https://github.com/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pull/1#discussion_r25986972","pull_request_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pulls/comments/25986972"},"html":{"href":"https://github.com/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pull/1#discussion_r25986972"},"pull_request":{"href":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pulls/1","id":19352130,"html_url":"https://github.com/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pull/1","diff_url":"https://github.com/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pull/1.diff","patch_url":"https://github.com/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pull/1.patch","issue_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/issues/1","number":1,"state":"open","locked":false,"title":"First Attempt at Manipulating-DOM-jQuery","user":{"login":"ltrainpr","id":3388706,"avatar_url":"https://avatars.githubusercontent.com/u/3388706?v=3","gravatar_id":"","url":"https://api.github.com/users/ltrainpr","html_url":"https://github.com/ltrainpr","followers_url":"https://api.github.com/users/ltrainpr/followers","following_url":"https://api.github.com/users/ltrainpr/following{/other_user}","gists_url":"https://api.github.com/users/ltrainpr/gists{/gist_id}","starred_url":"https://api.github.com/users/ltrainpr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltrainpr/subscriptions","organizations_url":"https://api.github.com/users/ltrainpr/orgs","repos_url":"https://api.github.com/users/ltrainpr/repos","events_url":"https://api.github.com/users/ltrainpr/events{/privacy}","received_events_url":"https://api.github.com/users/ltrainpr/received_events","type":"User","site_admin":false},"body":"Hi Zee.  I'm not 100% sure what this exercise is trying to teach me.  Why do they want to insert all of the HTML into the index.html page with JavaScript?\r\n\r\nAnyway, I'm interested in getting your feedback.","created_at":"2014-08-05T16:12:57Z","updated_at":"2015-03-06T23:23:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1af09347bfe2c1325b3b6daf6439154043ec0469","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pulls/1/commits","review_comments_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pulls/1/comments","review_comment_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/issues/1/comments","statuses_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/statuses/5ad4a5d24c89f851ea72c470c1e8c90c80b3b23a","head":{"label":"ltrainpr:lionel","ref":"lionel","sha":"5ad4a5d24c89f851ea72c470c1e8c90c80b3b23a","user":{"login":"ltrainpr","id":3388706,"avatar_url":"https://avatars.githubusercontent.com/u/3388706?v=3","gravatar_id":"","url":"https://api.github.com/users/ltrainpr","html_url":"https://github.com/ltrainpr","followers_url":"https://api.github.com/users/ltrainpr/followers","following_url":"https://api.github.com/users/ltrainpr/following{/other_user}","gists_url":"https://api.github.com/users/ltrainpr/gists{/gist_id}","starred_url":"https://api.github.com/users/ltrainpr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltrainpr/subscriptions","organizations_url":"https://api.github.com/users/ltrainpr/orgs","repos_url":"https://api.github.com/users/ltrainpr/repos","events_url":"https://api.github.com/users/ltrainpr/events{/privacy}","received_events_url":"https://api.github.com/users/ltrainpr/received_events","type":"User","site_admin":false},"repo":{"id":22270636,"name":"Manipulating-DOM-jQuery","full_name":"ltrainpr/Manipulating-DOM-jQuery","owner":{"login":"ltrainpr","id":3388706,"avatar_url":"https://avatars.githubusercontent.com/u/3388706?v=3","gravatar_id":"","url":"https://api.github.com/users/ltrainpr","html_url":"https://github.com/ltrainpr","followers_url":"https://api.github.com/users/ltrainpr/followers","following_url":"https://api.github.com/users/ltrainpr/following{/other_user}","gists_url":"https://api.github.com/users/ltrainpr/gists{/gist_id}","starred_url":"https://api.github.com/users/ltrainpr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltrainpr/subscriptions","organizations_url":"https://api.github.com/users/ltrainpr/orgs","repos_url":"https://api.github.com/users/ltrainpr/repos","events_url":"https://api.github.com/users/ltrainpr/events{/privacy}","received_events_url":"https://api.github.com/users/ltrainpr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ltrainpr/Manipulating-DOM-jQuery","description":"Generating an entire webpage using just Javascript and jQuery","fork":true,"url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery","forks_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/forks","keys_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/teams","hooks_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/hooks","issue_events_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/issues/events{/number}","events_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/events","assignees_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/assignees{/user}","branches_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/branches{/branch}","tags_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/tags","blobs_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/git/refs{/sha}","trees_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/statuses/{sha}","languages_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/languages","stargazers_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/stargazers","contributors_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/contributors","subscribers_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/subscribers","subscription_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/subscription","commits_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/commits{/sha}","git_commits_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/git/commits{/sha}","comments_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/comments{/number}","issue_comment_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/issues/comments{/number}","contents_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/contents/{+path}","compare_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/merges","archive_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/downloads","issues_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/issues{/number}","pulls_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/pulls{/number}","milestones_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/milestones{/number}","notifications_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/labels{/name}","releases_url":"https://api.github.com/repos/ltrainpr/Manipulating-DOM-jQuery/releases{/id}","created_at":"2014-07-25T20:58:19Z","updated_at":"2014-07-25T02:29:27Z","pushed_at":"2015-03-06T23:00:54Z","git_url":"git://github.com/ltrainpr/Manipulating-DOM-jQuery.git","ssh_url":"git@github.com:ltrainpr/Manipulating-DOM-jQuery.git","clone_url":"https://github.com/ltrainpr/Manipulating-DOM-jQuery.git","svn_url":"https://github.com/ltrainpr/Manipulating-DOM-jQuery","homepage":null,"size":133,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OdinProject-GrowingDevelopers:lionel","ref":"lionel","sha":"a4049dabc9c610849d4d4ea86f083067d05a0f63","user":{"login":"OdinProject-GrowingDevelopers","id":8130725,"avatar_url":"https://avatars.githubusercontent.com/u/8130725?v=3","gravatar_id":"","url":"https://api.github.com/users/OdinProject-GrowingDevelopers","html_url":"https://github.com/OdinProject-GrowingDevelopers","followers_url":"https://api.github.com/users/OdinProject-GrowingDevelopers/followers","following_url":"https://api.github.com/users/OdinProject-GrowingDevelopers/following{/other_user}","gists_url":"https://api.github.com/users/OdinProject-GrowingDevelopers/gists{/gist_id}","starred_url":"https://api.github.com/users/OdinProject-GrowingDevelopers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OdinProject-GrowingDevelopers/subscriptions","organizations_url":"https://api.github.com/users/OdinProject-GrowingDevelopers/orgs","repos_url":"https://api.github.com/users/OdinProject-GrowingDevelopers/repos","events_url":"https://api.github.com/users/OdinProject-GrowingDevelopers/events{/privacy}","received_events_url":"https://api.github.com/users/OdinProject-GrowingDevelopers/received_events","type":"Organization","site_admin":false},"repo":{"id":22242096,"name":"Manipulating-DOM-jQuery","full_name":"OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery","owner":{"login":"OdinProject-GrowingDevelopers","id":8130725,"avatar_url":"https://avatars.githubusercontent.com/u/8130725?v=3","gravatar_id":"","url":"https://api.github.com/users/OdinProject-GrowingDevelopers","html_url":"https://github.com/OdinProject-GrowingDevelopers","followers_url":"https://api.github.com/users/OdinProject-GrowingDevelopers/followers","following_url":"https://api.github.com/users/OdinProject-GrowingDevelopers/following{/other_user}","gists_url":"https://api.github.com/users/OdinProject-GrowingDevelopers/gists{/gist_id}","starred_url":"https://api.github.com/users/OdinProject-GrowingDevelopers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OdinProject-GrowingDevelopers/subscriptions","organizations_url":"https://api.github.com/users/OdinProject-GrowingDevelopers/orgs","repos_url":"https://api.github.com/users/OdinProject-GrowingDevelopers/repos","events_url":"https://api.github.com/users/OdinProject-GrowingDevelopers/events{/privacy}","received_events_url":"https://api.github.com/users/OdinProject-GrowingDevelopers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery","description":"Generating an entire webpage using just Javascript and jQuery","fork":false,"url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery","forks_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/forks","keys_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/teams","hooks_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/hooks","issue_events_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/issues/events{/number}","events_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/events","assignees_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/assignees{/user}","branches_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/branches{/branch}","tags_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/tags","blobs_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/git/refs{/sha}","trees_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/statuses/{sha}","languages_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/languages","stargazers_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/stargazers","contributors_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/contributors","subscribers_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/subscribers","subscription_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/subscription","commits_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/commits{/sha}","git_commits_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/git/commits{/sha}","comments_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/comments{/number}","issue_comment_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/issues/comments{/number}","contents_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/contents/{+path}","compare_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/merges","archive_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/downloads","issues_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/issues{/number}","pulls_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pulls{/number}","milestones_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/milestones{/number}","notifications_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/labels{/name}","releases_url":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/releases{/id}","created_at":"2014-07-25T02:29:27Z","updated_at":"2014-07-25T02:29:27Z","pushed_at":"2014-08-05T15:41:05Z","git_url":"git://github.com/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery.git","ssh_url":"git@github.com:OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery.git","clone_url":"https://github.com/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery.git","svn_url":"https://github.com/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery","homepage":null,"size":150,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pulls/1"},"html":{"href":"https://github.com/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pull/1"},"issue":{"href":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/issues/1"},"comments":{"href":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/OdinProject-GrowingDevelopers/Manipulating-DOM-jQuery/statuses/5ad4a5d24c89f851ea72c470c1e8c90c80b3b23a"}}}}