{"action":"created","comment":{"url":"https://api.github.com/repos/lonelyplanet/rizzo-next/pulls/comments/44844090","id":44844090,"diff_hunk":"@@ -0,0 +1,83 @@\n+import { Component } from \"../../core/bane\";\n+import $ from \"jquery\";\n+import urlencode from \"urlencode\";\n+import \"./action_sheet.scss\";\n+\n+class ActionSheetComponent extends Component {\n+  initialize() {\n+    let self = this;\n+    self.isActionSheetMenuHidden = false;\n+\n+    self.$el.find(\".js-action-sheet-item\").each(function(index, el) {\n+      $(el).find(\".js-action-sheet-control\").on(\"click\", function(event) {\n+        let id = \"#\" + $(this).attr(\"aria-owns\"),\n+            $menu = $(this).siblings(id);\n+\n+        if (self.isActionSheetMenuHidden) {\n+          self._hideActionSheetMenu($menu);\n+          self.isActionSheetMenuHidden = false;\n+        } else {\n+          self._showActionSheetMenu($menu);\n+          self.isActionSheetMenuHidden = true;\n+        }\n+\n+        event.preventDefault();\n+      });\n+    });\n+\n+    this._share();\n+  }\n+\n+  _showActionSheetMenu($menu) {\n+    $menu\n+      .addClass(\"is-open\")\n+      .prop(\"hidden\", false)\n+      .attr(\"aria-hidden\", \"false\");\n+  }\n+\n+  _hideActionSheetMenu($menu) {\n+    $menu\n+      .removeClass(\"is-open\")\n+      .prop(\"hidden\", true)\n+      .attr(\"aria-hidden\", \"true\");\n+  }\n+\n+  _share() {\n+    let width = 550,\n+        height = 420,\n+        winHeight = $(window).height(),\n+        winWidth = $(window).width(),\n+        left,\n+        top;\n+\n+    $(\".action-sheet-menu\").find(\".action-sheet-control\").each((index, el) => {\n+      $(el).on(\"click\", function() {\n+        let title = $(this).parents(\".article\").find(\"meta[itemprop=\\\"headline\\\"]\")[0].content,","path":"src/components/action_sheet/index.js","position":55,"original_position":55,"commit_id":"e102df6bd14fb20157729512349c9605c1653ec7","original_commit_id":"e102df6bd14fb20157729512349c9605c1653ec7","user":{"login":"jcreamer898","id":472487,"avatar_url":"https://avatars.githubusercontent.com/u/472487?v=3","gravatar_id":"","url":"https://api.github.com/users/jcreamer898","html_url":"https://github.com/jcreamer898","followers_url":"https://api.github.com/users/jcreamer898/followers","following_url":"https://api.github.com/users/jcreamer898/following{/other_user}","gists_url":"https://api.github.com/users/jcreamer898/gists{/gist_id}","starred_url":"https://api.github.com/users/jcreamer898/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcreamer898/subscriptions","organizations_url":"https://api.github.com/users/jcreamer898/orgs","repos_url":"https://api.github.com/users/jcreamer898/repos","events_url":"https://api.github.com/users/jcreamer898/events{/privacy}","received_events_url":"https://api.github.com/users/jcreamer898/received_events","type":"User","site_admin":false},"body":"`$(this).closest(\".article\")`","created_at":"2015-11-13T22:55:38Z","updated_at":"2015-11-13T22:55:38Z","html_url":"https://github.com/lonelyplanet/rizzo-next/pull/195#discussion_r44844090","pull_request_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/pulls/195","_links":{"self":{"href":"https://api.github.com/repos/lonelyplanet/rizzo-next/pulls/comments/44844090"},"html":{"href":"https://github.com/lonelyplanet/rizzo-next/pull/195#discussion_r44844090"},"pull_request":{"href":"https://api.github.com/repos/lonelyplanet/rizzo-next/pulls/195"}}},"pull_request":{"url":"https://api.github.com/repos/lonelyplanet/rizzo-next/pulls/195","id":50683149,"html_url":"https://github.com/lonelyplanet/rizzo-next/pull/195","diff_url":"https://github.com/lonelyplanet/rizzo-next/pull/195.diff","patch_url":"https://github.com/lonelyplanet/rizzo-next/pull/195.patch","issue_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/issues/195","number":195,"state":"open","locked":false,"title":"WIP: Components for article","user":{"login":"thomasthesecond","id":1479563,"avatar_url":"https://avatars.githubusercontent.com/u/1479563?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasthesecond","html_url":"https://github.com/thomasthesecond","followers_url":"https://api.github.com/users/thomasthesecond/followers","following_url":"https://api.github.com/users/thomasthesecond/following{/other_user}","gists_url":"https://api.github.com/users/thomasthesecond/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasthesecond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasthesecond/subscriptions","organizations_url":"https://api.github.com/users/thomasthesecond/orgs","repos_url":"https://api.github.com/users/thomasthesecond/repos","events_url":"https://api.github.com/users/thomasthesecond/events{/privacy}","received_events_url":"https://api.github.com/users/thomasthesecond/received_events","type":"User","site_admin":false},"body":"This is a WIP, but since the PR is going to be larger than it should, it can be reviewed as I finish up. There's some clean up that I'll be doing as well.","created_at":"2015-11-13T19:46:41Z","updated_at":"2015-11-13T22:55:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"730464c88dae9a41cdef4912fdc7b0c74c61c4f7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/pulls/195/commits","review_comments_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/pulls/195/comments","review_comment_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/issues/195/comments","statuses_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/statuses/e102df6bd14fb20157729512349c9605c1653ec7","head":{"label":"lonelyplanet:tc-new-article-components","ref":"tc-new-article-components","sha":"e102df6bd14fb20157729512349c9605c1653ec7","user":{"login":"lonelyplanet","id":114767,"avatar_url":"https://avatars.githubusercontent.com/u/114767?v=3","gravatar_id":"","url":"https://api.github.com/users/lonelyplanet","html_url":"https://github.com/lonelyplanet","followers_url":"https://api.github.com/users/lonelyplanet/followers","following_url":"https://api.github.com/users/lonelyplanet/following{/other_user}","gists_url":"https://api.github.com/users/lonelyplanet/gists{/gist_id}","starred_url":"https://api.github.com/users/lonelyplanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonelyplanet/subscriptions","organizations_url":"https://api.github.com/users/lonelyplanet/orgs","repos_url":"https://api.github.com/users/lonelyplanet/repos","events_url":"https://api.github.com/users/lonelyplanet/events{/privacy}","received_events_url":"https://api.github.com/users/lonelyplanet/received_events","type":"Organization","site_admin":false},"repo":{"id":38222455,"name":"rizzo-next","full_name":"lonelyplanet/rizzo-next","owner":{"login":"lonelyplanet","id":114767,"avatar_url":"https://avatars.githubusercontent.com/u/114767?v=3","gravatar_id":"","url":"https://api.github.com/users/lonelyplanet","html_url":"https://github.com/lonelyplanet","followers_url":"https://api.github.com/users/lonelyplanet/followers","following_url":"https://api.github.com/users/lonelyplanet/following{/other_user}","gists_url":"https://api.github.com/users/lonelyplanet/gists{/gist_id}","starred_url":"https://api.github.com/users/lonelyplanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonelyplanet/subscriptions","organizations_url":"https://api.github.com/users/lonelyplanet/orgs","repos_url":"https://api.github.com/users/lonelyplanet/repos","events_url":"https://api.github.com/users/lonelyplanet/events{/privacy}","received_events_url":"https://api.github.com/users/lonelyplanet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lonelyplanet/rizzo-next","description":"The evolution of Lonely Planet's pattern library.","fork":false,"url":"https://api.github.com/repos/lonelyplanet/rizzo-next","forks_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/forks","keys_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/teams","hooks_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/hooks","issue_events_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/issues/events{/number}","events_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/events","assignees_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/assignees{/user}","branches_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/branches{/branch}","tags_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/tags","blobs_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/statuses/{sha}","languages_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/languages","stargazers_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/stargazers","contributors_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/contributors","subscribers_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/subscribers","subscription_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/subscription","commits_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/contents/{+path}","compare_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/merges","archive_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/downloads","issues_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/issues{/number}","pulls_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/pulls{/number}","milestones_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/milestones{/number}","notifications_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/labels{/name}","releases_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/releases{/id}","created_at":"2015-06-29T01:59:31Z","updated_at":"2015-10-19T01:15:34Z","pushed_at":"2015-11-13T22:08:12Z","git_url":"git://github.com/lonelyplanet/rizzo-next.git","ssh_url":"git@github.com:lonelyplanet/rizzo-next.git","clone_url":"https://github.com/lonelyplanet/rizzo-next.git","svn_url":"https://github.com/lonelyplanet/rizzo-next","homepage":"http://rizzo.lonelyplanet.com","size":3192,"stargazers_count":4,"watchers_count":4,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":4,"default_branch":"master"}},"base":{"label":"lonelyplanet:master","ref":"master","sha":"36d79c62c4c7f3f02d11a1323535f1bcc01c47e3","user":{"login":"lonelyplanet","id":114767,"avatar_url":"https://avatars.githubusercontent.com/u/114767?v=3","gravatar_id":"","url":"https://api.github.com/users/lonelyplanet","html_url":"https://github.com/lonelyplanet","followers_url":"https://api.github.com/users/lonelyplanet/followers","following_url":"https://api.github.com/users/lonelyplanet/following{/other_user}","gists_url":"https://api.github.com/users/lonelyplanet/gists{/gist_id}","starred_url":"https://api.github.com/users/lonelyplanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonelyplanet/subscriptions","organizations_url":"https://api.github.com/users/lonelyplanet/orgs","repos_url":"https://api.github.com/users/lonelyplanet/repos","events_url":"https://api.github.com/users/lonelyplanet/events{/privacy}","received_events_url":"https://api.github.com/users/lonelyplanet/received_events","type":"Organization","site_admin":false},"repo":{"id":38222455,"name":"rizzo-next","full_name":"lonelyplanet/rizzo-next","owner":{"login":"lonelyplanet","id":114767,"avatar_url":"https://avatars.githubusercontent.com/u/114767?v=3","gravatar_id":"","url":"https://api.github.com/users/lonelyplanet","html_url":"https://github.com/lonelyplanet","followers_url":"https://api.github.com/users/lonelyplanet/followers","following_url":"https://api.github.com/users/lonelyplanet/following{/other_user}","gists_url":"https://api.github.com/users/lonelyplanet/gists{/gist_id}","starred_url":"https://api.github.com/users/lonelyplanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonelyplanet/subscriptions","organizations_url":"https://api.github.com/users/lonelyplanet/orgs","repos_url":"https://api.github.com/users/lonelyplanet/repos","events_url":"https://api.github.com/users/lonelyplanet/events{/privacy}","received_events_url":"https://api.github.com/users/lonelyplanet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lonelyplanet/rizzo-next","description":"The evolution of Lonely Planet's pattern library.","fork":false,"url":"https://api.github.com/repos/lonelyplanet/rizzo-next","forks_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/forks","keys_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/teams","hooks_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/hooks","issue_events_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/issues/events{/number}","events_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/events","assignees_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/assignees{/user}","branches_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/branches{/branch}","tags_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/tags","blobs_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/statuses/{sha}","languages_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/languages","stargazers_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/stargazers","contributors_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/contributors","subscribers_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/subscribers","subscription_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/subscription","commits_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/contents/{+path}","compare_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/merges","archive_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/downloads","issues_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/issues{/number}","pulls_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/pulls{/number}","milestones_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/milestones{/number}","notifications_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/labels{/name}","releases_url":"https://api.github.com/repos/lonelyplanet/rizzo-next/releases{/id}","created_at":"2015-06-29T01:59:31Z","updated_at":"2015-10-19T01:15:34Z","pushed_at":"2015-11-13T22:08:12Z","git_url":"git://github.com/lonelyplanet/rizzo-next.git","ssh_url":"git@github.com:lonelyplanet/rizzo-next.git","clone_url":"https://github.com/lonelyplanet/rizzo-next.git","svn_url":"https://github.com/lonelyplanet/rizzo-next","homepage":"http://rizzo.lonelyplanet.com","size":3192,"stargazers_count":4,"watchers_count":4,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lonelyplanet/rizzo-next/pulls/195"},"html":{"href":"https://github.com/lonelyplanet/rizzo-next/pull/195"},"issue":{"href":"https://api.github.com/repos/lonelyplanet/rizzo-next/issues/195"},"comments":{"href":"https://api.github.com/repos/lonelyplanet/rizzo-next/issues/195/comments"},"review_comments":{"href":"https://api.github.com/repos/lonelyplanet/rizzo-next/pulls/195/comments"},"review_comment":{"href":"https://api.github.com/repos/lonelyplanet/rizzo-next/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lonelyplanet/rizzo-next/pulls/195/commits"},"statuses":{"href":"https://api.github.com/repos/lonelyplanet/rizzo-next/statuses/e102df6bd14fb20157729512349c9605c1653ec7"}}}}