{"action":"created","comment":{"url":"https://api.github.com/repos/andela/gimli-cfh/pulls/comments/122000432","pull_request_review_id":44076915,"id":122000432,"diff_hunk":"@@ -163,89 +136,81 @@ $location, MakeAWishFactsService, $dialog, $http) => {\n               return c.substring(name.length, c.length);\n           }\n       }\n-      return \"\";\n+      return '';\n     };\n \n   $scope.checkCookie = () => {\n-    var user = $scope.getCookie(\"username\");\n-      if (user === '') {\n-        $scope.setCookie(\"username\", 'user', 365);\n-          setTimeout(function(){\n-            var intro = introJs();\n-            intro.setOptions({\n-              steps: [\n-                {\n-                  intro: \"Hi, I'm Jade. I'm super excited to be onboarding you to this game. Click Next to get Started. You can end the tour anytime by clicking Skip.\"\n-                },\n-                {\n-                  element: document.querySelector('#startGame'),\n-                  intro: \"Questions will appear here\"\n-                },\n-                {\n-                  element: document.querySelector('#questions-bg'),\n-                  intro: \"Answer cards will appear here. Choose the best answer for the given question\",\n-                  position: 'top'\n-                },\n-                {\n-                  element: document.querySelector('#time-wrap'),\n-                  intro: \"You'll have 20 seconds per question. Your time will appear here.\"\n-                },\n-                {\n-                  element: document.querySelector('#click-tag'),\n-                  intro: \"Use this link to invite users who HAVE CFH accounts\"\n-                },\n-                {\n-                  element: document.querySelector('#click-tag2'),\n-                  intro: \"Use this link to invite users who DO NOT HAVE CFH accounts\"\n-                },\n-                {\n-                  element: document.querySelector('#player-bg'),\n-                  intro: \"This panel shows you the players in the game and the number of questions answered by each player. A player who answers 5 questions correctly WINS.\"\n-                },\n-                {\n-                  element: document.querySelectorAll('#step2')[0],\n-                  intro: \"Ready? Get Started by inviting at least 3 players. Maximum number of players is 12\",\n-                  position: 'right'\n-                }\n-              ]\n-            });\n-          intro.start();\n-        }, 1000);\n-<<<<<<< HEAD\n-      }\n-  }\n-\n-=======\n-      }\n-    };\n-    $scope.pickCard = (card) => {\n-      if (!$scope.hasPickedCards) {\n-        if ($scope.pickedCards.indexOf(card.id) < 0) {\n-          $scope.pickedCards.push(card.id);\n-          if (game.curQuestion.numAnswers === 1) {\n-            $scope.sendPickedCards();\n-            $scope.hasPickedCards = true;\n-          } else if (game.curQuestion.numAnswers === 2 &&\n->>>>>>> 2c84cc2760dbff2d52dbce55d24d3c84489a9a8f\n-\n-          $scope.pickedCards.length === 2) {\n-          // delay and send\n-            $scope.hasPickedCards = true;\n-            $timeout($scope.sendPickedCards, 300);\n-          }\n-        } else {\n-          $scope.pickedCards.pop();\n+    const user = $scope.getCookie('username');\n+    if (user === '') {\n+      $scope.setCookie('username', 'user', 365);\n+      setTimeout(() => {\n+        const intro = introJs();\n+        intro.setOptions({\n+          steps: [\n+            {\n+              intro: \"Hi, I'm Jade. I'm super excited to be onboarding you to this game. Click Next to get Started. You can end the tour anytime by clicking Skip.\"","path":"public/js/controllers/game.js","position":305,"original_position":305,"commit_id":"193d25aa0db88ae8bea0b08b764531a53eecab75","original_commit_id":"193d25aa0db88ae8bea0b08b764531a53eecab75","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars3.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line 151 exceeds the maximum line length of 80                   max-len","created_at":"2017-06-14T16:40:09Z","updated_at":"2017-06-14T16:40:10Z","html_url":"https://github.com/andela/gimli-cfh/pull/61#discussion_r122000432","pull_request_url":"https://api.github.com/repos/andela/gimli-cfh/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/andela/gimli-cfh/pulls/comments/122000432"},"html":{"href":"https://github.com/andela/gimli-cfh/pull/61#discussion_r122000432"},"pull_request":{"href":"https://api.github.com/repos/andela/gimli-cfh/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/andela/gimli-cfh/pulls/61","id":125641430,"html_url":"https://github.com/andela/gimli-cfh/pull/61","diff_url":"https://github.com/andela/gimli-cfh/pull/61.diff","patch_url":"https://github.com/andela/gimli-cfh/pull/61.patch","issue_url":"https://api.github.com/repos/andela/gimli-cfh/issues/61","number":61,"state":"open","locked":false,"title":"#145026993 categorize cards by region","user":{"login":"andela-dbamidele","id":28529978,"avatar_url":"https://avatars2.githubusercontent.com/u/28529978?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-dbamidele","html_url":"https://github.com/andela-dbamidele","followers_url":"https://api.github.com/users/andela-dbamidele/followers","following_url":"https://api.github.com/users/andela-dbamidele/following{/other_user}","gists_url":"https://api.github.com/users/andela-dbamidele/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-dbamidele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-dbamidele/subscriptions","organizations_url":"https://api.github.com/users/andela-dbamidele/orgs","repos_url":"https://api.github.com/users/andela-dbamidele/repos","events_url":"https://api.github.com/users/andela-dbamidele/events{/privacy}","received_events_url":"https://api.github.com/users/andela-dbamidele/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nThis PR implements the feature that allows a user to select cards based on region\r\n\r\n#### Description of Task to be completed?\r\n- create a pop up modal on game start\r\n- display cards based on selected category\r\n\r\n#### How should this be manually tested?\r\nN/A\r\n\r\n#### Any background context you want to provide?\r\nN/A\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n#145026993 users should be able to categorize cards by region\r\n\r\n#### Screenshots (if appropriate)\r\n<img width=\"1279\" alt=\"region\" src=\"https://user-images.githubusercontent.com/28529978/27144068-6dae4b22-5128-11e7-87fb-688860fff7f5.png\">\r\n\r\n\r\n#### Questions:\r\nN/A","created_at":"2017-06-14T16:39:55Z","updated_at":"2017-06-14T16:40:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"597bab28d4c04b075444b3a6cf7bc786f9e7bdba","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/gimli-cfh/pulls/61/commits","review_comments_url":"https://api.github.com/repos/andela/gimli-cfh/pulls/61/comments","review_comment_url":"https://api.github.com/repos/andela/gimli-cfh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/gimli-cfh/issues/61/comments","statuses_url":"https://api.github.com/repos/andela/gimli-cfh/statuses/193d25aa0db88ae8bea0b08b764531a53eecab75","head":{"label":"andela:feature/145026993/categorize-cards-by-region","ref":"feature/145026993/categorize-cards-by-region","sha":"193d25aa0db88ae8bea0b08b764531a53eecab75","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars1.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":90563555,"name":"gimli-cfh","full_name":"andela/gimli-cfh","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars1.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/gimli-cfh","description":null,"fork":false,"url":"https://api.github.com/repos/andela/gimli-cfh","forks_url":"https://api.github.com/repos/andela/gimli-cfh/forks","keys_url":"https://api.github.com/repos/andela/gimli-cfh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/gimli-cfh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/gimli-cfh/teams","hooks_url":"https://api.github.com/repos/andela/gimli-cfh/hooks","issue_events_url":"https://api.github.com/repos/andela/gimli-cfh/issues/events{/number}","events_url":"https://api.github.com/repos/andela/gimli-cfh/events","assignees_url":"https://api.github.com/repos/andela/gimli-cfh/assignees{/user}","branches_url":"https://api.github.com/repos/andela/gimli-cfh/branches{/branch}","tags_url":"https://api.github.com/repos/andela/gimli-cfh/tags","blobs_url":"https://api.github.com/repos/andela/gimli-cfh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/gimli-cfh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/gimli-cfh/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/gimli-cfh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/gimli-cfh/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/gimli-cfh/languages","stargazers_url":"https://api.github.com/repos/andela/gimli-cfh/stargazers","contributors_url":"https://api.github.com/repos/andela/gimli-cfh/contributors","subscribers_url":"https://api.github.com/repos/andela/gimli-cfh/subscribers","subscription_url":"https://api.github.com/repos/andela/gimli-cfh/subscription","commits_url":"https://api.github.com/repos/andela/gimli-cfh/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/gimli-cfh/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/gimli-cfh/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/gimli-cfh/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/gimli-cfh/contents/{+path}","compare_url":"https://api.github.com/repos/andela/gimli-cfh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/gimli-cfh/merges","archive_url":"https://api.github.com/repos/andela/gimli-cfh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/gimli-cfh/downloads","issues_url":"https://api.github.com/repos/andela/gimli-cfh/issues{/number}","pulls_url":"https://api.github.com/repos/andela/gimli-cfh/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/gimli-cfh/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/gimli-cfh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/gimli-cfh/labels{/name}","releases_url":"https://api.github.com/repos/andela/gimli-cfh/releases{/id}","deployments_url":"https://api.github.com/repos/andela/gimli-cfh/deployments","created_at":"2017-05-07T21:40:26Z","updated_at":"2017-05-08T12:14:23Z","pushed_at":"2017-06-14T16:39:56Z","git_url":"git://github.com/andela/gimli-cfh.git","ssh_url":"git@github.com:andela/gimli-cfh.git","clone_url":"https://github.com/andela/gimli-cfh.git","svn_url":"https://github.com/andela/gimli-cfh","homepage":null,"size":34629,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"andela:staging","ref":"staging","sha":"62f458a04c2778a085048cf88effe28aae4dcdf2","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars1.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":90563555,"name":"gimli-cfh","full_name":"andela/gimli-cfh","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars1.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/gimli-cfh","description":null,"fork":false,"url":"https://api.github.com/repos/andela/gimli-cfh","forks_url":"https://api.github.com/repos/andela/gimli-cfh/forks","keys_url":"https://api.github.com/repos/andela/gimli-cfh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/gimli-cfh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/gimli-cfh/teams","hooks_url":"https://api.github.com/repos/andela/gimli-cfh/hooks","issue_events_url":"https://api.github.com/repos/andela/gimli-cfh/issues/events{/number}","events_url":"https://api.github.com/repos/andela/gimli-cfh/events","assignees_url":"https://api.github.com/repos/andela/gimli-cfh/assignees{/user}","branches_url":"https://api.github.com/repos/andela/gimli-cfh/branches{/branch}","tags_url":"https://api.github.com/repos/andela/gimli-cfh/tags","blobs_url":"https://api.github.com/repos/andela/gimli-cfh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/gimli-cfh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/gimli-cfh/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/gimli-cfh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/gimli-cfh/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/gimli-cfh/languages","stargazers_url":"https://api.github.com/repos/andela/gimli-cfh/stargazers","contributors_url":"https://api.github.com/repos/andela/gimli-cfh/contributors","subscribers_url":"https://api.github.com/repos/andela/gimli-cfh/subscribers","subscription_url":"https://api.github.com/repos/andela/gimli-cfh/subscription","commits_url":"https://api.github.com/repos/andela/gimli-cfh/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/gimli-cfh/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/gimli-cfh/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/gimli-cfh/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/gimli-cfh/contents/{+path}","compare_url":"https://api.github.com/repos/andela/gimli-cfh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/gimli-cfh/merges","archive_url":"https://api.github.com/repos/andela/gimli-cfh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/gimli-cfh/downloads","issues_url":"https://api.github.com/repos/andela/gimli-cfh/issues{/number}","pulls_url":"https://api.github.com/repos/andela/gimli-cfh/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/gimli-cfh/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/gimli-cfh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/gimli-cfh/labels{/name}","releases_url":"https://api.github.com/repos/andela/gimli-cfh/releases{/id}","deployments_url":"https://api.github.com/repos/andela/gimli-cfh/deployments","created_at":"2017-05-07T21:40:26Z","updated_at":"2017-05-08T12:14:23Z","pushed_at":"2017-06-14T16:39:56Z","git_url":"git://github.com/andela/gimli-cfh.git","ssh_url":"git@github.com:andela/gimli-cfh.git","clone_url":"https://github.com/andela/gimli-cfh.git","svn_url":"https://github.com/andela/gimli-cfh","homepage":null,"size":34629,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/gimli-cfh/pulls/61"},"html":{"href":"https://github.com/andela/gimli-cfh/pull/61"},"issue":{"href":"https://api.github.com/repos/andela/gimli-cfh/issues/61"},"comments":{"href":"https://api.github.com/repos/andela/gimli-cfh/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/gimli-cfh/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/gimli-cfh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/gimli-cfh/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/andela/gimli-cfh/statuses/193d25aa0db88ae8bea0b08b764531a53eecab75"}}}}
{"actor":{"display_login":"houndci-bot"}}