{"action":"created","comment":{"url":"https://api.github.com/repos/river-jade/donations-visualiser/pulls/comments/66189596","id":66189596,"diff_hunk":"@@ -125,6 +125,27 @@ d3.select(\"#receipt-type-select-all\").on(\"click\", function() { selectAll('#recei\n d3.select(\"#receipt-type-select-clear\").on(\"click\", function() { clearSelection('#receipt_type_select'); });\n d3.select(\"#clear-search\").on(\"click\", clearSearch);\n \n+// on 'escape' key press, close the info window, and zoomToFit\n+window.addEventListener(\"keydown\", function (event) {\n+  if (event.defaultPrevented) return;\n+\n+  var handled = false;\n+  if (event.key === 27) {\n+    handled = true;\n+  } else if (event.keyIdentifier === 27) {\n+    handled = true;\n+  } else if (event.keyCode === 27) {\n+    handled = true;\n+  }","path":"js/donations-visualiser.js","position":206,"original_position":15,"commit_id":"a341bfac32630199c0904d8ef876b5234501cf27","original_commit_id":"1ba2e76cc5fc7649a9bd51e5077e878f8947d34b","user":{"login":"river-jade","id":707728,"avatar_url":"https://avatars.githubusercontent.com/u/707728?v=3","gravatar_id":"","url":"https://api.github.com/users/river-jade","html_url":"https://github.com/river-jade","followers_url":"https://api.github.com/users/river-jade/followers","following_url":"https://api.github.com/users/river-jade/following{/other_user}","gists_url":"https://api.github.com/users/river-jade/gists{/gist_id}","starred_url":"https://api.github.com/users/river-jade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/river-jade/subscriptions","organizations_url":"https://api.github.com/users/river-jade/orgs","repos_url":"https://api.github.com/users/river-jade/repos","events_url":"https://api.github.com/users/river-jade/events{/privacy}","received_events_url":"https://api.github.com/users/river-jade/received_events","type":"User","site_admin":false},"body":"is this a X-browser thing? from a style perspective, i'd prefer single if with ||","created_at":"2016-06-08T04:03:16Z","updated_at":"2016-06-08T04:03:16Z","html_url":"https://github.com/river-jade/donations-visualiser/pull/16#discussion_r66189596","pull_request_url":"https://api.github.com/repos/river-jade/donations-visualiser/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/river-jade/donations-visualiser/pulls/comments/66189596"},"html":{"href":"https://github.com/river-jade/donations-visualiser/pull/16#discussion_r66189596"},"pull_request":{"href":"https://api.github.com/repos/river-jade/donations-visualiser/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/river-jade/donations-visualiser/pulls/16","id":72809653,"html_url":"https://github.com/river-jade/donations-visualiser/pull/16","diff_url":"https://github.com/river-jade/donations-visualiser/pull/16.diff","patch_url":"https://github.com/river-jade/donations-visualiser/pull/16.patch","issue_url":"https://api.github.com/repos/river-jade/donations-visualiser/issues/16","number":16,"state":"open","locked":false,"title":"Feature/zoom on startup","user":{"login":"ptim","id":218044,"avatar_url":"https://avatars.githubusercontent.com/u/218044?v=3","gravatar_id":"","url":"https://api.github.com/users/ptim","html_url":"https://github.com/ptim","followers_url":"https://api.github.com/users/ptim/followers","following_url":"https://api.github.com/users/ptim/following{/other_user}","gists_url":"https://api.github.com/users/ptim/gists{/gist_id}","starred_url":"https://api.github.com/users/ptim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptim/subscriptions","organizations_url":"https://api.github.com/users/ptim/orgs","repos_url":"https://api.github.com/users/ptim/repos","events_url":"https://api.github.com/users/ptim/events{/privacy}","received_events_url":"https://api.github.com/users/ptim/received_events","type":"User","site_admin":false},"body":"Sorry about the monolithic PR! tried to format it as best possible for reviewability.\r\n\r\nMain features implemented here: \r\n\r\n- zoom to fit on load (and via new button below slider)\r\n- replaced / simplified offcanvas layout (removes jasny depenendency)\r\n\r\nAnd there's a whole lot of code tidying (generally as unobtrusive as possible) for consistent code style and whitespace.  Suggest installing editorconfig to minimise noise in future diffs.\r\n","created_at":"2016-06-07T03:08:26Z","updated_at":"2016-06-08T04:03:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e379a4faf54f0edf8ed8595f25140f68240d6dd3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/river-jade/donations-visualiser/pulls/16/commits","review_comments_url":"https://api.github.com/repos/river-jade/donations-visualiser/pulls/16/comments","review_comment_url":"https://api.github.com/repos/river-jade/donations-visualiser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/river-jade/donations-visualiser/issues/16/comments","statuses_url":"https://api.github.com/repos/river-jade/donations-visualiser/statuses/a341bfac32630199c0904d8ef876b5234501cf27","head":{"label":"ptim:feature/zoom-on-startup","ref":"feature/zoom-on-startup","sha":"a341bfac32630199c0904d8ef876b5234501cf27","user":{"login":"ptim","id":218044,"avatar_url":"https://avatars.githubusercontent.com/u/218044?v=3","gravatar_id":"","url":"https://api.github.com/users/ptim","html_url":"https://github.com/ptim","followers_url":"https://api.github.com/users/ptim/followers","following_url":"https://api.github.com/users/ptim/following{/other_user}","gists_url":"https://api.github.com/users/ptim/gists{/gist_id}","starred_url":"https://api.github.com/users/ptim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptim/subscriptions","organizations_url":"https://api.github.com/users/ptim/orgs","repos_url":"https://api.github.com/users/ptim/repos","events_url":"https://api.github.com/users/ptim/events{/privacy}","received_events_url":"https://api.github.com/users/ptim/received_events","type":"User","site_admin":false},"repo":{"id":59932995,"name":"donations-visualiser","full_name":"ptim/donations-visualiser","owner":{"login":"ptim","id":218044,"avatar_url":"https://avatars.githubusercontent.com/u/218044?v=3","gravatar_id":"","url":"https://api.github.com/users/ptim","html_url":"https://github.com/ptim","followers_url":"https://api.github.com/users/ptim/followers","following_url":"https://api.github.com/users/ptim/following{/other_user}","gists_url":"https://api.github.com/users/ptim/gists{/gist_id}","starred_url":"https://api.github.com/users/ptim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptim/subscriptions","organizations_url":"https://api.github.com/users/ptim/orgs","repos_url":"https://api.github.com/users/ptim/repos","events_url":"https://api.github.com/users/ptim/events{/privacy}","received_events_url":"https://api.github.com/users/ptim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ptim/donations-visualiser","description":"Australian Political Donations Visualiser","fork":true,"url":"https://api.github.com/repos/ptim/donations-visualiser","forks_url":"https://api.github.com/repos/ptim/donations-visualiser/forks","keys_url":"https://api.github.com/repos/ptim/donations-visualiser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ptim/donations-visualiser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ptim/donations-visualiser/teams","hooks_url":"https://api.github.com/repos/ptim/donations-visualiser/hooks","issue_events_url":"https://api.github.com/repos/ptim/donations-visualiser/issues/events{/number}","events_url":"https://api.github.com/repos/ptim/donations-visualiser/events","assignees_url":"https://api.github.com/repos/ptim/donations-visualiser/assignees{/user}","branches_url":"https://api.github.com/repos/ptim/donations-visualiser/branches{/branch}","tags_url":"https://api.github.com/repos/ptim/donations-visualiser/tags","blobs_url":"https://api.github.com/repos/ptim/donations-visualiser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ptim/donations-visualiser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ptim/donations-visualiser/git/refs{/sha}","trees_url":"https://api.github.com/repos/ptim/donations-visualiser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ptim/donations-visualiser/statuses/{sha}","languages_url":"https://api.github.com/repos/ptim/donations-visualiser/languages","stargazers_url":"https://api.github.com/repos/ptim/donations-visualiser/stargazers","contributors_url":"https://api.github.com/repos/ptim/donations-visualiser/contributors","subscribers_url":"https://api.github.com/repos/ptim/donations-visualiser/subscribers","subscription_url":"https://api.github.com/repos/ptim/donations-visualiser/subscription","commits_url":"https://api.github.com/repos/ptim/donations-visualiser/commits{/sha}","git_commits_url":"https://api.github.com/repos/ptim/donations-visualiser/git/commits{/sha}","comments_url":"https://api.github.com/repos/ptim/donations-visualiser/comments{/number}","issue_comment_url":"https://api.github.com/repos/ptim/donations-visualiser/issues/comments{/number}","contents_url":"https://api.github.com/repos/ptim/donations-visualiser/contents/{+path}","compare_url":"https://api.github.com/repos/ptim/donations-visualiser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ptim/donations-visualiser/merges","archive_url":"https://api.github.com/repos/ptim/donations-visualiser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ptim/donations-visualiser/downloads","issues_url":"https://api.github.com/repos/ptim/donations-visualiser/issues{/number}","pulls_url":"https://api.github.com/repos/ptim/donations-visualiser/pulls{/number}","milestones_url":"https://api.github.com/repos/ptim/donations-visualiser/milestones{/number}","notifications_url":"https://api.github.com/repos/ptim/donations-visualiser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ptim/donations-visualiser/labels{/name}","releases_url":"https://api.github.com/repos/ptim/donations-visualiser/releases{/id}","deployments_url":"https://api.github.com/repos/ptim/donations-visualiser/deployments","created_at":"2016-05-29T08:08:59Z","updated_at":"2016-05-29T08:09:00Z","pushed_at":"2016-06-08T00:43:13Z","git_url":"git://github.com/ptim/donations-visualiser.git","ssh_url":"git@github.com:ptim/donations-visualiser.git","clone_url":"https://github.com/ptim/donations-visualiser.git","svn_url":"https://github.com/ptim/donations-visualiser","homepage":null,"size":2161,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"river-jade:master","ref":"master","sha":"15a9fc5fde2aa507866b8132b5c8965d76242d8f","user":{"login":"river-jade","id":707728,"avatar_url":"https://avatars.githubusercontent.com/u/707728?v=3","gravatar_id":"","url":"https://api.github.com/users/river-jade","html_url":"https://github.com/river-jade","followers_url":"https://api.github.com/users/river-jade/followers","following_url":"https://api.github.com/users/river-jade/following{/other_user}","gists_url":"https://api.github.com/users/river-jade/gists{/gist_id}","starred_url":"https://api.github.com/users/river-jade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/river-jade/subscriptions","organizations_url":"https://api.github.com/users/river-jade/orgs","repos_url":"https://api.github.com/users/river-jade/repos","events_url":"https://api.github.com/users/river-jade/events{/privacy}","received_events_url":"https://api.github.com/users/river-jade/received_events","type":"User","site_admin":false},"repo":{"id":11995096,"name":"donations-visualiser","full_name":"river-jade/donations-visualiser","owner":{"login":"river-jade","id":707728,"avatar_url":"https://avatars.githubusercontent.com/u/707728?v=3","gravatar_id":"","url":"https://api.github.com/users/river-jade","html_url":"https://github.com/river-jade","followers_url":"https://api.github.com/users/river-jade/followers","following_url":"https://api.github.com/users/river-jade/following{/other_user}","gists_url":"https://api.github.com/users/river-jade/gists{/gist_id}","starred_url":"https://api.github.com/users/river-jade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/river-jade/subscriptions","organizations_url":"https://api.github.com/users/river-jade/orgs","repos_url":"https://api.github.com/users/river-jade/repos","events_url":"https://api.github.com/users/river-jade/events{/privacy}","received_events_url":"https://api.github.com/users/river-jade/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/river-jade/donations-visualiser","description":"Australian Political Donations Visualiser","fork":false,"url":"https://api.github.com/repos/river-jade/donations-visualiser","forks_url":"https://api.github.com/repos/river-jade/donations-visualiser/forks","keys_url":"https://api.github.com/repos/river-jade/donations-visualiser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/river-jade/donations-visualiser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/river-jade/donations-visualiser/teams","hooks_url":"https://api.github.com/repos/river-jade/donations-visualiser/hooks","issue_events_url":"https://api.github.com/repos/river-jade/donations-visualiser/issues/events{/number}","events_url":"https://api.github.com/repos/river-jade/donations-visualiser/events","assignees_url":"https://api.github.com/repos/river-jade/donations-visualiser/assignees{/user}","branches_url":"https://api.github.com/repos/river-jade/donations-visualiser/branches{/branch}","tags_url":"https://api.github.com/repos/river-jade/donations-visualiser/tags","blobs_url":"https://api.github.com/repos/river-jade/donations-visualiser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/river-jade/donations-visualiser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/river-jade/donations-visualiser/git/refs{/sha}","trees_url":"https://api.github.com/repos/river-jade/donations-visualiser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/river-jade/donations-visualiser/statuses/{sha}","languages_url":"https://api.github.com/repos/river-jade/donations-visualiser/languages","stargazers_url":"https://api.github.com/repos/river-jade/donations-visualiser/stargazers","contributors_url":"https://api.github.com/repos/river-jade/donations-visualiser/contributors","subscribers_url":"https://api.github.com/repos/river-jade/donations-visualiser/subscribers","subscription_url":"https://api.github.com/repos/river-jade/donations-visualiser/subscription","commits_url":"https://api.github.com/repos/river-jade/donations-visualiser/commits{/sha}","git_commits_url":"https://api.github.com/repos/river-jade/donations-visualiser/git/commits{/sha}","comments_url":"https://api.github.com/repos/river-jade/donations-visualiser/comments{/number}","issue_comment_url":"https://api.github.com/repos/river-jade/donations-visualiser/issues/comments{/number}","contents_url":"https://api.github.com/repos/river-jade/donations-visualiser/contents/{+path}","compare_url":"https://api.github.com/repos/river-jade/donations-visualiser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/river-jade/donations-visualiser/merges","archive_url":"https://api.github.com/repos/river-jade/donations-visualiser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/river-jade/donations-visualiser/downloads","issues_url":"https://api.github.com/repos/river-jade/donations-visualiser/issues{/number}","pulls_url":"https://api.github.com/repos/river-jade/donations-visualiser/pulls{/number}","milestones_url":"https://api.github.com/repos/river-jade/donations-visualiser/milestones{/number}","notifications_url":"https://api.github.com/repos/river-jade/donations-visualiser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/river-jade/donations-visualiser/labels{/name}","releases_url":"https://api.github.com/repos/river-jade/donations-visualiser/releases{/id}","deployments_url":"https://api.github.com/repos/river-jade/donations-visualiser/deployments","created_at":"2013-08-09T06:58:24Z","updated_at":"2016-05-26T05:56:43Z","pushed_at":"2016-06-08T00:28:57Z","git_url":"git://github.com/river-jade/donations-visualiser.git","ssh_url":"git@github.com:river-jade/donations-visualiser.git","clone_url":"https://github.com/river-jade/donations-visualiser.git","svn_url":"https://github.com/river-jade/donations-visualiser","homepage":null,"size":2132,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":5,"forks":3,"open_issues":5,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/river-jade/donations-visualiser/pulls/16"},"html":{"href":"https://github.com/river-jade/donations-visualiser/pull/16"},"issue":{"href":"https://api.github.com/repos/river-jade/donations-visualiser/issues/16"},"comments":{"href":"https://api.github.com/repos/river-jade/donations-visualiser/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/river-jade/donations-visualiser/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/river-jade/donations-visualiser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/river-jade/donations-visualiser/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/river-jade/donations-visualiser/statuses/a341bfac32630199c0904d8ef876b5234501cf27"}}}}
{"actor":{"display_login":"river-jade"}}