{"action":"created","comment":{"url":"https://api.github.com/repos/Openki/Openki/pulls/comments/84871279","pull_request_review_id":5620292,"id":84871279,"diff_hunk":"@@ -16,3 +16,16 @@ Template.layout.rendered = function() {\n \t$(window).resize(function(event){ getViewportWidth(); });\n \tSession.set('isRetina', (window.devicePixelRatio == 2));\n };\n+\n+\n+Template.layout.events({\n+\t'click .js-scroll': function(event, instance) {\n+\t\tvar position = $(event.target.getAttribute('href')).offset();\n+\t\tif(typeof position != 'undefined') {\n+\t\t\t// subtract the amount of pixels of the height of the navbar\n+\t\t\tposition = position.top - 50;","path":"client/views/main.js","position":11,"original_position":11,"commit_id":"45bff533ea8c1622cb976131c6e6f720f705d9d9","original_commit_id":"cf4fb778e985efae77ab9f6f5944e0603160ebb3","user":{"login":"1u","id":4281072,"avatar_url":"https://avatars.githubusercontent.com/u/4281072?v=3","gravatar_id":"","url":"https://api.github.com/users/1u","html_url":"https://github.com/1u","followers_url":"https://api.github.com/users/1u/followers","following_url":"https://api.github.com/users/1u/following{/other_user}","gists_url":"https://api.github.com/users/1u/gists{/gist_id}","starred_url":"https://api.github.com/users/1u/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1u/subscriptions","organizations_url":"https://api.github.com/users/1u/orgs","repos_url":"https://api.github.com/users/1u/repos","events_url":"https://api.github.com/users/1u/events{/privacy}","received_events_url":"https://api.github.com/users/1u/received_events","type":"User","site_admin":false},"body":"Q: Can't we get the 50px as a variable out of a script? The top-navbar might not always be this size. Or define hight globally?","created_at":"2016-10-25T10:16:33Z","updated_at":"2016-10-25T10:16:33Z","html_url":"https://github.com/Openki/Openki/pull/569#discussion_r84871279","pull_request_url":"https://api.github.com/repos/Openki/Openki/pulls/569","_links":{"self":{"href":"https://api.github.com/repos/Openki/Openki/pulls/comments/84871279"},"html":{"href":"https://github.com/Openki/Openki/pull/569#discussion_r84871279"},"pull_request":{"href":"https://api.github.com/repos/Openki/Openki/pulls/569"}}},"pull_request":{"url":"https://api.github.com/repos/Openki/Openki/pulls/569","id":90713163,"html_url":"https://github.com/Openki/Openki/pull/569","diff_url":"https://github.com/Openki/Openki/pull/569.diff","patch_url":"https://github.com/Openki/Openki/pull/569.patch","issue_url":"https://api.github.com/repos/Openki/Openki/issues/569","number":569,"state":"open","locked":false,"title":"Sort courses in profile views","user":{"login":"schaum","id":4143984,"avatar_url":"https://avatars.githubusercontent.com/u/4143984?v=3","gravatar_id":"","url":"https://api.github.com/users/schaum","html_url":"https://github.com/schaum","followers_url":"https://api.github.com/users/schaum/followers","following_url":"https://api.github.com/users/schaum/following{/other_user}","gists_url":"https://api.github.com/users/schaum/gists{/gist_id}","starred_url":"https://api.github.com/users/schaum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schaum/subscriptions","organizations_url":"https://api.github.com/users/schaum/orgs","repos_url":"https://api.github.com/users/schaum/repos","events_url":"https://api.github.com/users/schaum/events{/privacy}","received_events_url":"https://api.github.com/users/schaum/received_events","type":"User","site_admin":false},"body":"It's the same as on the previous pull request, just added scrolling bookmarks. \r\nList all courses of a user by the role in the course. Two pages: \"/profile\" and \"/user/user_ID\"\r\n#521","created_at":"2016-10-24T23:34:51Z","updated_at":"2016-10-25T10:16:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df5808a562dbc31d9f87be85d3f2986d7ad5e818","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Openki/Openki/pulls/569/commits","review_comments_url":"https://api.github.com/repos/Openki/Openki/pulls/569/comments","review_comment_url":"https://api.github.com/repos/Openki/Openki/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Openki/Openki/issues/569/comments","statuses_url":"https://api.github.com/repos/Openki/Openki/statuses/45bff533ea8c1622cb976131c6e6f720f705d9d9","head":{"label":"Openki:sortMyCourses","ref":"sortMyCourses","sha":"45bff533ea8c1622cb976131c6e6f720f705d9d9","user":{"login":"Openki","id":22294153,"avatar_url":"https://avatars.githubusercontent.com/u/22294153?v=3","gravatar_id":"","url":"https://api.github.com/users/Openki","html_url":"https://github.com/Openki","followers_url":"https://api.github.com/users/Openki/followers","following_url":"https://api.github.com/users/Openki/following{/other_user}","gists_url":"https://api.github.com/users/Openki/gists{/gist_id}","starred_url":"https://api.github.com/users/Openki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Openki/subscriptions","organizations_url":"https://api.github.com/users/Openki/orgs","repos_url":"https://api.github.com/users/Openki/repos","events_url":"https://api.github.com/users/Openki/events{/privacy}","received_events_url":"https://api.github.com/users/Openki/received_events","type":"Organization","site_admin":false},"repo":{"id":11238265,"name":"Openki","full_name":"Openki/Openki","owner":{"login":"Openki","id":22294153,"avatar_url":"https://avatars.githubusercontent.com/u/22294153?v=3","gravatar_id":"","url":"https://api.github.com/users/Openki","html_url":"https://github.com/Openki","followers_url":"https://api.github.com/users/Openki/followers","following_url":"https://api.github.com/users/Openki/following{/other_user}","gists_url":"https://api.github.com/users/Openki/gists{/gist_id}","starred_url":"https://api.github.com/users/Openki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Openki/subscriptions","organizations_url":"https://api.github.com/users/Openki/orgs","repos_url":"https://api.github.com/users/Openki/repos","events_url":"https://api.github.com/users/Openki/events{/privacy}","received_events_url":"https://api.github.com/users/Openki/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Openki/Openki","description":"Meteor.js Course-Organization-Platform – A tool to build up and organize local communities – Open education for real –","fork":false,"url":"https://api.github.com/repos/Openki/Openki","forks_url":"https://api.github.com/repos/Openki/Openki/forks","keys_url":"https://api.github.com/repos/Openki/Openki/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Openki/Openki/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Openki/Openki/teams","hooks_url":"https://api.github.com/repos/Openki/Openki/hooks","issue_events_url":"https://api.github.com/repos/Openki/Openki/issues/events{/number}","events_url":"https://api.github.com/repos/Openki/Openki/events","assignees_url":"https://api.github.com/repos/Openki/Openki/assignees{/user}","branches_url":"https://api.github.com/repos/Openki/Openki/branches{/branch}","tags_url":"https://api.github.com/repos/Openki/Openki/tags","blobs_url":"https://api.github.com/repos/Openki/Openki/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Openki/Openki/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Openki/Openki/git/refs{/sha}","trees_url":"https://api.github.com/repos/Openki/Openki/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Openki/Openki/statuses/{sha}","languages_url":"https://api.github.com/repos/Openki/Openki/languages","stargazers_url":"https://api.github.com/repos/Openki/Openki/stargazers","contributors_url":"https://api.github.com/repos/Openki/Openki/contributors","subscribers_url":"https://api.github.com/repos/Openki/Openki/subscribers","subscription_url":"https://api.github.com/repos/Openki/Openki/subscription","commits_url":"https://api.github.com/repos/Openki/Openki/commits{/sha}","git_commits_url":"https://api.github.com/repos/Openki/Openki/git/commits{/sha}","comments_url":"https://api.github.com/repos/Openki/Openki/comments{/number}","issue_comment_url":"https://api.github.com/repos/Openki/Openki/issues/comments{/number}","contents_url":"https://api.github.com/repos/Openki/Openki/contents/{+path}","compare_url":"https://api.github.com/repos/Openki/Openki/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Openki/Openki/merges","archive_url":"https://api.github.com/repos/Openki/Openki/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Openki/Openki/downloads","issues_url":"https://api.github.com/repos/Openki/Openki/issues{/number}","pulls_url":"https://api.github.com/repos/Openki/Openki/pulls{/number}","milestones_url":"https://api.github.com/repos/Openki/Openki/milestones{/number}","notifications_url":"https://api.github.com/repos/Openki/Openki/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Openki/Openki/labels{/name}","releases_url":"https://api.github.com/repos/Openki/Openki/releases{/id}","deployments_url":"https://api.github.com/repos/Openki/Openki/deployments","created_at":"2013-07-07T18:54:24Z","updated_at":"2016-10-24T23:04:03Z","pushed_at":"2016-10-25T01:18:33Z","git_url":"git://github.com/Openki/Openki.git","ssh_url":"git@github.com:Openki/Openki.git","clone_url":"https://github.com/Openki/Openki.git","svn_url":"https://github.com/Openki/Openki","homepage":"https://openki.net","size":7665,"stargazers_count":78,"watchers_count":78,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":202,"forks":20,"open_issues":202,"watchers":78,"default_branch":"master"}},"base":{"label":"Openki:master","ref":"master","sha":"a999d697f39ab6a3db4f0b020ef7a6fe91f7ada6","user":{"login":"Openki","id":22294153,"avatar_url":"https://avatars.githubusercontent.com/u/22294153?v=3","gravatar_id":"","url":"https://api.github.com/users/Openki","html_url":"https://github.com/Openki","followers_url":"https://api.github.com/users/Openki/followers","following_url":"https://api.github.com/users/Openki/following{/other_user}","gists_url":"https://api.github.com/users/Openki/gists{/gist_id}","starred_url":"https://api.github.com/users/Openki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Openki/subscriptions","organizations_url":"https://api.github.com/users/Openki/orgs","repos_url":"https://api.github.com/users/Openki/repos","events_url":"https://api.github.com/users/Openki/events{/privacy}","received_events_url":"https://api.github.com/users/Openki/received_events","type":"Organization","site_admin":false},"repo":{"id":11238265,"name":"Openki","full_name":"Openki/Openki","owner":{"login":"Openki","id":22294153,"avatar_url":"https://avatars.githubusercontent.com/u/22294153?v=3","gravatar_id":"","url":"https://api.github.com/users/Openki","html_url":"https://github.com/Openki","followers_url":"https://api.github.com/users/Openki/followers","following_url":"https://api.github.com/users/Openki/following{/other_user}","gists_url":"https://api.github.com/users/Openki/gists{/gist_id}","starred_url":"https://api.github.com/users/Openki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Openki/subscriptions","organizations_url":"https://api.github.com/users/Openki/orgs","repos_url":"https://api.github.com/users/Openki/repos","events_url":"https://api.github.com/users/Openki/events{/privacy}","received_events_url":"https://api.github.com/users/Openki/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Openki/Openki","description":"Meteor.js Course-Organization-Platform – A tool to build up and organize local communities – Open education for real –","fork":false,"url":"https://api.github.com/repos/Openki/Openki","forks_url":"https://api.github.com/repos/Openki/Openki/forks","keys_url":"https://api.github.com/repos/Openki/Openki/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Openki/Openki/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Openki/Openki/teams","hooks_url":"https://api.github.com/repos/Openki/Openki/hooks","issue_events_url":"https://api.github.com/repos/Openki/Openki/issues/events{/number}","events_url":"https://api.github.com/repos/Openki/Openki/events","assignees_url":"https://api.github.com/repos/Openki/Openki/assignees{/user}","branches_url":"https://api.github.com/repos/Openki/Openki/branches{/branch}","tags_url":"https://api.github.com/repos/Openki/Openki/tags","blobs_url":"https://api.github.com/repos/Openki/Openki/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Openki/Openki/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Openki/Openki/git/refs{/sha}","trees_url":"https://api.github.com/repos/Openki/Openki/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Openki/Openki/statuses/{sha}","languages_url":"https://api.github.com/repos/Openki/Openki/languages","stargazers_url":"https://api.github.com/repos/Openki/Openki/stargazers","contributors_url":"https://api.github.com/repos/Openki/Openki/contributors","subscribers_url":"https://api.github.com/repos/Openki/Openki/subscribers","subscription_url":"https://api.github.com/repos/Openki/Openki/subscription","commits_url":"https://api.github.com/repos/Openki/Openki/commits{/sha}","git_commits_url":"https://api.github.com/repos/Openki/Openki/git/commits{/sha}","comments_url":"https://api.github.com/repos/Openki/Openki/comments{/number}","issue_comment_url":"https://api.github.com/repos/Openki/Openki/issues/comments{/number}","contents_url":"https://api.github.com/repos/Openki/Openki/contents/{+path}","compare_url":"https://api.github.com/repos/Openki/Openki/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Openki/Openki/merges","archive_url":"https://api.github.com/repos/Openki/Openki/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Openki/Openki/downloads","issues_url":"https://api.github.com/repos/Openki/Openki/issues{/number}","pulls_url":"https://api.github.com/repos/Openki/Openki/pulls{/number}","milestones_url":"https://api.github.com/repos/Openki/Openki/milestones{/number}","notifications_url":"https://api.github.com/repos/Openki/Openki/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Openki/Openki/labels{/name}","releases_url":"https://api.github.com/repos/Openki/Openki/releases{/id}","deployments_url":"https://api.github.com/repos/Openki/Openki/deployments","created_at":"2013-07-07T18:54:24Z","updated_at":"2016-10-24T23:04:03Z","pushed_at":"2016-10-25T01:18:33Z","git_url":"git://github.com/Openki/Openki.git","ssh_url":"git@github.com:Openki/Openki.git","clone_url":"https://github.com/Openki/Openki.git","svn_url":"https://github.com/Openki/Openki","homepage":"https://openki.net","size":7665,"stargazers_count":78,"watchers_count":78,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":202,"forks":20,"open_issues":202,"watchers":78,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Openki/Openki/pulls/569"},"html":{"href":"https://github.com/Openki/Openki/pull/569"},"issue":{"href":"https://api.github.com/repos/Openki/Openki/issues/569"},"comments":{"href":"https://api.github.com/repos/Openki/Openki/issues/569/comments"},"review_comments":{"href":"https://api.github.com/repos/Openki/Openki/pulls/569/comments"},"review_comment":{"href":"https://api.github.com/repos/Openki/Openki/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Openki/Openki/pulls/569/commits"},"statuses":{"href":"https://api.github.com/repos/Openki/Openki/statuses/45bff533ea8c1622cb976131c6e6f720f705d9d9"}}}}
{"actor":{"display_login":"1u"}}