{"action":"created","comment":{"url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/pulls/comments/36037666","id":36037666,"diff_hunk":"@@ -17,5 +17,72 @@\n   checks.on('change', function() {\n     var check = $(this);\n     check.closest('tr')[check.is(':checked') ? 'addClass' : 'removeClass']('is-selected');\n-  })\n+  });\n+\n+  var tourBase = {\n+    i18n: {\n+      closeTooltip: 'Dismiss'\n+    },\n+    onNext: hopscotch.highlight.remove,\n+    onEnd: function() {\n+      hopscotch.highlight.remove();\n+      Cookies.remove('hopscotch.' + tour.id);\n+      Cookies.set('hopscotch.state.' + tour.id, 'dismissed');\n+    },\n+    onClose: function() {\n+      var stepNo = hopscotch.getCurrStepNum();\n+\n+      hopscotch.highlight.remove();\n+\n+      Cookies.set('hopscotch.state.' + tour.id, 'dismissed');\n+\n+      if (tour.steps[stepNo].dismissTo) {\n+        window.setTimeout(function(){\n+          hopscotch.startTour(tour, tour.steps[stepNo].dismissTo);\n+        }, 300);\n+      }\n+    },\n+    onShow: function() {\n+      var stepNo = hopscotch.getCurrStepNum();\n+\n+      if (tour.steps[stepNo].highlight) {\n+        hopscotch.highlight.show();\n+      }\n+\n+      if (tour.steps[stepNo].fadeout) {\n+        window.setTimeout(function(){\n+          $('.hopscotch-bubble').fadeOut(300, function(){\n+            hopscotch.endTour(false);\n+          });\n+        }, 5000);\n+      }\n+\n+      if (tour.steps[stepNo].target === 'tour-intro') {\n+        $('.hopscotch-bubble-arrow-container').remove();\n+        $('.hopscotch-nav-button').text('Yes please');\n+        $('.hopscotch-bubble-close').text('Not now');","path":"mtp_cashbook/assets-src/javascripts/app.js","position":54,"original_position":54,"commit_id":"9e3ae54d97899d72bc9f3ee6dd7d8724d9f801a4","original_commit_id":"9e3ae54d97899d72bc9f3ee6dd7d8724d9f801a4","user":{"login":"matharden","id":157556,"avatar_url":"https://avatars.githubusercontent.com/u/157556?v=3","gravatar_id":"","url":"https://api.github.com/users/matharden","html_url":"https://github.com/matharden","followers_url":"https://api.github.com/users/matharden/followers","following_url":"https://api.github.com/users/matharden/following{/other_user}","gists_url":"https://api.github.com/users/matharden/gists{/gist_id}","starred_url":"https://api.github.com/users/matharden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matharden/subscriptions","organizations_url":"https://api.github.com/users/matharden/orgs","repos_url":"https://api.github.com/users/matharden/repos","events_url":"https://api.github.com/users/matharden/events{/privacy}","received_events_url":"https://api.github.com/users/matharden/received_events","type":"User","site_admin":false},"body":"That would be good. Although I can't think how to do that right now. Perhaps one for the new dev?","created_at":"2015-08-01T22:31:36Z","updated_at":"2015-08-01T22:31:36Z","html_url":"https://github.com/ministryofjustice/money-to-prisoners-cashbook/pull/32#discussion_r36037666","pull_request_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/pulls/comments/36037666"},"html":{"href":"https://github.com/ministryofjustice/money-to-prisoners-cashbook/pull/32#discussion_r36037666"},"pull_request":{"href":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/pulls/32","id":40928567,"html_url":"https://github.com/ministryofjustice/money-to-prisoners-cashbook/pull/32","diff_url":"https://github.com/ministryofjustice/money-to-prisoners-cashbook/pull/32.diff","patch_url":"https://github.com/ministryofjustice/money-to-prisoners-cashbook/pull/32.patch","issue_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/issues/32","number":32,"state":"open","locked":false,"title":"Feature tour","user":{"login":"matharden","id":157556,"avatar_url":"https://avatars.githubusercontent.com/u/157556?v=3","gravatar_id":"","url":"https://api.github.com/users/matharden","html_url":"https://github.com/matharden","followers_url":"https://api.github.com/users/matharden/followers","following_url":"https://api.github.com/users/matharden/following{/other_user}","gists_url":"https://api.github.com/users/matharden/gists{/gist_id}","starred_url":"https://api.github.com/users/matharden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matharden/subscriptions","organizations_url":"https://api.github.com/users/matharden/orgs","repos_url":"https://api.github.com/users/matharden/repos","events_url":"https://api.github.com/users/matharden/events{/privacy}","received_events_url":"https://api.github.com/users/matharden/received_events","type":"User","site_admin":false},"body":"## User story\r\n\r\n[As a monies clerk I need to be introduced to the Tool Tour so that I can understand how to use the digital cashbook](https://www.pivotaltracker.com/story/show/97105820) - 97105820\r\n\r\n## Adds the following dependancies\r\n\r\n- uses [Hopscotch](https://github.com/linkedin/hopscotch) feature tour by LinkedIn which supports IE8\r\n- augmented by [Hopscotch-Highlight](https://github.com/ministryofjustice/hopscotch-highlight) which masks each feature\r\n- uses [js-cookie](https://github.com/js-cookie/js-cookie) for handling state\r\n\r\n**Note:** this merges into internal-template (#33).","created_at":"2015-07-27T17:32:58Z","updated_at":"2015-08-01T22:31:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8befca0b9e971a6ed7b3c70384d48a582b03c938","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/pulls/32/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/pulls/32/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/issues/32/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/statuses/9e3ae54d97899d72bc9f3ee6dd7d8724d9f801a4","head":{"label":"ministryofjustice:feature-tour","ref":"feature-tour","sha":"9e3ae54d97899d72bc9f3ee6dd7d8724d9f801a4","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":37078656,"name":"money-to-prisoners-cashbook","full_name":"ministryofjustice/money-to-prisoners-cashbook","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/money-to-prisoners-cashbook","description":"Cashbook UI for Money To Prisoners","fork":false,"url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook","forks_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/forks","keys_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/events","assignees_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/merges","archive_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/releases{/id}","created_at":"2015-06-08T16:26:09Z","updated_at":"2015-06-24T08:27:45Z","pushed_at":"2015-08-01T22:27:07Z","git_url":"git://github.com/ministryofjustice/money-to-prisoners-cashbook.git","ssh_url":"git@github.com:ministryofjustice/money-to-prisoners-cashbook.git","clone_url":"https://github.com/ministryofjustice/money-to-prisoners-cashbook.git","svn_url":"https://github.com/ministryofjustice/money-to-prisoners-cashbook","homepage":null,"size":1140,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"ministryofjustice:internal-template","ref":"internal-template","sha":"0f843af8a1d994367b5f84b2adb58c7669dcfe43","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":37078656,"name":"money-to-prisoners-cashbook","full_name":"ministryofjustice/money-to-prisoners-cashbook","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/money-to-prisoners-cashbook","description":"Cashbook UI for Money To Prisoners","fork":false,"url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook","forks_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/forks","keys_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/events","assignees_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/merges","archive_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/releases{/id}","created_at":"2015-06-08T16:26:09Z","updated_at":"2015-06-24T08:27:45Z","pushed_at":"2015-08-01T22:27:07Z","git_url":"git://github.com/ministryofjustice/money-to-prisoners-cashbook.git","ssh_url":"git@github.com:ministryofjustice/money-to-prisoners-cashbook.git","clone_url":"https://github.com/ministryofjustice/money-to-prisoners-cashbook.git","svn_url":"https://github.com/ministryofjustice/money-to-prisoners-cashbook","homepage":null,"size":1140,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/pulls/32"},"html":{"href":"https://github.com/ministryofjustice/money-to-prisoners-cashbook/pull/32"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/issues/32"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/money-to-prisoners-cashbook/statuses/9e3ae54d97899d72bc9f3ee6dd7d8724d9f801a4"}}}}