{"action":"created","comment":{"url":"https://api.github.com/repos/refugeetech/platform/pulls/comments/50134607","id":50134607,"diff_hunk":"@@ -1,22 +1,40 @@\n-Meteor.startup(function() {\n-// Runs when the DOM is ready\n+if (Meteor.isClient) {\n \n-  const NAVBAR_HEIGHT = 75; // original navbar height in px\n+  Meteor.startup(function() {\n+  // Runs when the DOM is ready\n \n-  var $window = $(window),\n-      $document = $(document);\n+    const NAVBAR_HEIGHT = 75; // original navbar height in px\n \n-  $window.on('scroll', function(e) {\n-  // Runs whenever the page is scrolled\n-    toggleNavbarClass();\n-  });\n+    var $window    = $(window),\n+        $document  = $(document),\n+        $searchbar = $('#searchbar');\n+\n+    $window.on('scroll', function(e) {\n+    // The scroll event is not supported yet by Meteor https://github.com/meteor/meteor/issues/3298,","path":"main/client/header/navbar.js","position":22,"original_position":22,"commit_id":"c20e8f887494f97ba43893bf2d0f42ecd9bea22e","original_commit_id":"c20e8f887494f97ba43893bf2d0f42ecd9bea22e","user":{"login":"leosa83","id":710548,"avatar_url":"https://avatars.githubusercontent.com/u/710548?v=3","gravatar_id":"","url":"https://api.github.com/users/leosa83","html_url":"https://github.com/leosa83","followers_url":"https://api.github.com/users/leosa83/followers","following_url":"https://api.github.com/users/leosa83/following{/other_user}","gists_url":"https://api.github.com/users/leosa83/gists{/gist_id}","starred_url":"https://api.github.com/users/leosa83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leosa83/subscriptions","organizations_url":"https://api.github.com/users/leosa83/orgs","repos_url":"https://api.github.com/users/leosa83/repos","events_url":"https://api.github.com/users/leosa83/events{/privacy}","received_events_url":"https://api.github.com/users/leosa83/received_events","type":"User","site_admin":false},"body":"Great documentation.","created_at":"2016-01-19T16:24:11Z","updated_at":"2016-01-19T16:24:11Z","html_url":"https://github.com/refugeetech/platform/pull/99#discussion_r50134607","pull_request_url":"https://api.github.com/repos/refugeetech/platform/pulls/99","_links":{"self":{"href":"https://api.github.com/repos/refugeetech/platform/pulls/comments/50134607"},"html":{"href":"https://github.com/refugeetech/platform/pull/99#discussion_r50134607"},"pull_request":{"href":"https://api.github.com/repos/refugeetech/platform/pulls/99"}}},"pull_request":{"url":"https://api.github.com/repos/refugeetech/platform/pulls/99","id":56488740,"html_url":"https://github.com/refugeetech/platform/pull/99","diff_url":"https://github.com/refugeetech/platform/pull/99.diff","patch_url":"https://github.com/refugeetech/platform/pull/99.patch","issue_url":"https://api.github.com/repos/refugeetech/platform/issues/99","number":99,"state":"open","locked":false,"title":"First version of searchbar. No backend stuff, no mobile version","user":{"login":"leosa83","id":710548,"avatar_url":"https://avatars.githubusercontent.com/u/710548?v=3","gravatar_id":"","url":"https://api.github.com/users/leosa83","html_url":"https://github.com/leosa83","followers_url":"https://api.github.com/users/leosa83/followers","following_url":"https://api.github.com/users/leosa83/following{/other_user}","gists_url":"https://api.github.com/users/leosa83/gists{/gist_id}","starred_url":"https://api.github.com/users/leosa83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leosa83/subscriptions","organizations_url":"https://api.github.com/users/leosa83/orgs","repos_url":"https://api.github.com/users/leosa83/repos","events_url":"https://api.github.com/users/leosa83/events{/privacy}","received_events_url":"https://api.github.com/users/leosa83/received_events","type":"User","site_admin":false},"body":"@modsmoss made a first version.\r\nbackend functionality developed in feature-#77 should now be added. ","created_at":"2016-01-19T16:21:39Z","updated_at":"2016-01-19T16:24:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa6f6b5bbc8e72157a66dae741f6c361d05960e5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/refugeetech/platform/pulls/99/commits","review_comments_url":"https://api.github.com/repos/refugeetech/platform/pulls/99/comments","review_comment_url":"https://api.github.com/repos/refugeetech/platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/refugeetech/platform/issues/99/comments","statuses_url":"https://api.github.com/repos/refugeetech/platform/statuses/c20e8f887494f97ba43893bf2d0f42ecd9bea22e","head":{"label":"refugeetech:feature-searchbar","ref":"feature-searchbar","sha":"c20e8f887494f97ba43893bf2d0f42ecd9bea22e","user":{"login":"refugeetech","id":15104738,"avatar_url":"https://avatars.githubusercontent.com/u/15104738?v=3","gravatar_id":"","url":"https://api.github.com/users/refugeetech","html_url":"https://github.com/refugeetech","followers_url":"https://api.github.com/users/refugeetech/followers","following_url":"https://api.github.com/users/refugeetech/following{/other_user}","gists_url":"https://api.github.com/users/refugeetech/gists{/gist_id}","starred_url":"https://api.github.com/users/refugeetech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/refugeetech/subscriptions","organizations_url":"https://api.github.com/users/refugeetech/orgs","repos_url":"https://api.github.com/users/refugeetech/repos","events_url":"https://api.github.com/users/refugeetech/events{/privacy}","received_events_url":"https://api.github.com/users/refugeetech/received_events","type":"Organization","site_admin":false},"repo":{"id":47035407,"name":"platform","full_name":"refugeetech/platform","owner":{"login":"refugeetech","id":15104738,"avatar_url":"https://avatars.githubusercontent.com/u/15104738?v=3","gravatar_id":"","url":"https://api.github.com/users/refugeetech","html_url":"https://github.com/refugeetech","followers_url":"https://api.github.com/users/refugeetech/followers","following_url":"https://api.github.com/users/refugeetech/following{/other_user}","gists_url":"https://api.github.com/users/refugeetech/gists{/gist_id}","starred_url":"https://api.github.com/users/refugeetech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/refugeetech/subscriptions","organizations_url":"https://api.github.com/users/refugeetech/orgs","repos_url":"https://api.github.com/users/refugeetech/repos","events_url":"https://api.github.com/users/refugeetech/events{/privacy}","received_events_url":"https://api.github.com/users/refugeetech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/refugeetech/platform","description":"The platform connects tech projects, public and private initiatives, problems, crowdsourcing of   problems and crowdsourcing of ideas to solve problems, resources (cash, products & services, etc)   and their respective sponsors, volunteers.","fork":false,"url":"https://api.github.com/repos/refugeetech/platform","forks_url":"https://api.github.com/repos/refugeetech/platform/forks","keys_url":"https://api.github.com/repos/refugeetech/platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/refugeetech/platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/refugeetech/platform/teams","hooks_url":"https://api.github.com/repos/refugeetech/platform/hooks","issue_events_url":"https://api.github.com/repos/refugeetech/platform/issues/events{/number}","events_url":"https://api.github.com/repos/refugeetech/platform/events","assignees_url":"https://api.github.com/repos/refugeetech/platform/assignees{/user}","branches_url":"https://api.github.com/repos/refugeetech/platform/branches{/branch}","tags_url":"https://api.github.com/repos/refugeetech/platform/tags","blobs_url":"https://api.github.com/repos/refugeetech/platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/refugeetech/platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/refugeetech/platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/refugeetech/platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/refugeetech/platform/statuses/{sha}","languages_url":"https://api.github.com/repos/refugeetech/platform/languages","stargazers_url":"https://api.github.com/repos/refugeetech/platform/stargazers","contributors_url":"https://api.github.com/repos/refugeetech/platform/contributors","subscribers_url":"https://api.github.com/repos/refugeetech/platform/subscribers","subscription_url":"https://api.github.com/repos/refugeetech/platform/subscription","commits_url":"https://api.github.com/repos/refugeetech/platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/refugeetech/platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/refugeetech/platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/refugeetech/platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/refugeetech/platform/contents/{+path}","compare_url":"https://api.github.com/repos/refugeetech/platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/refugeetech/platform/merges","archive_url":"https://api.github.com/repos/refugeetech/platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/refugeetech/platform/downloads","issues_url":"https://api.github.com/repos/refugeetech/platform/issues{/number}","pulls_url":"https://api.github.com/repos/refugeetech/platform/pulls{/number}","milestones_url":"https://api.github.com/repos/refugeetech/platform/milestones{/number}","notifications_url":"https://api.github.com/repos/refugeetech/platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/refugeetech/platform/labels{/name}","releases_url":"https://api.github.com/repos/refugeetech/platform/releases{/id}","created_at":"2015-11-28T18:41:12Z","updated_at":"2016-01-12T15:41:25Z","pushed_at":"2016-01-19T16:21:40Z","git_url":"git://github.com/refugeetech/platform.git","ssh_url":"git@github.com:refugeetech/platform.git","clone_url":"https://github.com/refugeetech/platform.git","svn_url":"https://github.com/refugeetech/platform","homepage":null,"size":1950,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":26,"forks":2,"open_issues":26,"watchers":4,"default_branch":"develop"}},"base":{"label":"refugeetech:develop","ref":"develop","sha":"0e8f4f000f0f2edf30eff111cf9fd505f15a6605","user":{"login":"refugeetech","id":15104738,"avatar_url":"https://avatars.githubusercontent.com/u/15104738?v=3","gravatar_id":"","url":"https://api.github.com/users/refugeetech","html_url":"https://github.com/refugeetech","followers_url":"https://api.github.com/users/refugeetech/followers","following_url":"https://api.github.com/users/refugeetech/following{/other_user}","gists_url":"https://api.github.com/users/refugeetech/gists{/gist_id}","starred_url":"https://api.github.com/users/refugeetech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/refugeetech/subscriptions","organizations_url":"https://api.github.com/users/refugeetech/orgs","repos_url":"https://api.github.com/users/refugeetech/repos","events_url":"https://api.github.com/users/refugeetech/events{/privacy}","received_events_url":"https://api.github.com/users/refugeetech/received_events","type":"Organization","site_admin":false},"repo":{"id":47035407,"name":"platform","full_name":"refugeetech/platform","owner":{"login":"refugeetech","id":15104738,"avatar_url":"https://avatars.githubusercontent.com/u/15104738?v=3","gravatar_id":"","url":"https://api.github.com/users/refugeetech","html_url":"https://github.com/refugeetech","followers_url":"https://api.github.com/users/refugeetech/followers","following_url":"https://api.github.com/users/refugeetech/following{/other_user}","gists_url":"https://api.github.com/users/refugeetech/gists{/gist_id}","starred_url":"https://api.github.com/users/refugeetech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/refugeetech/subscriptions","organizations_url":"https://api.github.com/users/refugeetech/orgs","repos_url":"https://api.github.com/users/refugeetech/repos","events_url":"https://api.github.com/users/refugeetech/events{/privacy}","received_events_url":"https://api.github.com/users/refugeetech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/refugeetech/platform","description":"The platform connects tech projects, public and private initiatives, problems, crowdsourcing of   problems and crowdsourcing of ideas to solve problems, resources (cash, products & services, etc)   and their respective sponsors, volunteers.","fork":false,"url":"https://api.github.com/repos/refugeetech/platform","forks_url":"https://api.github.com/repos/refugeetech/platform/forks","keys_url":"https://api.github.com/repos/refugeetech/platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/refugeetech/platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/refugeetech/platform/teams","hooks_url":"https://api.github.com/repos/refugeetech/platform/hooks","issue_events_url":"https://api.github.com/repos/refugeetech/platform/issues/events{/number}","events_url":"https://api.github.com/repos/refugeetech/platform/events","assignees_url":"https://api.github.com/repos/refugeetech/platform/assignees{/user}","branches_url":"https://api.github.com/repos/refugeetech/platform/branches{/branch}","tags_url":"https://api.github.com/repos/refugeetech/platform/tags","blobs_url":"https://api.github.com/repos/refugeetech/platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/refugeetech/platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/refugeetech/platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/refugeetech/platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/refugeetech/platform/statuses/{sha}","languages_url":"https://api.github.com/repos/refugeetech/platform/languages","stargazers_url":"https://api.github.com/repos/refugeetech/platform/stargazers","contributors_url":"https://api.github.com/repos/refugeetech/platform/contributors","subscribers_url":"https://api.github.com/repos/refugeetech/platform/subscribers","subscription_url":"https://api.github.com/repos/refugeetech/platform/subscription","commits_url":"https://api.github.com/repos/refugeetech/platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/refugeetech/platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/refugeetech/platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/refugeetech/platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/refugeetech/platform/contents/{+path}","compare_url":"https://api.github.com/repos/refugeetech/platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/refugeetech/platform/merges","archive_url":"https://api.github.com/repos/refugeetech/platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/refugeetech/platform/downloads","issues_url":"https://api.github.com/repos/refugeetech/platform/issues{/number}","pulls_url":"https://api.github.com/repos/refugeetech/platform/pulls{/number}","milestones_url":"https://api.github.com/repos/refugeetech/platform/milestones{/number}","notifications_url":"https://api.github.com/repos/refugeetech/platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/refugeetech/platform/labels{/name}","releases_url":"https://api.github.com/repos/refugeetech/platform/releases{/id}","created_at":"2015-11-28T18:41:12Z","updated_at":"2016-01-12T15:41:25Z","pushed_at":"2016-01-19T16:21:40Z","git_url":"git://github.com/refugeetech/platform.git","ssh_url":"git@github.com:refugeetech/platform.git","clone_url":"https://github.com/refugeetech/platform.git","svn_url":"https://github.com/refugeetech/platform","homepage":null,"size":1950,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":26,"forks":2,"open_issues":26,"watchers":4,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/refugeetech/platform/pulls/99"},"html":{"href":"https://github.com/refugeetech/platform/pull/99"},"issue":{"href":"https://api.github.com/repos/refugeetech/platform/issues/99"},"comments":{"href":"https://api.github.com/repos/refugeetech/platform/issues/99/comments"},"review_comments":{"href":"https://api.github.com/repos/refugeetech/platform/pulls/99/comments"},"review_comment":{"href":"https://api.github.com/repos/refugeetech/platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/refugeetech/platform/pulls/99/commits"},"statuses":{"href":"https://api.github.com/repos/refugeetech/platform/statuses/c20e8f887494f97ba43893bf2d0f42ecd9bea22e"}}}}