{"action":"created","comment":{"url":"https://api.github.com/repos/virtual-monk/bulletin-board/pulls/comments/29110194","id":29110194,"diff_hunk":"@@ -15,4 +15,24 @@\n //= require foundation\n //= require_tree .\n \n-$(function(){ $(document).foundation(); });\n+$(function(){ $(document).foundation();\n+  var map = L.map('map').setView([42.351776, -71.061371], 14);\n+  accessToken = 'pk.eyJ1IjoidmlydHVhbC1tb25rIiwiYSI6Ijc2MkxoLVUifQ.0QGDsafsrp25jF3eN6eUeQ';\n+  L.tileLayer('https://{s}.tiles.mapbox.com/v4/virtual-monk.ln2l3lfc/{z}/{x}/{y}.png?access_token=' + accessToken, {\n+      attribution: '<a href=\"http://www.mapbox.com/about/maps/\" target=\"_blank\">Terms &amp; Feedback</a>'\n+  }).addTo(map);\n+\n+  $.get( \"/events.json\", function( data ) {\n+    showCoordinates = []\n+    for (i=0; i<data.length; i++) {\n+      var coordinatesArray =  [data[i].latitude, data[i].longitude];\n+      var marker = L.marker([coordinatesArray[0],coordinatesArray[1]]);\n+      marker.addTo(map);\n+      var popup = \"<h1>\" + data[i].title + \"</h1>\"\n+      popup += \"<h3>\" + data[i].date + \"</h3>\"","path":"app/assets/javascripts/application.js","position":19,"original_position":19,"commit_id":"cd410010d26c1a9ad8d431a0ac89cb2793c7f0bb","original_commit_id":"cd410010d26c1a9ad8d431a0ac89cb2793c7f0bb","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Mixed double and single quotes.<br>Missing semicolon.<br>'i' is not defined.","created_at":"2015-04-26T14:22:56Z","updated_at":"2015-04-26T14:22:56Z","html_url":"https://github.com/virtual-monk/bulletin-board/pull/4#discussion_r29110194","pull_request_url":"https://api.github.com/repos/virtual-monk/bulletin-board/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/virtual-monk/bulletin-board/pulls/comments/29110194"},"html":{"href":"https://github.com/virtual-monk/bulletin-board/pull/4#discussion_r29110194"},"pull_request":{"href":"https://api.github.com/repos/virtual-monk/bulletin-board/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/virtual-monk/bulletin-board/pulls/4","id":33996379,"html_url":"https://github.com/virtual-monk/bulletin-board/pull/4","diff_url":"https://github.com/virtual-monk/bulletin-board/pull/4.diff","patch_url":"https://github.com/virtual-monk/bulletin-board/pull/4.patch","issue_url":"https://api.github.com/repos/virtual-monk/bulletin-board/issues/4","number":4,"state":"open","locked":false,"title":"Maps","user":{"login":"virtual-monk","id":10158100,"avatar_url":"https://avatars.githubusercontent.com/u/10158100?v=3","gravatar_id":"","url":"https://api.github.com/users/virtual-monk","html_url":"https://github.com/virtual-monk","followers_url":"https://api.github.com/users/virtual-monk/followers","following_url":"https://api.github.com/users/virtual-monk/following{/other_user}","gists_url":"https://api.github.com/users/virtual-monk/gists{/gist_id}","starred_url":"https://api.github.com/users/virtual-monk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virtual-monk/subscriptions","organizations_url":"https://api.github.com/users/virtual-monk/orgs","repos_url":"https://api.github.com/users/virtual-monk/repos","events_url":"https://api.github.com/users/virtual-monk/events{/privacy}","received_events_url":"https://api.github.com/users/virtual-monk/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-23T21:02:43Z","updated_at":"2015-04-26T14:22:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"218fe05730ac302b5d460160d77dc314759852b7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/virtual-monk/bulletin-board/pulls/4/commits","review_comments_url":"https://api.github.com/repos/virtual-monk/bulletin-board/pulls/4/comments","review_comment_url":"https://api.github.com/repos/virtual-monk/bulletin-board/pulls/comments{/number}","comments_url":"https://api.github.com/repos/virtual-monk/bulletin-board/issues/4/comments","statuses_url":"https://api.github.com/repos/virtual-monk/bulletin-board/statuses/cd410010d26c1a9ad8d431a0ac89cb2793c7f0bb","head":{"label":"virtual-monk:Maps","ref":"Maps","sha":"cd410010d26c1a9ad8d431a0ac89cb2793c7f0bb","user":{"login":"virtual-monk","id":10158100,"avatar_url":"https://avatars.githubusercontent.com/u/10158100?v=3","gravatar_id":"","url":"https://api.github.com/users/virtual-monk","html_url":"https://github.com/virtual-monk","followers_url":"https://api.github.com/users/virtual-monk/followers","following_url":"https://api.github.com/users/virtual-monk/following{/other_user}","gists_url":"https://api.github.com/users/virtual-monk/gists{/gist_id}","starred_url":"https://api.github.com/users/virtual-monk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virtual-monk/subscriptions","organizations_url":"https://api.github.com/users/virtual-monk/orgs","repos_url":"https://api.github.com/users/virtual-monk/repos","events_url":"https://api.github.com/users/virtual-monk/events{/privacy}","received_events_url":"https://api.github.com/users/virtual-monk/received_events","type":"User","site_admin":false},"repo":{"id":33508823,"name":"bulletin-board","full_name":"virtual-monk/bulletin-board","owner":{"login":"virtual-monk","id":10158100,"avatar_url":"https://avatars.githubusercontent.com/u/10158100?v=3","gravatar_id":"","url":"https://api.github.com/users/virtual-monk","html_url":"https://github.com/virtual-monk","followers_url":"https://api.github.com/users/virtual-monk/followers","following_url":"https://api.github.com/users/virtual-monk/following{/other_user}","gists_url":"https://api.github.com/users/virtual-monk/gists{/gist_id}","starred_url":"https://api.github.com/users/virtual-monk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virtual-monk/subscriptions","organizations_url":"https://api.github.com/users/virtual-monk/orgs","repos_url":"https://api.github.com/users/virtual-monk/repos","events_url":"https://api.github.com/users/virtual-monk/events{/privacy}","received_events_url":"https://api.github.com/users/virtual-monk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/virtual-monk/bulletin-board","description":"","fork":false,"url":"https://api.github.com/repos/virtual-monk/bulletin-board","forks_url":"https://api.github.com/repos/virtual-monk/bulletin-board/forks","keys_url":"https://api.github.com/repos/virtual-monk/bulletin-board/keys{/key_id}","collaborators_url":"https://api.github.com/repos/virtual-monk/bulletin-board/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/virtual-monk/bulletin-board/teams","hooks_url":"https://api.github.com/repos/virtual-monk/bulletin-board/hooks","issue_events_url":"https://api.github.com/repos/virtual-monk/bulletin-board/issues/events{/number}","events_url":"https://api.github.com/repos/virtual-monk/bulletin-board/events","assignees_url":"https://api.github.com/repos/virtual-monk/bulletin-board/assignees{/user}","branches_url":"https://api.github.com/repos/virtual-monk/bulletin-board/branches{/branch}","tags_url":"https://api.github.com/repos/virtual-monk/bulletin-board/tags","blobs_url":"https://api.github.com/repos/virtual-monk/bulletin-board/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/virtual-monk/bulletin-board/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/virtual-monk/bulletin-board/git/refs{/sha}","trees_url":"https://api.github.com/repos/virtual-monk/bulletin-board/git/trees{/sha}","statuses_url":"https://api.github.com/repos/virtual-monk/bulletin-board/statuses/{sha}","languages_url":"https://api.github.com/repos/virtual-monk/bulletin-board/languages","stargazers_url":"https://api.github.com/repos/virtual-monk/bulletin-board/stargazers","contributors_url":"https://api.github.com/repos/virtual-monk/bulletin-board/contributors","subscribers_url":"https://api.github.com/repos/virtual-monk/bulletin-board/subscribers","subscription_url":"https://api.github.com/repos/virtual-monk/bulletin-board/subscription","commits_url":"https://api.github.com/repos/virtual-monk/bulletin-board/commits{/sha}","git_commits_url":"https://api.github.com/repos/virtual-monk/bulletin-board/git/commits{/sha}","comments_url":"https://api.github.com/repos/virtual-monk/bulletin-board/comments{/number}","issue_comment_url":"https://api.github.com/repos/virtual-monk/bulletin-board/issues/comments{/number}","contents_url":"https://api.github.com/repos/virtual-monk/bulletin-board/contents/{+path}","compare_url":"https://api.github.com/repos/virtual-monk/bulletin-board/compare/{base}...{head}","merges_url":"https://api.github.com/repos/virtual-monk/bulletin-board/merges","archive_url":"https://api.github.com/repos/virtual-monk/bulletin-board/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/virtual-monk/bulletin-board/downloads","issues_url":"https://api.github.com/repos/virtual-monk/bulletin-board/issues{/number}","pulls_url":"https://api.github.com/repos/virtual-monk/bulletin-board/pulls{/number}","milestones_url":"https://api.github.com/repos/virtual-monk/bulletin-board/milestones{/number}","notifications_url":"https://api.github.com/repos/virtual-monk/bulletin-board/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/virtual-monk/bulletin-board/labels{/name}","releases_url":"https://api.github.com/repos/virtual-monk/bulletin-board/releases{/id}","created_at":"2015-04-06T22:18:51Z","updated_at":"2015-04-22T22:33:57Z","pushed_at":"2015-04-26T14:22:49Z","git_url":"git://github.com/virtual-monk/bulletin-board.git","ssh_url":"git@github.com:virtual-monk/bulletin-board.git","clone_url":"https://github.com/virtual-monk/bulletin-board.git","svn_url":"https://github.com/virtual-monk/bulletin-board","homepage":null,"size":976,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"virtual-monk:master","ref":"master","sha":"b210923e81832dc7dbeb08b6c8bcb9d496b6e600","user":{"login":"virtual-monk","id":10158100,"avatar_url":"https://avatars.githubusercontent.com/u/10158100?v=3","gravatar_id":"","url":"https://api.github.com/users/virtual-monk","html_url":"https://github.com/virtual-monk","followers_url":"https://api.github.com/users/virtual-monk/followers","following_url":"https://api.github.com/users/virtual-monk/following{/other_user}","gists_url":"https://api.github.com/users/virtual-monk/gists{/gist_id}","starred_url":"https://api.github.com/users/virtual-monk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virtual-monk/subscriptions","organizations_url":"https://api.github.com/users/virtual-monk/orgs","repos_url":"https://api.github.com/users/virtual-monk/repos","events_url":"https://api.github.com/users/virtual-monk/events{/privacy}","received_events_url":"https://api.github.com/users/virtual-monk/received_events","type":"User","site_admin":false},"repo":{"id":33508823,"name":"bulletin-board","full_name":"virtual-monk/bulletin-board","owner":{"login":"virtual-monk","id":10158100,"avatar_url":"https://avatars.githubusercontent.com/u/10158100?v=3","gravatar_id":"","url":"https://api.github.com/users/virtual-monk","html_url":"https://github.com/virtual-monk","followers_url":"https://api.github.com/users/virtual-monk/followers","following_url":"https://api.github.com/users/virtual-monk/following{/other_user}","gists_url":"https://api.github.com/users/virtual-monk/gists{/gist_id}","starred_url":"https://api.github.com/users/virtual-monk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virtual-monk/subscriptions","organizations_url":"https://api.github.com/users/virtual-monk/orgs","repos_url":"https://api.github.com/users/virtual-monk/repos","events_url":"https://api.github.com/users/virtual-monk/events{/privacy}","received_events_url":"https://api.github.com/users/virtual-monk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/virtual-monk/bulletin-board","description":"","fork":false,"url":"https://api.github.com/repos/virtual-monk/bulletin-board","forks_url":"https://api.github.com/repos/virtual-monk/bulletin-board/forks","keys_url":"https://api.github.com/repos/virtual-monk/bulletin-board/keys{/key_id}","collaborators_url":"https://api.github.com/repos/virtual-monk/bulletin-board/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/virtual-monk/bulletin-board/teams","hooks_url":"https://api.github.com/repos/virtual-monk/bulletin-board/hooks","issue_events_url":"https://api.github.com/repos/virtual-monk/bulletin-board/issues/events{/number}","events_url":"https://api.github.com/repos/virtual-monk/bulletin-board/events","assignees_url":"https://api.github.com/repos/virtual-monk/bulletin-board/assignees{/user}","branches_url":"https://api.github.com/repos/virtual-monk/bulletin-board/branches{/branch}","tags_url":"https://api.github.com/repos/virtual-monk/bulletin-board/tags","blobs_url":"https://api.github.com/repos/virtual-monk/bulletin-board/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/virtual-monk/bulletin-board/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/virtual-monk/bulletin-board/git/refs{/sha}","trees_url":"https://api.github.com/repos/virtual-monk/bulletin-board/git/trees{/sha}","statuses_url":"https://api.github.com/repos/virtual-monk/bulletin-board/statuses/{sha}","languages_url":"https://api.github.com/repos/virtual-monk/bulletin-board/languages","stargazers_url":"https://api.github.com/repos/virtual-monk/bulletin-board/stargazers","contributors_url":"https://api.github.com/repos/virtual-monk/bulletin-board/contributors","subscribers_url":"https://api.github.com/repos/virtual-monk/bulletin-board/subscribers","subscription_url":"https://api.github.com/repos/virtual-monk/bulletin-board/subscription","commits_url":"https://api.github.com/repos/virtual-monk/bulletin-board/commits{/sha}","git_commits_url":"https://api.github.com/repos/virtual-monk/bulletin-board/git/commits{/sha}","comments_url":"https://api.github.com/repos/virtual-monk/bulletin-board/comments{/number}","issue_comment_url":"https://api.github.com/repos/virtual-monk/bulletin-board/issues/comments{/number}","contents_url":"https://api.github.com/repos/virtual-monk/bulletin-board/contents/{+path}","compare_url":"https://api.github.com/repos/virtual-monk/bulletin-board/compare/{base}...{head}","merges_url":"https://api.github.com/repos/virtual-monk/bulletin-board/merges","archive_url":"https://api.github.com/repos/virtual-monk/bulletin-board/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/virtual-monk/bulletin-board/downloads","issues_url":"https://api.github.com/repos/virtual-monk/bulletin-board/issues{/number}","pulls_url":"https://api.github.com/repos/virtual-monk/bulletin-board/pulls{/number}","milestones_url":"https://api.github.com/repos/virtual-monk/bulletin-board/milestones{/number}","notifications_url":"https://api.github.com/repos/virtual-monk/bulletin-board/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/virtual-monk/bulletin-board/labels{/name}","releases_url":"https://api.github.com/repos/virtual-monk/bulletin-board/releases{/id}","created_at":"2015-04-06T22:18:51Z","updated_at":"2015-04-22T22:33:57Z","pushed_at":"2015-04-26T14:22:49Z","git_url":"git://github.com/virtual-monk/bulletin-board.git","ssh_url":"git@github.com:virtual-monk/bulletin-board.git","clone_url":"https://github.com/virtual-monk/bulletin-board.git","svn_url":"https://github.com/virtual-monk/bulletin-board","homepage":null,"size":976,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/virtual-monk/bulletin-board/pulls/4"},"html":{"href":"https://github.com/virtual-monk/bulletin-board/pull/4"},"issue":{"href":"https://api.github.com/repos/virtual-monk/bulletin-board/issues/4"},"comments":{"href":"https://api.github.com/repos/virtual-monk/bulletin-board/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/virtual-monk/bulletin-board/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/virtual-monk/bulletin-board/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/virtual-monk/bulletin-board/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/virtual-monk/bulletin-board/statuses/cd410010d26c1a9ad8d431a0ac89cb2793c7f0bb"}}}}