{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/bedrock/pulls/comments/23449535","id":23449535,"diff_hunk":"@@ -5,10 +5,106 @@\n $(function() {\n     'use strict';\n \n-    // Hide the download button from Firefox users\n-    if (isFirefox()) {\n-        $('#download').hide();\n-    } else {\n-        $('#principles').hide();\n+    var pager = Mozilla.Pager.pagers[0];\n+\n+    // scroll to top of pager when switching tabs so all\n+    // tab content is visible after switching tabs\n+    pager.$container.on('changePage', function() {\n+\n+        // Get the current document scroll position\n+        var scrollPos = $(document).scrollTop();\n+\n+        // Get the offset of the top of the pager section\n+        var pagerTopPos = $('.pager').first().offset().top;\n+\n+        // If we're scrolled passed the header, jump back up\n+        // to the tabs when the tab is switched\n+        if (scrollPos > pagerTopPos) {\n+            $('html, body').scrollTop($('.pager').first().offset().top);\n+        }\n+    });\n+\n+    // enable sticky tab nagivation\n+    $('#button-nav-wrapper').waypoint('sticky');\n+\n+    // Get the text of an element excluding any children elements\n+    jQuery.fn.justtext = function() {\n+        return $(this) .clone()\n+                .children()\n+                .remove()\n+                .end()\n+                .text()\n+                .trim();\n+    };\n+\n+    var trackClick = function (gaArgs, href, event) {\n+        if (event.metaKey || event.ctrlKey) {\n+            // Open link in new tab\n+            gaTrack(gaArgs);\n+        } else {\n+            event.preventDefault();\n+            gaTrack(gaArgs, function() { window.location = href; });\n+        }\n+    };\n+\n+    var getCurrentTab = function () {\n+        var currentTab = 'None';","path":"media/js/privacy/privacy-day.js","position":52,"original_position":52,"commit_id":"f08da966518289c27ac0b07449dd15591b96428a","original_commit_id":"f08da966518289c27ac0b07449dd15591b96428a","user":{"login":"alexgibson","id":400117,"avatar_url":"https://avatars.githubusercontent.com/u/400117?v=3","gravatar_id":"","url":"https://api.github.com/users/alexgibson","html_url":"https://github.com/alexgibson","followers_url":"https://api.github.com/users/alexgibson/followers","following_url":"https://api.github.com/users/alexgibson/following{/other_user}","gists_url":"https://api.github.com/users/alexgibson/gists{/gist_id}","starred_url":"https://api.github.com/users/alexgibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexgibson/subscriptions","organizations_url":"https://api.github.com/users/alexgibson/orgs","repos_url":"https://api.github.com/users/alexgibson/repos","events_url":"https://api.github.com/users/alexgibson/events{/privacy}","received_events_url":"https://api.github.com/users/alexgibson/received_events","type":"User","site_admin":false},"body":"Variable is defined but never used","created_at":"2015-01-23T13:39:04Z","updated_at":"2015-01-23T13:39:04Z","html_url":"https://github.com/mozilla/bedrock/pull/2660#discussion_r23449535","pull_request_url":"https://api.github.com/repos/mozilla/bedrock/pulls/2660","_links":{"self":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/comments/23449535"},"html":{"href":"https://github.com/mozilla/bedrock/pull/2660#discussion_r23449535"},"pull_request":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/2660"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/bedrock/pulls/2660","id":27379996,"html_url":"https://github.com/mozilla/bedrock/pull/2660","diff_url":"https://github.com/mozilla/bedrock/pull/2660.diff","patch_url":"https://github.com/mozilla/bedrock/pull/2660.patch","issue_url":"https://api.github.com/repos/mozilla/bedrock/issues/2660","number":2660,"state":"open","locked":false,"title":"Bug 1109318 Privacy Day landing page for 2015","user":{"login":"sgarrity","id":58062,"avatar_url":"https://avatars.githubusercontent.com/u/58062?v=3","gravatar_id":"","url":"https://api.github.com/users/sgarrity","html_url":"https://github.com/sgarrity","followers_url":"https://api.github.com/users/sgarrity/followers","following_url":"https://api.github.com/users/sgarrity/following{/other_user}","gists_url":"https://api.github.com/users/sgarrity/gists{/gist_id}","starred_url":"https://api.github.com/users/sgarrity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgarrity/subscriptions","organizations_url":"https://api.github.com/users/sgarrity/orgs","repos_url":"https://api.github.com/users/sgarrity/repos","events_url":"https://api.github.com/users/sgarrity/events{/privacy}","received_events_url":"https://api.github.com/users/sgarrity/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-14T20:20:09Z","updated_at":"2015-01-23T13:39:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"626d4a8bb79bc5fd2f08a320d602707e98d26bf6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/bedrock/pulls/2660/commits","review_comments_url":"https://api.github.com/repos/mozilla/bedrock/pulls/2660/comments","review_comment_url":"https://api.github.com/repos/mozilla/bedrock/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mozilla/bedrock/issues/2660/comments","statuses_url":"https://api.github.com/repos/mozilla/bedrock/statuses/f08da966518289c27ac0b07449dd15591b96428a","head":{"label":"mozilla:bug-1109318-privacy-day","ref":"bug-1109318-privacy-day","sha":"f08da966518289c27ac0b07449dd15591b96428a","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":1616665,"name":"bedrock","full_name":"mozilla/bedrock","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/bedrock","description":"Making mozilla.org awesome, one pebble at a time","fork":false,"url":"https://api.github.com/repos/mozilla/bedrock","forks_url":"https://api.github.com/repos/mozilla/bedrock/forks","keys_url":"https://api.github.com/repos/mozilla/bedrock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/bedrock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/bedrock/teams","hooks_url":"https://api.github.com/repos/mozilla/bedrock/hooks","issue_events_url":"https://api.github.com/repos/mozilla/bedrock/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/bedrock/events","assignees_url":"https://api.github.com/repos/mozilla/bedrock/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/bedrock/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/bedrock/tags","blobs_url":"https://api.github.com/repos/mozilla/bedrock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/bedrock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/bedrock/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/bedrock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/bedrock/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/bedrock/languages","stargazers_url":"https://api.github.com/repos/mozilla/bedrock/stargazers","contributors_url":"https://api.github.com/repos/mozilla/bedrock/contributors","subscribers_url":"https://api.github.com/repos/mozilla/bedrock/subscribers","subscription_url":"https://api.github.com/repos/mozilla/bedrock/subscription","commits_url":"https://api.github.com/repos/mozilla/bedrock/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/bedrock/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/bedrock/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/bedrock/issues/comments/{number}","contents_url":"https://api.github.com/repos/mozilla/bedrock/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/bedrock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/bedrock/merges","archive_url":"https://api.github.com/repos/mozilla/bedrock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/bedrock/downloads","issues_url":"https://api.github.com/repos/mozilla/bedrock/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/bedrock/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/bedrock/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/bedrock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/bedrock/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/bedrock/releases{/id}","created_at":"2011-04-14T22:57:57Z","updated_at":"2015-01-23T12:55:57Z","pushed_at":"2015-01-23T13:14:41Z","git_url":"git://github.com/mozilla/bedrock.git","ssh_url":"git@github.com:mozilla/bedrock.git","clone_url":"https://github.com/mozilla/bedrock.git","svn_url":"https://github.com/mozilla/bedrock","homepage":"http://mozilla.org","size":325313,"stargazers_count":203,"watchers_count":203,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":290,"mirror_url":null,"open_issues_count":15,"forks":290,"open_issues":15,"watchers":203,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"ff8782a0da008646db377129f43a060ac2c4a877","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":1616665,"name":"bedrock","full_name":"mozilla/bedrock","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/bedrock","description":"Making mozilla.org awesome, one pebble at a time","fork":false,"url":"https://api.github.com/repos/mozilla/bedrock","forks_url":"https://api.github.com/repos/mozilla/bedrock/forks","keys_url":"https://api.github.com/repos/mozilla/bedrock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/bedrock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/bedrock/teams","hooks_url":"https://api.github.com/repos/mozilla/bedrock/hooks","issue_events_url":"https://api.github.com/repos/mozilla/bedrock/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/bedrock/events","assignees_url":"https://api.github.com/repos/mozilla/bedrock/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/bedrock/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/bedrock/tags","blobs_url":"https://api.github.com/repos/mozilla/bedrock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/bedrock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/bedrock/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/bedrock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/bedrock/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/bedrock/languages","stargazers_url":"https://api.github.com/repos/mozilla/bedrock/stargazers","contributors_url":"https://api.github.com/repos/mozilla/bedrock/contributors","subscribers_url":"https://api.github.com/repos/mozilla/bedrock/subscribers","subscription_url":"https://api.github.com/repos/mozilla/bedrock/subscription","commits_url":"https://api.github.com/repos/mozilla/bedrock/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/bedrock/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/bedrock/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/bedrock/issues/comments/{number}","contents_url":"https://api.github.com/repos/mozilla/bedrock/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/bedrock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/bedrock/merges","archive_url":"https://api.github.com/repos/mozilla/bedrock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/bedrock/downloads","issues_url":"https://api.github.com/repos/mozilla/bedrock/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/bedrock/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/bedrock/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/bedrock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/bedrock/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/bedrock/releases{/id}","created_at":"2011-04-14T22:57:57Z","updated_at":"2015-01-23T12:55:57Z","pushed_at":"2015-01-23T13:14:41Z","git_url":"git://github.com/mozilla/bedrock.git","ssh_url":"git@github.com:mozilla/bedrock.git","clone_url":"https://github.com/mozilla/bedrock.git","svn_url":"https://github.com/mozilla/bedrock","homepage":"http://mozilla.org","size":325313,"stargazers_count":203,"watchers_count":203,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":290,"mirror_url":null,"open_issues_count":15,"forks":290,"open_issues":15,"watchers":203,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/2660"},"html":{"href":"https://github.com/mozilla/bedrock/pull/2660"},"issue":{"href":"https://api.github.com/repos/mozilla/bedrock/issues/2660"},"comments":{"href":"https://api.github.com/repos/mozilla/bedrock/issues/2660/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/2660/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/2660/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/bedrock/statuses/f08da966518289c27ac0b07449dd15591b96428a"}}}}