{"action":"created","comment":{"url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/pulls/comments/184263910","pull_request_review_id":115422442,"id":184263910,"diff_hunk":"@@ -19,17 +19,28 @@ class Article {\n       Using our new reference to the expandButton, use jQuery to set the inner\n       text on the button. \n     */\n-    this.expandButton.text(\"Expand\");\n+    this.expandButton.text(\"Click to Expand\");\n     /* \n       Set a click handler on the expand button (or article element), calling \n       the expandArticle method. \n     */\n-   this.element.click(() => this.expandArticle());\n+   this.element.click(() => this.resizeArticle()); // This part puzzles me greatly\n   }\n \n-  expandArticle() {\n+  resizeArticle() {\n     /* Using our reference to the article element, add or remove a class */\n-    this.element.toggleClass(\"article-open\");\n+    // Original Solution\n+    // this.element.toggleClass(\"article-open\")\n+    const buttonText = this.expandButton[0];\n+    if (buttonText.innerText === \"Click to Expand\") {\n+      this.element.animate({height:'+=400px'},300);\n+      this.expandButton.text(\"Click to Collapse\");\n+    } else {\n+      this.element.animate({height:'-=400px'},300);\n+      this.expandButton.text(\"Click to Expand\");\n+    }\n+    // A dead end below","path":"Article/Article.js","position":null,"original_position":28,"commit_id":"a6378e8ed8d7d2b5144fd10f280d2c2f035e55c4","original_commit_id":"900a9aa5e9366f729a09dfe417861b7d052ffe0e","user":{"login":"Mister-Corn","id":36778342,"avatar_url":"https://avatars1.githubusercontent.com/u/36778342?v=4","gravatar_id":"","url":"https://api.github.com/users/Mister-Corn","html_url":"https://github.com/Mister-Corn","followers_url":"https://api.github.com/users/Mister-Corn/followers","following_url":"https://api.github.com/users/Mister-Corn/following{/other_user}","gists_url":"https://api.github.com/users/Mister-Corn/gists{/gist_id}","starred_url":"https://api.github.com/users/Mister-Corn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mister-Corn/subscriptions","organizations_url":"https://api.github.com/users/Mister-Corn/orgs","repos_url":"https://api.github.com/users/Mister-Corn/repos","events_url":"https://api.github.com/users/Mister-Corn/events{/privacy}","received_events_url":"https://api.github.com/users/Mister-Corn/received_events","type":"User","site_admin":false},"body":"Thanks, Csaba! ❤️ ","created_at":"2018-04-26T03:45:14Z","updated_at":"2018-04-26T03:45:14Z","html_url":"https://github.com/LambdaSchool/Newsfeed-jQuery/pull/3#discussion_r184263910","pull_request_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/pulls/comments/184263910"},"html":{"href":"https://github.com/LambdaSchool/Newsfeed-jQuery/pull/3#discussion_r184263910"},"pull_request":{"href":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/pulls/3"}},"in_reply_to_id":184242665},"pull_request":{"url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/pulls/3","id":184123120,"html_url":"https://github.com/LambdaSchool/Newsfeed-jQuery/pull/3","diff_url":"https://github.com/LambdaSchool/Newsfeed-jQuery/pull/3.diff","patch_url":"https://github.com/LambdaSchool/Newsfeed-jQuery/pull/3.patch","issue_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/issues/3","number":3,"state":"open","locked":false,"title":"Ronald Libago - CS10 (Csaba Balogh)","user":{"login":"Mister-Corn","id":36778342,"avatar_url":"https://avatars1.githubusercontent.com/u/36778342?v=4","gravatar_id":"","url":"https://api.github.com/users/Mister-Corn","html_url":"https://github.com/Mister-Corn","followers_url":"https://api.github.com/users/Mister-Corn/followers","following_url":"https://api.github.com/users/Mister-Corn/following{/other_user}","gists_url":"https://api.github.com/users/Mister-Corn/gists{/gist_id}","starred_url":"https://api.github.com/users/Mister-Corn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mister-Corn/subscriptions","organizations_url":"https://api.github.com/users/Mister-Corn/orgs","repos_url":"https://api.github.com/users/Mister-Corn/repos","events_url":"https://api.github.com/users/Mister-Corn/events{/privacy}","received_events_url":"https://api.github.com/users/Mister-Corn/received_events","type":"User","site_admin":false},"body":"## Main Goals\r\n\r\n### Part 1: The Menu\r\n\r\n- [x] Import menu.less from the correct path into index.less\r\n- [x] Use jQuery to select the menu and menu button components from the HTML.\r\n- [x] Write a callback function that add and removes a class to the menu when called. \r\n- [x] Using jQuery, pass the callback to a click event listener on the button.\r\n\r\n\r\n### Part 2: The Articles\r\n\r\n- [x] Using jQuery, select all articles. Map over the array creating individual instances of the Article class.\r\n- [x] Within the Article class, set properties for the element, and expandButton.\r\n- [x] Add text to the expand button reading: ‘Click to Expand’\r\n- [x] Add a click event to the expand button (or entire article if you need to at first), pass the click event the ‘expandArticle’ method.\r\n- [x] Within the expand article method add or remove the open class from the article.\r\n\r\n### Part 3: Add Articles\r\n\r\n- [x] Add a few articles of your own to the HTML. \r\n\r\n## Stretch Goals\r\n\r\n- [x] Animation\r\nJust used base JQuery to add some nifty animations to the menu bar and the articles.\r\n- [x] Close Button\r\nThe close button is in the bottom of every article. Before you ask how are you going to even get to the bottom of the article, I gotchu. I threw in a scroll bar to help you out.\r\n- [ ] Component Constructor\r\n- [ ] Implement a way to write your own articles using the Component Constructor and some input fields. \r\n\r\n------\r\n\r\nStudent: Ronald Libago\r\nPM: Csaba Balogh\r\nClass: CS10\r\n","created_at":"2018-04-25T18:24:22Z","updated_at":"2018-04-26T03:45:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b476306294437117811a299c624436f00aa19827","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/pulls/3/commits","review_comments_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/pulls/3/comments","review_comment_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/issues/3/comments","statuses_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/statuses/a6378e8ed8d7d2b5144fd10f280d2c2f035e55c4","head":{"label":"Mister-Corn:master","ref":"master","sha":"a6378e8ed8d7d2b5144fd10f280d2c2f035e55c4","user":{"login":"Mister-Corn","id":36778342,"avatar_url":"https://avatars1.githubusercontent.com/u/36778342?v=4","gravatar_id":"","url":"https://api.github.com/users/Mister-Corn","html_url":"https://github.com/Mister-Corn","followers_url":"https://api.github.com/users/Mister-Corn/followers","following_url":"https://api.github.com/users/Mister-Corn/following{/other_user}","gists_url":"https://api.github.com/users/Mister-Corn/gists{/gist_id}","starred_url":"https://api.github.com/users/Mister-Corn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mister-Corn/subscriptions","organizations_url":"https://api.github.com/users/Mister-Corn/orgs","repos_url":"https://api.github.com/users/Mister-Corn/repos","events_url":"https://api.github.com/users/Mister-Corn/events{/privacy}","received_events_url":"https://api.github.com/users/Mister-Corn/received_events","type":"User","site_admin":false},"repo":{"id":131044646,"name":"Newsfeed-jQuery","full_name":"Mister-Corn/Newsfeed-jQuery","owner":{"login":"Mister-Corn","id":36778342,"avatar_url":"https://avatars1.githubusercontent.com/u/36778342?v=4","gravatar_id":"","url":"https://api.github.com/users/Mister-Corn","html_url":"https://github.com/Mister-Corn","followers_url":"https://api.github.com/users/Mister-Corn/followers","following_url":"https://api.github.com/users/Mister-Corn/following{/other_user}","gists_url":"https://api.github.com/users/Mister-Corn/gists{/gist_id}","starred_url":"https://api.github.com/users/Mister-Corn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mister-Corn/subscriptions","organizations_url":"https://api.github.com/users/Mister-Corn/orgs","repos_url":"https://api.github.com/users/Mister-Corn/repos","events_url":"https://api.github.com/users/Mister-Corn/events{/privacy}","received_events_url":"https://api.github.com/users/Mister-Corn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Mister-Corn/Newsfeed-jQuery","description":null,"fork":true,"url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery","forks_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/forks","keys_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/teams","hooks_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/hooks","issue_events_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/issues/events{/number}","events_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/events","assignees_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/assignees{/user}","branches_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/branches{/branch}","tags_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/tags","blobs_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/statuses/{sha}","languages_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/languages","stargazers_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/stargazers","contributors_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/contributors","subscribers_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/subscribers","subscription_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/subscription","commits_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/contents/{+path}","compare_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/merges","archive_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/downloads","issues_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/issues{/number}","pulls_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/pulls{/number}","milestones_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/milestones{/number}","notifications_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/labels{/name}","releases_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/releases{/id}","deployments_url":"https://api.github.com/repos/Mister-Corn/Newsfeed-jQuery/deployments","created_at":"2018-04-25T17:59:22Z","updated_at":"2018-04-26T03:37:03Z","pushed_at":"2018-04-26T03:37:01Z","git_url":"git://github.com/Mister-Corn/Newsfeed-jQuery.git","ssh_url":"git@github.com:Mister-Corn/Newsfeed-jQuery.git","clone_url":"https://github.com/Mister-Corn/Newsfeed-jQuery.git","svn_url":"https://github.com/Mister-Corn/Newsfeed-jQuery","homepage":null,"size":25,"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":"LambdaSchool:master","ref":"master","sha":"c13af92d63b70362b4952e1778d247d63f6bffa3","user":{"login":"LambdaSchool","id":24780114,"avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"repo":{"id":127994647,"name":"Newsfeed-jQuery","full_name":"LambdaSchool/Newsfeed-jQuery","owner":{"login":"LambdaSchool","id":24780114,"avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LambdaSchool/Newsfeed-jQuery","description":null,"fork":false,"url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery","forks_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/forks","keys_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/teams","hooks_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/hooks","issue_events_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/issues/events{/number}","events_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/events","assignees_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/assignees{/user}","branches_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/branches{/branch}","tags_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/tags","blobs_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/git/refs{/sha}","trees_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/statuses/{sha}","languages_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/languages","stargazers_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/stargazers","contributors_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/contributors","subscribers_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/subscribers","subscription_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/subscription","commits_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/commits{/sha}","git_commits_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/git/commits{/sha}","comments_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/comments{/number}","issue_comment_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/issues/comments{/number}","contents_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/contents/{+path}","compare_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/merges","archive_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/downloads","issues_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/issues{/number}","pulls_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/pulls{/number}","milestones_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/milestones{/number}","notifications_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/labels{/name}","releases_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/releases{/id}","deployments_url":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/deployments","created_at":"2018-04-04T02:18:43Z","updated_at":"2018-04-25T16:29:36Z","pushed_at":"2018-04-26T03:37:02Z","git_url":"git://github.com/LambdaSchool/Newsfeed-jQuery.git","ssh_url":"git@github.com:LambdaSchool/Newsfeed-jQuery.git","clone_url":"https://github.com/LambdaSchool/Newsfeed-jQuery.git","svn_url":"https://github.com/LambdaSchool/Newsfeed-jQuery","homepage":null,"size":25,"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":58,"mirror_url":null,"archived":false,"open_issues_count":50,"license":null,"forks":58,"open_issues":50,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/pulls/3"},"html":{"href":"https://github.com/LambdaSchool/Newsfeed-jQuery/pull/3"},"issue":{"href":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/issues/3"},"comments":{"href":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/LambdaSchool/Newsfeed-jQuery/statuses/a6378e8ed8d7d2b5144fd10f280d2c2f035e55c4"}},"author_association":"NONE"}}
{"actor":{"display_login":"Mister-Corn"}}