{"action":"created","comment":{"url":"https://api.github.com/repos/APKirstein/hidden_gems/pulls/comments/34308711","id":34308711,"diff_hunk":"@@ -0,0 +1,67 @@\n+$(document).ready(function() {\n+  var switched = false;\n+  var updateTables = function() {\n+    if (($(window).width() < 767) && !switched ){\n+      switched = true;\n+      $(\"table.responsive\").each(function(i, element) {\n+        splitTable($(element));\n+      });\n+      return true;\n+    }\n+    else if (switched && ($(window).width() > 767)) {\n+      switched = false;\n+      $(\"table.responsive\").each(function(i, element) {\n+        unsplitTable($(element));\n+      });\n+    }\n+  };\n+\n+  $(window).load(updateTables);\n+  $(window).on(\"redraw\",function(){switched=false;updateTables();}); // An event to listen for\n+  $(window).on(\"resize\", updateTables);\n+\n+\n+\tfunction splitTable(original)\n+\t{\n+\t\toriginal.wrap(\"<div class='table-wrapper' />\");\n+\n+\t\tvar copy = original.clone();\n+\t\tcopy.find(\"td:not(:first-child), th:not(:first-child)\").css(\"display\", \"none\");\n+\t\tcopy.removeClass(\"responsive\");\n+\n+\t\toriginal.closest(\".table-wrapper\").append(copy);\n+\t\tcopy.wrap(\"<div class='pinned' />\");\n+\t\toriginal.wrap(\"<div class='scrollable' />\");\n+\n+    setCellHeights(original, copy);\n+\t}\n+\n+\tfunction unsplitTable(original) {\n+    original.closest(\".table-wrapper\").find(\".pinned\").remove();\n+    original.unwrap();\n+    original.unwrap();\n+\t}\n+\n+  function setCellHeights(original, copy) {\n+    var tr = original.find('tr'),\n+        tr_copy = copy.find('tr'),\n+        heights = [];\n+\n+    tr.each(function (index) {\n+      var self = $(this),\n+          tx = self.find('th, td');\n+\n+      tx.each(function () {\n+        var height = $(this).outerHeight(true);\n+        heights[index] = heights[index] || 0;\n+        if (height > heights[index]) heights[index] = height;\n+      });\n+\n+    });\n+\n+    tr_copy.each(function (index) {","path":"app/assets/javascripts/responsive-tables.js","position":62,"original_position":62,"commit_id":"26feabef37455c94ec790a7b6f7ce458d41b7df5","original_commit_id":"26feabef37455c94ec790a7b6f7ce458d41b7df5","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":"Identifier 'tr_copy' is not in camel case.","created_at":"2015-07-09T21:57:45Z","updated_at":"2015-07-09T21:57:45Z","html_url":"https://github.com/APKirstein/hidden_gems/pull/29#discussion_r34308711","pull_request_url":"https://api.github.com/repos/APKirstein/hidden_gems/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/APKirstein/hidden_gems/pulls/comments/34308711"},"html":{"href":"https://github.com/APKirstein/hidden_gems/pull/29#discussion_r34308711"},"pull_request":{"href":"https://api.github.com/repos/APKirstein/hidden_gems/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/APKirstein/hidden_gems/pulls/29","id":39632916,"html_url":"https://github.com/APKirstein/hidden_gems/pull/29","diff_url":"https://github.com/APKirstein/hidden_gems/pull/29.diff","patch_url":"https://github.com/APKirstein/hidden_gems/pull/29.patch","issue_url":"https://api.github.com/repos/APKirstein/hidden_gems/issues/29","number":29,"state":"open","locked":false,"title":"Rd styling restaurant detail page","user":{"login":"jraenorris","id":10898371,"avatar_url":"https://avatars.githubusercontent.com/u/10898371?v=3","gravatar_id":"","url":"https://api.github.com/users/jraenorris","html_url":"https://github.com/jraenorris","followers_url":"https://api.github.com/users/jraenorris/followers","following_url":"https://api.github.com/users/jraenorris/following{/other_user}","gists_url":"https://api.github.com/users/jraenorris/gists{/gist_id}","starred_url":"https://api.github.com/users/jraenorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jraenorris/subscriptions","organizations_url":"https://api.github.com/users/jraenorris/orgs","repos_url":"https://api.github.com/users/jraenorris/repos","events_url":"https://api.github.com/users/jraenorris/events{/privacy}","received_events_url":"https://api.github.com/users/jraenorris/received_events","type":"User","site_admin":false},"body":"Add off-canvas fix for top bar\r\nStyle reviews table and made show pages mobile ready\r\nFix two yields","created_at":"2015-07-09T21:57:36Z","updated_at":"2015-07-09T21:57:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/APKirstein/hidden_gems/pulls/29/commits","review_comments_url":"https://api.github.com/repos/APKirstein/hidden_gems/pulls/29/comments","review_comment_url":"https://api.github.com/repos/APKirstein/hidden_gems/pulls/comments{/number}","comments_url":"https://api.github.com/repos/APKirstein/hidden_gems/issues/29/comments","statuses_url":"https://api.github.com/repos/APKirstein/hidden_gems/statuses/26feabef37455c94ec790a7b6f7ce458d41b7df5","head":{"label":"APKirstein:rd-styling-restaurant-detail-page","ref":"rd-styling-restaurant-detail-page","sha":"26feabef37455c94ec790a7b6f7ce458d41b7df5","user":{"login":"APKirstein","id":8923124,"avatar_url":"https://avatars.githubusercontent.com/u/8923124?v=3","gravatar_id":"","url":"https://api.github.com/users/APKirstein","html_url":"https://github.com/APKirstein","followers_url":"https://api.github.com/users/APKirstein/followers","following_url":"https://api.github.com/users/APKirstein/following{/other_user}","gists_url":"https://api.github.com/users/APKirstein/gists{/gist_id}","starred_url":"https://api.github.com/users/APKirstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/APKirstein/subscriptions","organizations_url":"https://api.github.com/users/APKirstein/orgs","repos_url":"https://api.github.com/users/APKirstein/repos","events_url":"https://api.github.com/users/APKirstein/events{/privacy}","received_events_url":"https://api.github.com/users/APKirstein/received_events","type":"User","site_admin":false},"repo":{"id":38257269,"name":"hidden_gems","full_name":"APKirstein/hidden_gems","owner":{"login":"APKirstein","id":8923124,"avatar_url":"https://avatars.githubusercontent.com/u/8923124?v=3","gravatar_id":"","url":"https://api.github.com/users/APKirstein","html_url":"https://github.com/APKirstein","followers_url":"https://api.github.com/users/APKirstein/followers","following_url":"https://api.github.com/users/APKirstein/following{/other_user}","gists_url":"https://api.github.com/users/APKirstein/gists{/gist_id}","starred_url":"https://api.github.com/users/APKirstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/APKirstein/subscriptions","organizations_url":"https://api.github.com/users/APKirstein/orgs","repos_url":"https://api.github.com/users/APKirstein/repos","events_url":"https://api.github.com/users/APKirstein/events{/privacy}","received_events_url":"https://api.github.com/users/APKirstein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/APKirstein/hidden_gems","description":"Date review site","fork":false,"url":"https://api.github.com/repos/APKirstein/hidden_gems","forks_url":"https://api.github.com/repos/APKirstein/hidden_gems/forks","keys_url":"https://api.github.com/repos/APKirstein/hidden_gems/keys{/key_id}","collaborators_url":"https://api.github.com/repos/APKirstein/hidden_gems/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/APKirstein/hidden_gems/teams","hooks_url":"https://api.github.com/repos/APKirstein/hidden_gems/hooks","issue_events_url":"https://api.github.com/repos/APKirstein/hidden_gems/issues/events{/number}","events_url":"https://api.github.com/repos/APKirstein/hidden_gems/events","assignees_url":"https://api.github.com/repos/APKirstein/hidden_gems/assignees{/user}","branches_url":"https://api.github.com/repos/APKirstein/hidden_gems/branches{/branch}","tags_url":"https://api.github.com/repos/APKirstein/hidden_gems/tags","blobs_url":"https://api.github.com/repos/APKirstein/hidden_gems/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/APKirstein/hidden_gems/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/APKirstein/hidden_gems/git/refs{/sha}","trees_url":"https://api.github.com/repos/APKirstein/hidden_gems/git/trees{/sha}","statuses_url":"https://api.github.com/repos/APKirstein/hidden_gems/statuses/{sha}","languages_url":"https://api.github.com/repos/APKirstein/hidden_gems/languages","stargazers_url":"https://api.github.com/repos/APKirstein/hidden_gems/stargazers","contributors_url":"https://api.github.com/repos/APKirstein/hidden_gems/contributors","subscribers_url":"https://api.github.com/repos/APKirstein/hidden_gems/subscribers","subscription_url":"https://api.github.com/repos/APKirstein/hidden_gems/subscription","commits_url":"https://api.github.com/repos/APKirstein/hidden_gems/commits{/sha}","git_commits_url":"https://api.github.com/repos/APKirstein/hidden_gems/git/commits{/sha}","comments_url":"https://api.github.com/repos/APKirstein/hidden_gems/comments{/number}","issue_comment_url":"https://api.github.com/repos/APKirstein/hidden_gems/issues/comments{/number}","contents_url":"https://api.github.com/repos/APKirstein/hidden_gems/contents/{+path}","compare_url":"https://api.github.com/repos/APKirstein/hidden_gems/compare/{base}...{head}","merges_url":"https://api.github.com/repos/APKirstein/hidden_gems/merges","archive_url":"https://api.github.com/repos/APKirstein/hidden_gems/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/APKirstein/hidden_gems/downloads","issues_url":"https://api.github.com/repos/APKirstein/hidden_gems/issues{/number}","pulls_url":"https://api.github.com/repos/APKirstein/hidden_gems/pulls{/number}","milestones_url":"https://api.github.com/repos/APKirstein/hidden_gems/milestones{/number}","notifications_url":"https://api.github.com/repos/APKirstein/hidden_gems/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/APKirstein/hidden_gems/labels{/name}","releases_url":"https://api.github.com/repos/APKirstein/hidden_gems/releases{/id}","created_at":"2015-06-29T16:12:01Z","updated_at":"2015-07-06T14:06:25Z","pushed_at":"2015-07-09T21:57:36Z","git_url":"git://github.com/APKirstein/hidden_gems.git","ssh_url":"git@github.com:APKirstein/hidden_gems.git","clone_url":"https://github.com/APKirstein/hidden_gems.git","svn_url":"https://github.com/APKirstein/hidden_gems","homepage":"","size":790,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"APKirstein:master","ref":"master","sha":"5cde16f2aaf80c19264b9428ace258648aaf20ce","user":{"login":"APKirstein","id":8923124,"avatar_url":"https://avatars.githubusercontent.com/u/8923124?v=3","gravatar_id":"","url":"https://api.github.com/users/APKirstein","html_url":"https://github.com/APKirstein","followers_url":"https://api.github.com/users/APKirstein/followers","following_url":"https://api.github.com/users/APKirstein/following{/other_user}","gists_url":"https://api.github.com/users/APKirstein/gists{/gist_id}","starred_url":"https://api.github.com/users/APKirstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/APKirstein/subscriptions","organizations_url":"https://api.github.com/users/APKirstein/orgs","repos_url":"https://api.github.com/users/APKirstein/repos","events_url":"https://api.github.com/users/APKirstein/events{/privacy}","received_events_url":"https://api.github.com/users/APKirstein/received_events","type":"User","site_admin":false},"repo":{"id":38257269,"name":"hidden_gems","full_name":"APKirstein/hidden_gems","owner":{"login":"APKirstein","id":8923124,"avatar_url":"https://avatars.githubusercontent.com/u/8923124?v=3","gravatar_id":"","url":"https://api.github.com/users/APKirstein","html_url":"https://github.com/APKirstein","followers_url":"https://api.github.com/users/APKirstein/followers","following_url":"https://api.github.com/users/APKirstein/following{/other_user}","gists_url":"https://api.github.com/users/APKirstein/gists{/gist_id}","starred_url":"https://api.github.com/users/APKirstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/APKirstein/subscriptions","organizations_url":"https://api.github.com/users/APKirstein/orgs","repos_url":"https://api.github.com/users/APKirstein/repos","events_url":"https://api.github.com/users/APKirstein/events{/privacy}","received_events_url":"https://api.github.com/users/APKirstein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/APKirstein/hidden_gems","description":"Date review site","fork":false,"url":"https://api.github.com/repos/APKirstein/hidden_gems","forks_url":"https://api.github.com/repos/APKirstein/hidden_gems/forks","keys_url":"https://api.github.com/repos/APKirstein/hidden_gems/keys{/key_id}","collaborators_url":"https://api.github.com/repos/APKirstein/hidden_gems/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/APKirstein/hidden_gems/teams","hooks_url":"https://api.github.com/repos/APKirstein/hidden_gems/hooks","issue_events_url":"https://api.github.com/repos/APKirstein/hidden_gems/issues/events{/number}","events_url":"https://api.github.com/repos/APKirstein/hidden_gems/events","assignees_url":"https://api.github.com/repos/APKirstein/hidden_gems/assignees{/user}","branches_url":"https://api.github.com/repos/APKirstein/hidden_gems/branches{/branch}","tags_url":"https://api.github.com/repos/APKirstein/hidden_gems/tags","blobs_url":"https://api.github.com/repos/APKirstein/hidden_gems/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/APKirstein/hidden_gems/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/APKirstein/hidden_gems/git/refs{/sha}","trees_url":"https://api.github.com/repos/APKirstein/hidden_gems/git/trees{/sha}","statuses_url":"https://api.github.com/repos/APKirstein/hidden_gems/statuses/{sha}","languages_url":"https://api.github.com/repos/APKirstein/hidden_gems/languages","stargazers_url":"https://api.github.com/repos/APKirstein/hidden_gems/stargazers","contributors_url":"https://api.github.com/repos/APKirstein/hidden_gems/contributors","subscribers_url":"https://api.github.com/repos/APKirstein/hidden_gems/subscribers","subscription_url":"https://api.github.com/repos/APKirstein/hidden_gems/subscription","commits_url":"https://api.github.com/repos/APKirstein/hidden_gems/commits{/sha}","git_commits_url":"https://api.github.com/repos/APKirstein/hidden_gems/git/commits{/sha}","comments_url":"https://api.github.com/repos/APKirstein/hidden_gems/comments{/number}","issue_comment_url":"https://api.github.com/repos/APKirstein/hidden_gems/issues/comments{/number}","contents_url":"https://api.github.com/repos/APKirstein/hidden_gems/contents/{+path}","compare_url":"https://api.github.com/repos/APKirstein/hidden_gems/compare/{base}...{head}","merges_url":"https://api.github.com/repos/APKirstein/hidden_gems/merges","archive_url":"https://api.github.com/repos/APKirstein/hidden_gems/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/APKirstein/hidden_gems/downloads","issues_url":"https://api.github.com/repos/APKirstein/hidden_gems/issues{/number}","pulls_url":"https://api.github.com/repos/APKirstein/hidden_gems/pulls{/number}","milestones_url":"https://api.github.com/repos/APKirstein/hidden_gems/milestones{/number}","notifications_url":"https://api.github.com/repos/APKirstein/hidden_gems/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/APKirstein/hidden_gems/labels{/name}","releases_url":"https://api.github.com/repos/APKirstein/hidden_gems/releases{/id}","created_at":"2015-06-29T16:12:01Z","updated_at":"2015-07-06T14:06:25Z","pushed_at":"2015-07-09T21:57:36Z","git_url":"git://github.com/APKirstein/hidden_gems.git","ssh_url":"git@github.com:APKirstein/hidden_gems.git","clone_url":"https://github.com/APKirstein/hidden_gems.git","svn_url":"https://github.com/APKirstein/hidden_gems","homepage":"","size":790,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/APKirstein/hidden_gems/pulls/29"},"html":{"href":"https://github.com/APKirstein/hidden_gems/pull/29"},"issue":{"href":"https://api.github.com/repos/APKirstein/hidden_gems/issues/29"},"comments":{"href":"https://api.github.com/repos/APKirstein/hidden_gems/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/APKirstein/hidden_gems/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/APKirstein/hidden_gems/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/APKirstein/hidden_gems/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/APKirstein/hidden_gems/statuses/26feabef37455c94ec790a7b6f7ce458d41b7df5"}}}}