{"action":"created","comment":{"url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/pulls/comments/216428182","pull_request_review_id":153906524,"id":216428182,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNjQyODE4Mg==","diff_hunk":"@@ -0,0 +1,127 @@\n+'use strict';\n+\n+let articleView = {};\n+\n+articleView.populateFilters = () => {\n+  $('article').each(function() {\n+    if (!$(this).hasClass('template')) {\n+      let val = $(this).find('address a').text();\n+      let optionTag = `<option value=\"${val}\">${val}</option>`;\n+\n+      if ($(`#author-filter option[value=\"${val}\"]`).length === 0) {\n+        $('#author-filter').append(optionTag);\n+      }\n+\n+      val = $(this).attr('data-category');\n+      optionTag = `<option value=\"${val}\">${val}</option>`;\n+      if ($(`#category-filter option[value=\"${val}\"]`).length === 0) {\n+        $('#category-filter').append(optionTag);\n+      }\n+    }\n+  });\n+};\n+\n+articleView.handleAuthorFilter = () => {\n+  $('#author-filter').on('change', function() {\n+    if ($(this).val()) {\n+      $('article').hide();\n+      $(`article[data-author=\"${$(this).val()}\"]`).fadeIn();\n+    } else {\n+      $('article').fadeIn();\n+      $('article.template').hide();\n+    }\n+    $('#category-filter').val('');\n+  });\n+};\n+\n+articleView.handleCategoryFilter = () => {\n+  $('#category-filter').on('change', function() {\n+    if ($(this).val()) {\n+      $('article').hide();\n+      $(`article[data-category=\"${$(this).val()}\"]`).fadeIn();\n+    } else {\n+      $('article').fadeIn();\n+      $('article.template').hide();\n+    }\n+    $('#author-filter').val('');\n+  });\n+};\n+\n+articleView.handleMainNav = () => {\n+  $('nav').on('click', '.tab', function(e) {\n+    e.preventDefault();\n+    $('.tab-content').hide();\n+    $(`#${$(this).data('content')}`).fadeIn();\n+  });\n+\n+  $('nav .tab:first').click();\n+};\n+\n+articleView.setTeasers = () => {\n+  $('.article-body *:nth-of-type(n+2)').hide();\n+  $('article').on('click', 'a.read-on', function(e) {\n+    e.preventDefault();\n+    if ($(this).text() === 'Read on →') {\n+      $(this).parent().find('*').fadeIn();\n+      $(this).html('Show Less &larr;');\n+    } else {\n+      $('body').animate({\n+        scrollTop: ($(this).parent().offset().top)\n+      },200);\n+      $(this).html('Read on &rarr;');\n+      $(this).parent().find('.article-body *:nth-of-type(n+2)').hide();\n+    }\n+  });\n+};\n+\n+// COMMENT: Where is this function called? Why?\n+// This function is called in the new.html file. It is called there because this page does not need to render all of the articles.\n+articleView.initNewArticlePage = () => {\n+  // DONE: Ensure the main .tab-content area is revealed. We might add more tabs later or otherwise edit the tab navigation.","path":"kris-class/scripts/articleView.js","position":80,"original_position":80,"commit_id":"a64d08a5b8054d991cb7dfc62ff70fc6113bbbc7","original_commit_id":"a64d08a5b8054d991cb7dfc62ff70fc6113bbbc7","user":{"login":"brandonholderman","id":18756859,"node_id":"MDQ6VXNlcjE4NzU2ODU5","avatar_url":"https://avatars2.githubusercontent.com/u/18756859?v=4","gravatar_id":"","url":"https://api.github.com/users/brandonholderman","html_url":"https://github.com/brandonholderman","followers_url":"https://api.github.com/users/brandonholderman/followers","following_url":"https://api.github.com/users/brandonholderman/following{/other_user}","gists_url":"https://api.github.com/users/brandonholderman/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonholderman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonholderman/subscriptions","organizations_url":"https://api.github.com/users/brandonholderman/orgs","repos_url":"https://api.github.com/users/brandonholderman/repos","events_url":"https://api.github.com/users/brandonholderman/events{/privacy}","received_events_url":"https://api.github.com/users/brandonholderman/received_events","type":"User","site_admin":false},"body":"Should set tab-content to \"show\"","created_at":"2018-09-10T18:32:30Z","updated_at":"2018-09-10T18:32:31Z","html_url":"https://github.com/codefellows-seattle-301d43/05-form-building/pull/4#discussion_r216428182","pull_request_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/pulls/comments/216428182"},"html":{"href":"https://github.com/codefellows-seattle-301d43/05-form-building/pull/4#discussion_r216428182"},"pull_request":{"href":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/pulls/4","id":214153640,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0MTUzNjQw","html_url":"https://github.com/codefellows-seattle-301d43/05-form-building/pull/4","diff_url":"https://github.com/codefellows-seattle-301d43/05-form-building/pull/4.diff","patch_url":"https://github.com/codefellows-seattle-301d43/05-form-building/pull/4.patch","issue_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/issues/4","number":4,"state":"open","locked":false,"title":"kris-05-form-building","user":{"login":"riedmank","id":41454044,"node_id":"MDQ6VXNlcjQxNDU0MDQ0","avatar_url":"https://avatars2.githubusercontent.com/u/41454044?v=4","gravatar_id":"","url":"https://api.github.com/users/riedmank","html_url":"https://github.com/riedmank","followers_url":"https://api.github.com/users/riedmank/followers","following_url":"https://api.github.com/users/riedmank/following{/other_user}","gists_url":"https://api.github.com/users/riedmank/gists{/gist_id}","starred_url":"https://api.github.com/users/riedmank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riedmank/subscriptions","organizations_url":"https://api.github.com/users/riedmank/orgs","repos_url":"https://api.github.com/users/riedmank/repos","events_url":"https://api.github.com/users/riedmank/events{/privacy}","received_events_url":"https://api.github.com/users/riedmank/received_events","type":"User","site_admin":false},"body":"#### Reflect and summarize on the in-class process:\r\n#### Single-line Summary\r\n**Today, we worked independently during an in-class workshop. It took about 2 hours**\r\n\r\n#### Reflect and summarize on your process for each `TODO` item :  \r\n  1. First, we started on adding a template for users to input an article.\r\n  2. Next, we add functionality to the form we created including a live update feature as well creating a JSON object for the article.\r\n  3. Finally, I answered any remaining comments in the code.\r\n\r\n#### Checklist (before submitting, fill in each set of square brackets with an 'x')\r\n- [X] I have titled the Pull Request similar to my branch name (ex: 'michelle'). \r\n- [X] There is no extraneous, unrelated code included in this PR.\r\n- [X] I have summarized my `TODO:` process above.\r\n","created_at":"2018-09-09T16:45:49Z","updated_at":"2018-09-10T18:32:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4a75d8e1b7b34d4a921334c42c94505d4c3c440","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/pulls/4/commits","review_comments_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/pulls/4/comments","review_comment_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/issues/4/comments","statuses_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/statuses/a64d08a5b8054d991cb7dfc62ff70fc6113bbbc7","head":{"label":"riedmank:master","ref":"master","sha":"a64d08a5b8054d991cb7dfc62ff70fc6113bbbc7","user":{"login":"riedmank","id":41454044,"node_id":"MDQ6VXNlcjQxNDU0MDQ0","avatar_url":"https://avatars2.githubusercontent.com/u/41454044?v=4","gravatar_id":"","url":"https://api.github.com/users/riedmank","html_url":"https://github.com/riedmank","followers_url":"https://api.github.com/users/riedmank/followers","following_url":"https://api.github.com/users/riedmank/following{/other_user}","gists_url":"https://api.github.com/users/riedmank/gists{/gist_id}","starred_url":"https://api.github.com/users/riedmank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riedmank/subscriptions","organizations_url":"https://api.github.com/users/riedmank/orgs","repos_url":"https://api.github.com/users/riedmank/repos","events_url":"https://api.github.com/users/riedmank/events{/privacy}","received_events_url":"https://api.github.com/users/riedmank/received_events","type":"User","site_admin":false},"repo":{"id":147880593,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc4ODA1OTM=","name":"05-form-building","full_name":"riedmank/05-form-building","owner":{"login":"riedmank","id":41454044,"node_id":"MDQ6VXNlcjQxNDU0MDQ0","avatar_url":"https://avatars2.githubusercontent.com/u/41454044?v=4","gravatar_id":"","url":"https://api.github.com/users/riedmank","html_url":"https://github.com/riedmank","followers_url":"https://api.github.com/users/riedmank/followers","following_url":"https://api.github.com/users/riedmank/following{/other_user}","gists_url":"https://api.github.com/users/riedmank/gists{/gist_id}","starred_url":"https://api.github.com/users/riedmank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riedmank/subscriptions","organizations_url":"https://api.github.com/users/riedmank/orgs","repos_url":"https://api.github.com/users/riedmank/repos","events_url":"https://api.github.com/users/riedmank/events{/privacy}","received_events_url":"https://api.github.com/users/riedmank/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/riedmank/05-form-building","description":null,"fork":true,"url":"https://api.github.com/repos/riedmank/05-form-building","forks_url":"https://api.github.com/repos/riedmank/05-form-building/forks","keys_url":"https://api.github.com/repos/riedmank/05-form-building/keys{/key_id}","collaborators_url":"https://api.github.com/repos/riedmank/05-form-building/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/riedmank/05-form-building/teams","hooks_url":"https://api.github.com/repos/riedmank/05-form-building/hooks","issue_events_url":"https://api.github.com/repos/riedmank/05-form-building/issues/events{/number}","events_url":"https://api.github.com/repos/riedmank/05-form-building/events","assignees_url":"https://api.github.com/repos/riedmank/05-form-building/assignees{/user}","branches_url":"https://api.github.com/repos/riedmank/05-form-building/branches{/branch}","tags_url":"https://api.github.com/repos/riedmank/05-form-building/tags","blobs_url":"https://api.github.com/repos/riedmank/05-form-building/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/riedmank/05-form-building/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/riedmank/05-form-building/git/refs{/sha}","trees_url":"https://api.github.com/repos/riedmank/05-form-building/git/trees{/sha}","statuses_url":"https://api.github.com/repos/riedmank/05-form-building/statuses/{sha}","languages_url":"https://api.github.com/repos/riedmank/05-form-building/languages","stargazers_url":"https://api.github.com/repos/riedmank/05-form-building/stargazers","contributors_url":"https://api.github.com/repos/riedmank/05-form-building/contributors","subscribers_url":"https://api.github.com/repos/riedmank/05-form-building/subscribers","subscription_url":"https://api.github.com/repos/riedmank/05-form-building/subscription","commits_url":"https://api.github.com/repos/riedmank/05-form-building/commits{/sha}","git_commits_url":"https://api.github.com/repos/riedmank/05-form-building/git/commits{/sha}","comments_url":"https://api.github.com/repos/riedmank/05-form-building/comments{/number}","issue_comment_url":"https://api.github.com/repos/riedmank/05-form-building/issues/comments{/number}","contents_url":"https://api.github.com/repos/riedmank/05-form-building/contents/{+path}","compare_url":"https://api.github.com/repos/riedmank/05-form-building/compare/{base}...{head}","merges_url":"https://api.github.com/repos/riedmank/05-form-building/merges","archive_url":"https://api.github.com/repos/riedmank/05-form-building/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/riedmank/05-form-building/downloads","issues_url":"https://api.github.com/repos/riedmank/05-form-building/issues{/number}","pulls_url":"https://api.github.com/repos/riedmank/05-form-building/pulls{/number}","milestones_url":"https://api.github.com/repos/riedmank/05-form-building/milestones{/number}","notifications_url":"https://api.github.com/repos/riedmank/05-form-building/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/riedmank/05-form-building/labels{/name}","releases_url":"https://api.github.com/repos/riedmank/05-form-building/releases{/id}","deployments_url":"https://api.github.com/repos/riedmank/05-form-building/deployments","created_at":"2018-09-07T22:28:40Z","updated_at":"2018-09-09T16:42:58Z","pushed_at":"2018-09-09T16:42:57Z","git_url":"git://github.com/riedmank/05-form-building.git","ssh_url":"git@github.com:riedmank/05-form-building.git","clone_url":"https://github.com/riedmank/05-form-building.git","svn_url":"https://github.com/riedmank/05-form-building","homepage":null,"size":110,"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":"codefellows-seattle-301d43:master","ref":"master","sha":"abe4aa94640e094b9fc747d45e2120a75b461320","user":{"login":"codefellows-seattle-301d43","id":42622858,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNjIyODU4","avatar_url":"https://avatars3.githubusercontent.com/u/42622858?v=4","gravatar_id":"","url":"https://api.github.com/users/codefellows-seattle-301d43","html_url":"https://github.com/codefellows-seattle-301d43","followers_url":"https://api.github.com/users/codefellows-seattle-301d43/followers","following_url":"https://api.github.com/users/codefellows-seattle-301d43/following{/other_user}","gists_url":"https://api.github.com/users/codefellows-seattle-301d43/gists{/gist_id}","starred_url":"https://api.github.com/users/codefellows-seattle-301d43/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefellows-seattle-301d43/subscriptions","organizations_url":"https://api.github.com/users/codefellows-seattle-301d43/orgs","repos_url":"https://api.github.com/users/codefellows-seattle-301d43/repos","events_url":"https://api.github.com/users/codefellows-seattle-301d43/events{/privacy}","received_events_url":"https://api.github.com/users/codefellows-seattle-301d43/received_events","type":"Organization","site_admin":false},"repo":{"id":147865719,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc4NjU3MTk=","name":"05-form-building","full_name":"codefellows-seattle-301d43/05-form-building","owner":{"login":"codefellows-seattle-301d43","id":42622858,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNjIyODU4","avatar_url":"https://avatars3.githubusercontent.com/u/42622858?v=4","gravatar_id":"","url":"https://api.github.com/users/codefellows-seattle-301d43","html_url":"https://github.com/codefellows-seattle-301d43","followers_url":"https://api.github.com/users/codefellows-seattle-301d43/followers","following_url":"https://api.github.com/users/codefellows-seattle-301d43/following{/other_user}","gists_url":"https://api.github.com/users/codefellows-seattle-301d43/gists{/gist_id}","starred_url":"https://api.github.com/users/codefellows-seattle-301d43/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefellows-seattle-301d43/subscriptions","organizations_url":"https://api.github.com/users/codefellows-seattle-301d43/orgs","repos_url":"https://api.github.com/users/codefellows-seattle-301d43/repos","events_url":"https://api.github.com/users/codefellows-seattle-301d43/events{/privacy}","received_events_url":"https://api.github.com/users/codefellows-seattle-301d43/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codefellows-seattle-301d43/05-form-building","description":null,"fork":false,"url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building","forks_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/forks","keys_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/teams","hooks_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/hooks","issue_events_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/issues/events{/number}","events_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/events","assignees_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/assignees{/user}","branches_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/branches{/branch}","tags_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/tags","blobs_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/git/refs{/sha}","trees_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/statuses/{sha}","languages_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/languages","stargazers_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/stargazers","contributors_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/contributors","subscribers_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/subscribers","subscription_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/subscription","commits_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/commits{/sha}","git_commits_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/git/commits{/sha}","comments_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/comments{/number}","issue_comment_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/issues/comments{/number}","contents_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/contents/{+path}","compare_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/merges","archive_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/downloads","issues_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/issues{/number}","pulls_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/pulls{/number}","milestones_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/milestones{/number}","notifications_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/labels{/name}","releases_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/releases{/id}","deployments_url":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/deployments","created_at":"2018-09-07T19:23:25Z","updated_at":"2018-09-07T20:11:08Z","pushed_at":"2018-09-10T16:09:40Z","git_url":"git://github.com/codefellows-seattle-301d43/05-form-building.git","ssh_url":"git@github.com:codefellows-seattle-301d43/05-form-building.git","clone_url":"https://github.com/codefellows-seattle-301d43/05-form-building.git","svn_url":"https://github.com/codefellows-seattle-301d43/05-form-building","homepage":null,"size":107,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":10,"license":null,"forks":20,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/pulls/4"},"html":{"href":"https://github.com/codefellows-seattle-301d43/05-form-building/pull/4"},"issue":{"href":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/issues/4"},"comments":{"href":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/codefellows-seattle-301d43/05-form-building/statuses/a64d08a5b8054d991cb7dfc62ff70fc6113bbbc7"}},"author_association":"NONE"}}
{"actor":{"display_login":"brandonholderman"}}