{"action":"created","comment":{"url":"https://api.github.com/repos/rrogowski/boulder-buddy/pulls/comments/137962545","pull_request_review_id":61696898,"id":137962545,"diff_hunk":"@@ -46,24 +49,46 @@ let NAV = {\n \n \t\tlet options = {};\n \t\toptions.enableFavoritesAction = true;\n+\t\toptions.enableDeleteAction = true;\n \t\tlet entry = NAV.buildRouteEntry(route, options);\n \t\tlet setter = $('<span>').addClass('setter');\n-\t\tlet picture = $('<img>').addClass('picture');\n+\t\tlet picture = $('<div>').addClass('picture');\n \t\tlet description = $('<div>').addClass('description');\n \t\tlet descriptionLabel= $('<div>').addClass('description-label');\n+\t\tlet viewCanvas = document.createElement(\"canvas\");\n+\n+\t    viewCanvas.style.width='100%';\n+\t    viewCanvas.style.height='';\n+\t    viewCanvas.width=$('#photo')[0].clientWidth;\n+\t    viewCanvas.height=viewCanvas.width/LOADER.wallAspect;\n+\t\tlet context = viewCanvas.getContext('2d');\n+\n+\t    DATABASE.loadMap(route.key).then((map) =>{\n+\t    \tvar img = new Image();\n+\t    \timg.onload = function(){\n+\t\t\t\tcontext.clearRect(0,0,viewCanvas.width,viewCanvas.height);\n+\t    \t\tcontext.drawImage(img,0,0);\n+\t    \t};\n+\t    \timg.src = map;\n+\t    });\n+\n \n \t\tsetter.text('Setter: ' + (route.setter || 'Unknown'));\n-\t\tpicture.attr('src', 'assets/wall2.jpg');\n \t\tpicture.css({\n-\t\t\twidth: 800,\n-\t\t\theight: 600\n+\t\t\t'background-image': 'url(../assets/wall2.jpg)',\n+\t\t\t'width': '100vw',\n+    \t\t'height': '100%',","path":"scripts/nav.js","position":46,"original_position":46,"commit_id":"bf60533ad19a2136e323855721bacce1e5286bd5","original_commit_id":"bf60533ad19a2136e323855721bacce1e5286bd5","user":{"login":"rrogowski","id":5777094,"avatar_url":"https://avatars0.githubusercontent.com/u/5777094?v=4","gravatar_id":"","url":"https://api.github.com/users/rrogowski","html_url":"https://github.com/rrogowski","followers_url":"https://api.github.com/users/rrogowski/followers","following_url":"https://api.github.com/users/rrogowski/following{/other_user}","gists_url":"https://api.github.com/users/rrogowski/gists{/gist_id}","starred_url":"https://api.github.com/users/rrogowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrogowski/subscriptions","organizations_url":"https://api.github.com/users/rrogowski/orgs","repos_url":"https://api.github.com/users/rrogowski/repos","events_url":"https://api.github.com/users/rrogowski/events{/privacy}","received_events_url":"https://api.github.com/users/rrogowski/received_events","type":"User","site_admin":false},"body":"fix formatting here too, pls","created_at":"2017-09-10T23:04:06Z","updated_at":"2017-09-10T23:23:50Z","html_url":"https://github.com/rrogowski/boulder-buddy/pull/21#discussion_r137962545","pull_request_url":"https://api.github.com/repos/rrogowski/boulder-buddy/pulls/21","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/rrogowski/boulder-buddy/pulls/comments/137962545"},"html":{"href":"https://github.com/rrogowski/boulder-buddy/pull/21#discussion_r137962545"},"pull_request":{"href":"https://api.github.com/repos/rrogowski/boulder-buddy/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/rrogowski/boulder-buddy/pulls/21","id":140184089,"html_url":"https://github.com/rrogowski/boulder-buddy/pull/21","diff_url":"https://github.com/rrogowski/boulder-buddy/pull/21.diff","patch_url":"https://github.com/rrogowski/boulder-buddy/pull/21.patch","issue_url":"https://api.github.com/repos/rrogowski/boulder-buddy/issues/21","number":21,"state":"open","locked":false,"title":"Add user imp for save and load routes from database","user":{"login":"Cubler","id":10574856,"avatar_url":"https://avatars0.githubusercontent.com/u/10574856?v=4","gravatar_id":"","url":"https://api.github.com/users/Cubler","html_url":"https://github.com/Cubler","followers_url":"https://api.github.com/users/Cubler/followers","following_url":"https://api.github.com/users/Cubler/following{/other_user}","gists_url":"https://api.github.com/users/Cubler/gists{/gist_id}","starred_url":"https://api.github.com/users/Cubler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cubler/subscriptions","organizations_url":"https://api.github.com/users/Cubler/orgs","repos_url":"https://api.github.com/users/Cubler/repos","events_url":"https://api.github.com/users/Cubler/events{/privacy}","received_events_url":"https://api.github.com/users/Cubler/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-09T20:42:10Z","updated_at":"2017-09-10T23:23:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"663f7e9d0427048eec224ac18b61c70536de50e1","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/rrogowski/boulder-buddy/pulls/21/commits","review_comments_url":"https://api.github.com/repos/rrogowski/boulder-buddy/pulls/21/comments","review_comment_url":"https://api.github.com/repos/rrogowski/boulder-buddy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rrogowski/boulder-buddy/issues/21/comments","statuses_url":"https://api.github.com/repos/rrogowski/boulder-buddy/statuses/bf60533ad19a2136e323855721bacce1e5286bd5","head":{"label":"rrogowski:addUserImp","ref":"addUserImp","sha":"bf60533ad19a2136e323855721bacce1e5286bd5","user":{"login":"rrogowski","id":5777094,"avatar_url":"https://avatars0.githubusercontent.com/u/5777094?v=4","gravatar_id":"","url":"https://api.github.com/users/rrogowski","html_url":"https://github.com/rrogowski","followers_url":"https://api.github.com/users/rrogowski/followers","following_url":"https://api.github.com/users/rrogowski/following{/other_user}","gists_url":"https://api.github.com/users/rrogowski/gists{/gist_id}","starred_url":"https://api.github.com/users/rrogowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrogowski/subscriptions","organizations_url":"https://api.github.com/users/rrogowski/orgs","repos_url":"https://api.github.com/users/rrogowski/repos","events_url":"https://api.github.com/users/rrogowski/events{/privacy}","received_events_url":"https://api.github.com/users/rrogowski/received_events","type":"User","site_admin":false},"repo":{"id":102231864,"name":"boulder-buddy","full_name":"rrogowski/boulder-buddy","owner":{"login":"rrogowski","id":5777094,"avatar_url":"https://avatars0.githubusercontent.com/u/5777094?v=4","gravatar_id":"","url":"https://api.github.com/users/rrogowski","html_url":"https://github.com/rrogowski","followers_url":"https://api.github.com/users/rrogowski/followers","following_url":"https://api.github.com/users/rrogowski/following{/other_user}","gists_url":"https://api.github.com/users/rrogowski/gists{/gist_id}","starred_url":"https://api.github.com/users/rrogowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrogowski/subscriptions","organizations_url":"https://api.github.com/users/rrogowski/orgs","repos_url":"https://api.github.com/users/rrogowski/repos","events_url":"https://api.github.com/users/rrogowski/events{/privacy}","received_events_url":"https://api.github.com/users/rrogowski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rrogowski/boulder-buddy","description":"David's and Roman's Climbing App","fork":false,"url":"https://api.github.com/repos/rrogowski/boulder-buddy","forks_url":"https://api.github.com/repos/rrogowski/boulder-buddy/forks","keys_url":"https://api.github.com/repos/rrogowski/boulder-buddy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rrogowski/boulder-buddy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rrogowski/boulder-buddy/teams","hooks_url":"https://api.github.com/repos/rrogowski/boulder-buddy/hooks","issue_events_url":"https://api.github.com/repos/rrogowski/boulder-buddy/issues/events{/number}","events_url":"https://api.github.com/repos/rrogowski/boulder-buddy/events","assignees_url":"https://api.github.com/repos/rrogowski/boulder-buddy/assignees{/user}","branches_url":"https://api.github.com/repos/rrogowski/boulder-buddy/branches{/branch}","tags_url":"https://api.github.com/repos/rrogowski/boulder-buddy/tags","blobs_url":"https://api.github.com/repos/rrogowski/boulder-buddy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rrogowski/boulder-buddy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rrogowski/boulder-buddy/git/refs{/sha}","trees_url":"https://api.github.com/repos/rrogowski/boulder-buddy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rrogowski/boulder-buddy/statuses/{sha}","languages_url":"https://api.github.com/repos/rrogowski/boulder-buddy/languages","stargazers_url":"https://api.github.com/repos/rrogowski/boulder-buddy/stargazers","contributors_url":"https://api.github.com/repos/rrogowski/boulder-buddy/contributors","subscribers_url":"https://api.github.com/repos/rrogowski/boulder-buddy/subscribers","subscription_url":"https://api.github.com/repos/rrogowski/boulder-buddy/subscription","commits_url":"https://api.github.com/repos/rrogowski/boulder-buddy/commits{/sha}","git_commits_url":"https://api.github.com/repos/rrogowski/boulder-buddy/git/commits{/sha}","comments_url":"https://api.github.com/repos/rrogowski/boulder-buddy/comments{/number}","issue_comment_url":"https://api.github.com/repos/rrogowski/boulder-buddy/issues/comments{/number}","contents_url":"https://api.github.com/repos/rrogowski/boulder-buddy/contents/{+path}","compare_url":"https://api.github.com/repos/rrogowski/boulder-buddy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rrogowski/boulder-buddy/merges","archive_url":"https://api.github.com/repos/rrogowski/boulder-buddy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rrogowski/boulder-buddy/downloads","issues_url":"https://api.github.com/repos/rrogowski/boulder-buddy/issues{/number}","pulls_url":"https://api.github.com/repos/rrogowski/boulder-buddy/pulls{/number}","milestones_url":"https://api.github.com/repos/rrogowski/boulder-buddy/milestones{/number}","notifications_url":"https://api.github.com/repos/rrogowski/boulder-buddy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rrogowski/boulder-buddy/labels{/name}","releases_url":"https://api.github.com/repos/rrogowski/boulder-buddy/releases{/id}","deployments_url":"https://api.github.com/repos/rrogowski/boulder-buddy/deployments","created_at":"2017-09-03T00:45:04Z","updated_at":"2017-09-05T13:10:12Z","pushed_at":"2017-09-10T22:36:23Z","git_url":"git://github.com/rrogowski/boulder-buddy.git","ssh_url":"git@github.com:rrogowski/boulder-buddy.git","clone_url":"https://github.com/rrogowski/boulder-buddy.git","svn_url":"https://github.com/rrogowski/boulder-buddy","homepage":"https://rrogowski.github.io/boulder-buddy/","size":9517,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_projects":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":1,"default_branch":"master"}},"base":{"label":"rrogowski:master","ref":"master","sha":"198af209f15e025d1b1226ca2b5189a49fdba1c5","user":{"login":"rrogowski","id":5777094,"avatar_url":"https://avatars0.githubusercontent.com/u/5777094?v=4","gravatar_id":"","url":"https://api.github.com/users/rrogowski","html_url":"https://github.com/rrogowski","followers_url":"https://api.github.com/users/rrogowski/followers","following_url":"https://api.github.com/users/rrogowski/following{/other_user}","gists_url":"https://api.github.com/users/rrogowski/gists{/gist_id}","starred_url":"https://api.github.com/users/rrogowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrogowski/subscriptions","organizations_url":"https://api.github.com/users/rrogowski/orgs","repos_url":"https://api.github.com/users/rrogowski/repos","events_url":"https://api.github.com/users/rrogowski/events{/privacy}","received_events_url":"https://api.github.com/users/rrogowski/received_events","type":"User","site_admin":false},"repo":{"id":102231864,"name":"boulder-buddy","full_name":"rrogowski/boulder-buddy","owner":{"login":"rrogowski","id":5777094,"avatar_url":"https://avatars0.githubusercontent.com/u/5777094?v=4","gravatar_id":"","url":"https://api.github.com/users/rrogowski","html_url":"https://github.com/rrogowski","followers_url":"https://api.github.com/users/rrogowski/followers","following_url":"https://api.github.com/users/rrogowski/following{/other_user}","gists_url":"https://api.github.com/users/rrogowski/gists{/gist_id}","starred_url":"https://api.github.com/users/rrogowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrogowski/subscriptions","organizations_url":"https://api.github.com/users/rrogowski/orgs","repos_url":"https://api.github.com/users/rrogowski/repos","events_url":"https://api.github.com/users/rrogowski/events{/privacy}","received_events_url":"https://api.github.com/users/rrogowski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rrogowski/boulder-buddy","description":"David's and Roman's Climbing App","fork":false,"url":"https://api.github.com/repos/rrogowski/boulder-buddy","forks_url":"https://api.github.com/repos/rrogowski/boulder-buddy/forks","keys_url":"https://api.github.com/repos/rrogowski/boulder-buddy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rrogowski/boulder-buddy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rrogowski/boulder-buddy/teams","hooks_url":"https://api.github.com/repos/rrogowski/boulder-buddy/hooks","issue_events_url":"https://api.github.com/repos/rrogowski/boulder-buddy/issues/events{/number}","events_url":"https://api.github.com/repos/rrogowski/boulder-buddy/events","assignees_url":"https://api.github.com/repos/rrogowski/boulder-buddy/assignees{/user}","branches_url":"https://api.github.com/repos/rrogowski/boulder-buddy/branches{/branch}","tags_url":"https://api.github.com/repos/rrogowski/boulder-buddy/tags","blobs_url":"https://api.github.com/repos/rrogowski/boulder-buddy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rrogowski/boulder-buddy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rrogowski/boulder-buddy/git/refs{/sha}","trees_url":"https://api.github.com/repos/rrogowski/boulder-buddy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rrogowski/boulder-buddy/statuses/{sha}","languages_url":"https://api.github.com/repos/rrogowski/boulder-buddy/languages","stargazers_url":"https://api.github.com/repos/rrogowski/boulder-buddy/stargazers","contributors_url":"https://api.github.com/repos/rrogowski/boulder-buddy/contributors","subscribers_url":"https://api.github.com/repos/rrogowski/boulder-buddy/subscribers","subscription_url":"https://api.github.com/repos/rrogowski/boulder-buddy/subscription","commits_url":"https://api.github.com/repos/rrogowski/boulder-buddy/commits{/sha}","git_commits_url":"https://api.github.com/repos/rrogowski/boulder-buddy/git/commits{/sha}","comments_url":"https://api.github.com/repos/rrogowski/boulder-buddy/comments{/number}","issue_comment_url":"https://api.github.com/repos/rrogowski/boulder-buddy/issues/comments{/number}","contents_url":"https://api.github.com/repos/rrogowski/boulder-buddy/contents/{+path}","compare_url":"https://api.github.com/repos/rrogowski/boulder-buddy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rrogowski/boulder-buddy/merges","archive_url":"https://api.github.com/repos/rrogowski/boulder-buddy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rrogowski/boulder-buddy/downloads","issues_url":"https://api.github.com/repos/rrogowski/boulder-buddy/issues{/number}","pulls_url":"https://api.github.com/repos/rrogowski/boulder-buddy/pulls{/number}","milestones_url":"https://api.github.com/repos/rrogowski/boulder-buddy/milestones{/number}","notifications_url":"https://api.github.com/repos/rrogowski/boulder-buddy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rrogowski/boulder-buddy/labels{/name}","releases_url":"https://api.github.com/repos/rrogowski/boulder-buddy/releases{/id}","deployments_url":"https://api.github.com/repos/rrogowski/boulder-buddy/deployments","created_at":"2017-09-03T00:45:04Z","updated_at":"2017-09-05T13:10:12Z","pushed_at":"2017-09-10T22:36:23Z","git_url":"git://github.com/rrogowski/boulder-buddy.git","ssh_url":"git@github.com:rrogowski/boulder-buddy.git","clone_url":"https://github.com/rrogowski/boulder-buddy.git","svn_url":"https://github.com/rrogowski/boulder-buddy","homepage":"https://rrogowski.github.io/boulder-buddy/","size":9517,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_projects":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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rrogowski/boulder-buddy/pulls/21"},"html":{"href":"https://github.com/rrogowski/boulder-buddy/pull/21"},"issue":{"href":"https://api.github.com/repos/rrogowski/boulder-buddy/issues/21"},"comments":{"href":"https://api.github.com/repos/rrogowski/boulder-buddy/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/rrogowski/boulder-buddy/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/rrogowski/boulder-buddy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rrogowski/boulder-buddy/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/rrogowski/boulder-buddy/statuses/bf60533ad19a2136e323855721bacce1e5286bd5"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"rrogowski"}}