{"action":"created","comment":{"url":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/comments/61619431","id":61619431,"diff_hunk":"@@ -100,20 +120,18 @@ define(['jquery', 'app/messages', 'app/config', 'app/string'], function ($, mess\n       var difference = levenstein(input,answer);\n \n       if (difference == 0) {\n-        messages.show( \"Well done!\", \"success\", config.constant(\"FEEDBACK_DELAY\") );\n-        nextQuestion();\n+        handleScoreIncrease();\n+        messages.show( \"Well done!\", \"success\", config.constant(\"FEEDBACK_DELAY_CORRECT\") );\n       } else if (isWithinMarginOfError(answer, difference)) {\n-        messages.show( \"Almost there! Your answer: \" + input + \" - Expected answer: \" + answer + \" (\" + difference + \" letter\" + string.pluralIfAppropriate(difference) + \" difference)\", \"warning\", config.constant(\"FEEDBACK_DELAY\") );\n-        currentItemIndex = (currentItemIndex + 1) % items.length;\n+        messages.show( \"Almost there! Expected answer: <b>\" + answer + \"</b> (\" + difference + \" letter\" + string.pluralIfAppropriate(difference) + \" difference)\", \"warning\", config.constant(\"FEEDBACK_DELAY_INCORRECT\") );\n       } else {\n-        messages.show( \"Wrong answer! Expected answer: \" + answer , \"danger\", config.constant(\"FEEDBACK_DELAY\") );\n-        currentItemIndex = (currentItemIndex + 1) % items.length;\n-      }\n-      showProgress();\n-\n-      if (items.length == 0) {\n-        alert(\"Done!\");\n+        messages.show( \"Wrong answer! Expected answer: <b>\" + answer + \"</b>\", \"danger\", config.constant(\"FEEDBACK_DELAY_INCORRECT\") );","path":"app/question.js","position":null,"original_position":99,"commit_id":"58c8634b73a089ffb7ff19b5c8f41fa65c5798c4","original_commit_id":"eed99c7f6e8c5f3cd4f41b0c6a3ab86ea1aabf22","user":{"login":"lauraBaakman","id":4301624,"avatar_url":"https://avatars.githubusercontent.com/u/4301624?v=3","gravatar_id":"","url":"https://api.github.com/users/lauraBaakman","html_url":"https://github.com/lauraBaakman","followers_url":"https://api.github.com/users/lauraBaakman/followers","following_url":"https://api.github.com/users/lauraBaakman/following{/other_user}","gists_url":"https://api.github.com/users/lauraBaakman/gists{/gist_id}","starred_url":"https://api.github.com/users/lauraBaakman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lauraBaakman/subscriptions","organizations_url":"https://api.github.com/users/lauraBaakman/orgs","repos_url":"https://api.github.com/users/lauraBaakman/repos","events_url":"https://api.github.com/users/lauraBaakman/events{/privacy}","received_events_url":"https://api.github.com/users/lauraBaakman/received_events","type":"User","site_admin":false},"body":"Same as the small error message.","created_at":"2016-04-29T17:55:06Z","updated_at":"2016-04-29T17:55:06Z","html_url":"https://github.com/RUGSoftEng/Team-5/pull/4#discussion_r61619431","pull_request_url":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/comments/61619431"},"html":{"href":"https://github.com/RUGSoftEng/Team-5/pull/4#discussion_r61619431"},"pull_request":{"href":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/4","id":68165897,"html_url":"https://github.com/RUGSoftEng/Team-5/pull/4","diff_url":"https://github.com/RUGSoftEng/Team-5/pull/4.diff","patch_url":"https://github.com/RUGSoftEng/Team-5/pull/4.patch","issue_url":"https://api.github.com/repos/RUGSoftEng/Team-5/issues/4","number":4,"state":"open","locked":false,"title":"Sprint7","user":{"login":"sibrenvanvliet","id":17131312,"avatar_url":"https://avatars.githubusercontent.com/u/17131312?v=3","gravatar_id":"","url":"https://api.github.com/users/sibrenvanvliet","html_url":"https://github.com/sibrenvanvliet","followers_url":"https://api.github.com/users/sibrenvanvliet/followers","following_url":"https://api.github.com/users/sibrenvanvliet/following{/other_user}","gists_url":"https://api.github.com/users/sibrenvanvliet/gists{/gist_id}","starred_url":"https://api.github.com/users/sibrenvanvliet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sibrenvanvliet/subscriptions","organizations_url":"https://api.github.com/users/sibrenvanvliet/orgs","repos_url":"https://api.github.com/users/sibrenvanvliet/repos","events_url":"https://api.github.com/users/sibrenvanvliet/events{/privacy}","received_events_url":"https://api.github.com/users/sibrenvanvliet/received_events","type":"User","site_admin":false},"body":"This is the pull request for Sprint 7 containing our work from the past two weeks.\r\n\r\nChangelog:\r\n- SlimStampen algorithm implemented\r\n- 'White page bug' solved\r\n- Added loading transitions\r\n- Fixed unix permissions problem\r\n- Added login page \r\n- Prepared the database for the login system and added hash function for passwords\r\n- Started internationalisation\r\n- Improved messages shown during learning sessions after feedback from Hedderik\r\n- Added module highlighting on welcome page","created_at":"2016-04-28T05:29:07Z","updated_at":"2016-04-29T17:55:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"56d3ad8b787854119507e273a3e265761befe66b","assignee":{"login":"lauraBaakman","id":4301624,"avatar_url":"https://avatars.githubusercontent.com/u/4301624?v=3","gravatar_id":"","url":"https://api.github.com/users/lauraBaakman","html_url":"https://github.com/lauraBaakman","followers_url":"https://api.github.com/users/lauraBaakman/followers","following_url":"https://api.github.com/users/lauraBaakman/following{/other_user}","gists_url":"https://api.github.com/users/lauraBaakman/gists{/gist_id}","starred_url":"https://api.github.com/users/lauraBaakman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lauraBaakman/subscriptions","organizations_url":"https://api.github.com/users/lauraBaakman/orgs","repos_url":"https://api.github.com/users/lauraBaakman/repos","events_url":"https://api.github.com/users/lauraBaakman/events{/privacy}","received_events_url":"https://api.github.com/users/lauraBaakman/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/4/commits","review_comments_url":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/4/comments","review_comment_url":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RUGSoftEng/Team-5/issues/4/comments","statuses_url":"https://api.github.com/repos/RUGSoftEng/Team-5/statuses/58c8634b73a089ffb7ff19b5c8f41fa65c5798c4","head":{"label":"RUGSoftEng:sprint7","ref":"sprint7","sha":"58c8634b73a089ffb7ff19b5c8f41fa65c5798c4","user":{"login":"RUGSoftEng","id":17049951,"avatar_url":"https://avatars.githubusercontent.com/u/17049951?v=3","gravatar_id":"","url":"https://api.github.com/users/RUGSoftEng","html_url":"https://github.com/RUGSoftEng","followers_url":"https://api.github.com/users/RUGSoftEng/followers","following_url":"https://api.github.com/users/RUGSoftEng/following{/other_user}","gists_url":"https://api.github.com/users/RUGSoftEng/gists{/gist_id}","starred_url":"https://api.github.com/users/RUGSoftEng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RUGSoftEng/subscriptions","organizations_url":"https://api.github.com/users/RUGSoftEng/orgs","repos_url":"https://api.github.com/users/RUGSoftEng/repos","events_url":"https://api.github.com/users/RUGSoftEng/events{/privacy}","received_events_url":"https://api.github.com/users/RUGSoftEng/received_events","type":"Organization","site_admin":false},"repo":{"id":51758491,"name":"Team-5","full_name":"RUGSoftEng/Team-5","owner":{"login":"RUGSoftEng","id":17049951,"avatar_url":"https://avatars.githubusercontent.com/u/17049951?v=3","gravatar_id":"","url":"https://api.github.com/users/RUGSoftEng","html_url":"https://github.com/RUGSoftEng","followers_url":"https://api.github.com/users/RUGSoftEng/followers","following_url":"https://api.github.com/users/RUGSoftEng/following{/other_user}","gists_url":"https://api.github.com/users/RUGSoftEng/gists{/gist_id}","starred_url":"https://api.github.com/users/RUGSoftEng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RUGSoftEng/subscriptions","organizations_url":"https://api.github.com/users/RUGSoftEng/orgs","repos_url":"https://api.github.com/users/RUGSoftEng/repos","events_url":"https://api.github.com/users/RUGSoftEng/events{/privacy}","received_events_url":"https://api.github.com/users/RUGSoftEng/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RUGSoftEng/Team-5","description":"SlimStampen learning app","fork":false,"url":"https://api.github.com/repos/RUGSoftEng/Team-5","forks_url":"https://api.github.com/repos/RUGSoftEng/Team-5/forks","keys_url":"https://api.github.com/repos/RUGSoftEng/Team-5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RUGSoftEng/Team-5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RUGSoftEng/Team-5/teams","hooks_url":"https://api.github.com/repos/RUGSoftEng/Team-5/hooks","issue_events_url":"https://api.github.com/repos/RUGSoftEng/Team-5/issues/events{/number}","events_url":"https://api.github.com/repos/RUGSoftEng/Team-5/events","assignees_url":"https://api.github.com/repos/RUGSoftEng/Team-5/assignees{/user}","branches_url":"https://api.github.com/repos/RUGSoftEng/Team-5/branches{/branch}","tags_url":"https://api.github.com/repos/RUGSoftEng/Team-5/tags","blobs_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/refs{/sha}","trees_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RUGSoftEng/Team-5/statuses/{sha}","languages_url":"https://api.github.com/repos/RUGSoftEng/Team-5/languages","stargazers_url":"https://api.github.com/repos/RUGSoftEng/Team-5/stargazers","contributors_url":"https://api.github.com/repos/RUGSoftEng/Team-5/contributors","subscribers_url":"https://api.github.com/repos/RUGSoftEng/Team-5/subscribers","subscription_url":"https://api.github.com/repos/RUGSoftEng/Team-5/subscription","commits_url":"https://api.github.com/repos/RUGSoftEng/Team-5/commits{/sha}","git_commits_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/commits{/sha}","comments_url":"https://api.github.com/repos/RUGSoftEng/Team-5/comments{/number}","issue_comment_url":"https://api.github.com/repos/RUGSoftEng/Team-5/issues/comments{/number}","contents_url":"https://api.github.com/repos/RUGSoftEng/Team-5/contents/{+path}","compare_url":"https://api.github.com/repos/RUGSoftEng/Team-5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RUGSoftEng/Team-5/merges","archive_url":"https://api.github.com/repos/RUGSoftEng/Team-5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RUGSoftEng/Team-5/downloads","issues_url":"https://api.github.com/repos/RUGSoftEng/Team-5/issues{/number}","pulls_url":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls{/number}","milestones_url":"https://api.github.com/repos/RUGSoftEng/Team-5/milestones{/number}","notifications_url":"https://api.github.com/repos/RUGSoftEng/Team-5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RUGSoftEng/Team-5/labels{/name}","releases_url":"https://api.github.com/repos/RUGSoftEng/Team-5/releases{/id}","deployments_url":"https://api.github.com/repos/RUGSoftEng/Team-5/deployments","created_at":"2016-02-15T13:47:26Z","updated_at":"2016-03-05T09:47:22Z","pushed_at":"2016-04-29T12:58:05Z","git_url":"git://github.com/RUGSoftEng/Team-5.git","ssh_url":"git@github.com:RUGSoftEng/Team-5.git","clone_url":"https://github.com/RUGSoftEng/Team-5.git","svn_url":"https://github.com/RUGSoftEng/Team-5","homepage":"","size":147288,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"RUGSoftEng:master","ref":"master","sha":"ec9f43e94f790e6dad71f1effbeb29040e230f06","user":{"login":"RUGSoftEng","id":17049951,"avatar_url":"https://avatars.githubusercontent.com/u/17049951?v=3","gravatar_id":"","url":"https://api.github.com/users/RUGSoftEng","html_url":"https://github.com/RUGSoftEng","followers_url":"https://api.github.com/users/RUGSoftEng/followers","following_url":"https://api.github.com/users/RUGSoftEng/following{/other_user}","gists_url":"https://api.github.com/users/RUGSoftEng/gists{/gist_id}","starred_url":"https://api.github.com/users/RUGSoftEng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RUGSoftEng/subscriptions","organizations_url":"https://api.github.com/users/RUGSoftEng/orgs","repos_url":"https://api.github.com/users/RUGSoftEng/repos","events_url":"https://api.github.com/users/RUGSoftEng/events{/privacy}","received_events_url":"https://api.github.com/users/RUGSoftEng/received_events","type":"Organization","site_admin":false},"repo":{"id":51758491,"name":"Team-5","full_name":"RUGSoftEng/Team-5","owner":{"login":"RUGSoftEng","id":17049951,"avatar_url":"https://avatars.githubusercontent.com/u/17049951?v=3","gravatar_id":"","url":"https://api.github.com/users/RUGSoftEng","html_url":"https://github.com/RUGSoftEng","followers_url":"https://api.github.com/users/RUGSoftEng/followers","following_url":"https://api.github.com/users/RUGSoftEng/following{/other_user}","gists_url":"https://api.github.com/users/RUGSoftEng/gists{/gist_id}","starred_url":"https://api.github.com/users/RUGSoftEng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RUGSoftEng/subscriptions","organizations_url":"https://api.github.com/users/RUGSoftEng/orgs","repos_url":"https://api.github.com/users/RUGSoftEng/repos","events_url":"https://api.github.com/users/RUGSoftEng/events{/privacy}","received_events_url":"https://api.github.com/users/RUGSoftEng/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RUGSoftEng/Team-5","description":"SlimStampen learning app","fork":false,"url":"https://api.github.com/repos/RUGSoftEng/Team-5","forks_url":"https://api.github.com/repos/RUGSoftEng/Team-5/forks","keys_url":"https://api.github.com/repos/RUGSoftEng/Team-5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RUGSoftEng/Team-5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RUGSoftEng/Team-5/teams","hooks_url":"https://api.github.com/repos/RUGSoftEng/Team-5/hooks","issue_events_url":"https://api.github.com/repos/RUGSoftEng/Team-5/issues/events{/number}","events_url":"https://api.github.com/repos/RUGSoftEng/Team-5/events","assignees_url":"https://api.github.com/repos/RUGSoftEng/Team-5/assignees{/user}","branches_url":"https://api.github.com/repos/RUGSoftEng/Team-5/branches{/branch}","tags_url":"https://api.github.com/repos/RUGSoftEng/Team-5/tags","blobs_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/refs{/sha}","trees_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RUGSoftEng/Team-5/statuses/{sha}","languages_url":"https://api.github.com/repos/RUGSoftEng/Team-5/languages","stargazers_url":"https://api.github.com/repos/RUGSoftEng/Team-5/stargazers","contributors_url":"https://api.github.com/repos/RUGSoftEng/Team-5/contributors","subscribers_url":"https://api.github.com/repos/RUGSoftEng/Team-5/subscribers","subscription_url":"https://api.github.com/repos/RUGSoftEng/Team-5/subscription","commits_url":"https://api.github.com/repos/RUGSoftEng/Team-5/commits{/sha}","git_commits_url":"https://api.github.com/repos/RUGSoftEng/Team-5/git/commits{/sha}","comments_url":"https://api.github.com/repos/RUGSoftEng/Team-5/comments{/number}","issue_comment_url":"https://api.github.com/repos/RUGSoftEng/Team-5/issues/comments{/number}","contents_url":"https://api.github.com/repos/RUGSoftEng/Team-5/contents/{+path}","compare_url":"https://api.github.com/repos/RUGSoftEng/Team-5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RUGSoftEng/Team-5/merges","archive_url":"https://api.github.com/repos/RUGSoftEng/Team-5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RUGSoftEng/Team-5/downloads","issues_url":"https://api.github.com/repos/RUGSoftEng/Team-5/issues{/number}","pulls_url":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls{/number}","milestones_url":"https://api.github.com/repos/RUGSoftEng/Team-5/milestones{/number}","notifications_url":"https://api.github.com/repos/RUGSoftEng/Team-5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RUGSoftEng/Team-5/labels{/name}","releases_url":"https://api.github.com/repos/RUGSoftEng/Team-5/releases{/id}","deployments_url":"https://api.github.com/repos/RUGSoftEng/Team-5/deployments","created_at":"2016-02-15T13:47:26Z","updated_at":"2016-03-05T09:47:22Z","pushed_at":"2016-04-29T12:58:05Z","git_url":"git://github.com/RUGSoftEng/Team-5.git","ssh_url":"git@github.com:RUGSoftEng/Team-5.git","clone_url":"https://github.com/RUGSoftEng/Team-5.git","svn_url":"https://github.com/RUGSoftEng/Team-5","homepage":"","size":147288,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/4"},"html":{"href":"https://github.com/RUGSoftEng/Team-5/pull/4"},"issue":{"href":"https://api.github.com/repos/RUGSoftEng/Team-5/issues/4"},"comments":{"href":"https://api.github.com/repos/RUGSoftEng/Team-5/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RUGSoftEng/Team-5/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/RUGSoftEng/Team-5/statuses/58c8634b73a089ffb7ff19b5c8f41fa65c5798c4"}}}}