{"action":"created","comment":{"url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/comments/80508492","id":80508492,"diff_hunk":"@@ -1,5 +1,94 @@\n 'use strict';\n \n $(document).ready(function() {\n-  // Put app logic here\n-}\n+    // Put app logic here\n+\n+    var numberOfTurns = 0;\n+    var numberOfClicks = 0;\n+    var $block = null;\n+    var $currentStack = null;\n+    var $priorDataBlockValue = null;\n+    //use this\n+\n+    $('[data-stack]').click(function() {\n+\n+        if (checkForWin() != true) {\n+\n+            var $thisStack = $(this);\n+            var $thisStackNumber = $(this).data('stack');\n+\n+            var $thisStackLastChild = $thisStack.children().last();\n+            var $thisDataBlockValue = $thisStackLastChild.data('block');\n+\n+            var $thisLength = $(this).children().length;\n+\n+            if ($thisDataBlockValue === undefined) {\n+                $thisDataBlockValue = 0;\n+            }\n+\n+            //if first click, then remove it\n+            if ($thisLength > 0) {\n+\n+                if (numberOfClicks === 0) {","path":"apps/08jquery-towers-of-hanoi/script.js","position":34,"original_position":34,"commit_id":"0b4bd49378e9356bbbc3239de96f67e6ddcf96cc","original_commit_id":"0b4bd49378e9356bbbc3239de96f67e6ddcf96cc","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Expected indentation of 14 space characters but found 16. (indent)](https://www.codacy.com/app/AustinCodingAcademy/intermediate-workbook/file/4038505041/issues/source?bid=3643438&fileBranchId=3643446#l32)","created_at":"2016-09-26T15:55:34Z","updated_at":"2016-09-26T15:55:34Z","html_url":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/74#discussion_r80508492","pull_request_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/74","_links":{"self":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/comments/80508492"},"html":{"href":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/74#discussion_r80508492"},"pull_request":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/74"}}},"pull_request":{"url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/74","id":79118540,"html_url":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/74","diff_url":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/74.diff","patch_url":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/74.patch","issue_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues/74","number":74,"state":"open","locked":false,"title":"austin.intermediate.summer2.mcmillan.christina","user":{"login":"nina2cool","id":19177704,"avatar_url":"https://avatars.githubusercontent.com/u/19177704?v=3","gravatar_id":"","url":"https://api.github.com/users/nina2cool","html_url":"https://github.com/nina2cool","followers_url":"https://api.github.com/users/nina2cool/followers","following_url":"https://api.github.com/users/nina2cool/following{/other_user}","gists_url":"https://api.github.com/users/nina2cool/gists{/gist_id}","starred_url":"https://api.github.com/users/nina2cool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nina2cool/subscriptions","organizations_url":"https://api.github.com/users/nina2cool/orgs","repos_url":"https://api.github.com/users/nina2cool/repos","events_url":"https://api.github.com/users/nina2cool/events{/privacy}","received_events_url":"https://api.github.com/users/nina2cool/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-28T00:06:17Z","updated_at":"2016-09-26T15:55:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29c0ad70dfecff84fa0e0b37f6374249ea17f676","assignee":{"login":"tjefferson08","id":3535390,"avatar_url":"https://avatars.githubusercontent.com/u/3535390?v=3","gravatar_id":"","url":"https://api.github.com/users/tjefferson08","html_url":"https://github.com/tjefferson08","followers_url":"https://api.github.com/users/tjefferson08/followers","following_url":"https://api.github.com/users/tjefferson08/following{/other_user}","gists_url":"https://api.github.com/users/tjefferson08/gists{/gist_id}","starred_url":"https://api.github.com/users/tjefferson08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjefferson08/subscriptions","organizations_url":"https://api.github.com/users/tjefferson08/orgs","repos_url":"https://api.github.com/users/tjefferson08/repos","events_url":"https://api.github.com/users/tjefferson08/events{/privacy}","received_events_url":"https://api.github.com/users/tjefferson08/received_events","type":"User","site_admin":false},"assignees":[{"login":"paulrenenichols","id":2683933,"avatar_url":"https://avatars.githubusercontent.com/u/2683933?v=3","gravatar_id":"","url":"https://api.github.com/users/paulrenenichols","html_url":"https://github.com/paulrenenichols","followers_url":"https://api.github.com/users/paulrenenichols/followers","following_url":"https://api.github.com/users/paulrenenichols/following{/other_user}","gists_url":"https://api.github.com/users/paulrenenichols/gists{/gist_id}","starred_url":"https://api.github.com/users/paulrenenichols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulrenenichols/subscriptions","organizations_url":"https://api.github.com/users/paulrenenichols/orgs","repos_url":"https://api.github.com/users/paulrenenichols/repos","events_url":"https://api.github.com/users/paulrenenichols/events{/privacy}","received_events_url":"https://api.github.com/users/paulrenenichols/received_events","type":"User","site_admin":false},{"login":"tjefferson08","id":3535390,"avatar_url":"https://avatars.githubusercontent.com/u/3535390?v=3","gravatar_id":"","url":"https://api.github.com/users/tjefferson08","html_url":"https://github.com/tjefferson08","followers_url":"https://api.github.com/users/tjefferson08/followers","following_url":"https://api.github.com/users/tjefferson08/following{/other_user}","gists_url":"https://api.github.com/users/tjefferson08/gists{/gist_id}","starred_url":"https://api.github.com/users/tjefferson08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjefferson08/subscriptions","organizations_url":"https://api.github.com/users/tjefferson08/orgs","repos_url":"https://api.github.com/users/tjefferson08/repos","events_url":"https://api.github.com/users/tjefferson08/events{/privacy}","received_events_url":"https://api.github.com/users/tjefferson08/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/74/commits","review_comments_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/74/comments","review_comment_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues/74/comments","statuses_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/statuses/0b4bd49378e9356bbbc3239de96f67e6ddcf96cc","head":{"label":"nina2cool:gh-pages","ref":"gh-pages","sha":"0b4bd49378e9356bbbc3239de96f67e6ddcf96cc","user":{"login":"nina2cool","id":19177704,"avatar_url":"https://avatars.githubusercontent.com/u/19177704?v=3","gravatar_id":"","url":"https://api.github.com/users/nina2cool","html_url":"https://github.com/nina2cool","followers_url":"https://api.github.com/users/nina2cool/followers","following_url":"https://api.github.com/users/nina2cool/following{/other_user}","gists_url":"https://api.github.com/users/nina2cool/gists{/gist_id}","starred_url":"https://api.github.com/users/nina2cool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nina2cool/subscriptions","organizations_url":"https://api.github.com/users/nina2cool/orgs","repos_url":"https://api.github.com/users/nina2cool/repos","events_url":"https://api.github.com/users/nina2cool/events{/privacy}","received_events_url":"https://api.github.com/users/nina2cool/received_events","type":"User","site_admin":false},"repo":{"id":64348576,"name":"intermediate-workbook","full_name":"nina2cool/intermediate-workbook","owner":{"login":"nina2cool","id":19177704,"avatar_url":"https://avatars.githubusercontent.com/u/19177704?v=3","gravatar_id":"","url":"https://api.github.com/users/nina2cool","html_url":"https://github.com/nina2cool","followers_url":"https://api.github.com/users/nina2cool/followers","following_url":"https://api.github.com/users/nina2cool/following{/other_user}","gists_url":"https://api.github.com/users/nina2cool/gists{/gist_id}","starred_url":"https://api.github.com/users/nina2cool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nina2cool/subscriptions","organizations_url":"https://api.github.com/users/nina2cool/orgs","repos_url":"https://api.github.com/users/nina2cool/repos","events_url":"https://api.github.com/users/nina2cool/events{/privacy}","received_events_url":"https://api.github.com/users/nina2cool/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nina2cool/intermediate-workbook","description":"Austin Coding Academy - Frontend Intermediate Workbook","fork":true,"url":"https://api.github.com/repos/nina2cool/intermediate-workbook","forks_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/forks","keys_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/teams","hooks_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/hooks","issue_events_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/issues/events{/number}","events_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/events","assignees_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/assignees{/user}","branches_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/branches{/branch}","tags_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/tags","blobs_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/statuses/{sha}","languages_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/languages","stargazers_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/stargazers","contributors_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/contributors","subscribers_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/subscribers","subscription_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/subscription","commits_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/contents/{+path}","compare_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/merges","archive_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/downloads","issues_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/issues{/number}","pulls_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/pulls{/number}","milestones_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/milestones{/number}","notifications_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/labels{/name}","releases_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/releases{/id}","deployments_url":"https://api.github.com/repos/nina2cool/intermediate-workbook/deployments","created_at":"2016-07-27T23:32:28Z","updated_at":"2016-07-27T23:32:29Z","pushed_at":"2016-09-26T14:18:33Z","git_url":"git://github.com/nina2cool/intermediate-workbook.git","ssh_url":"git@github.com:nina2cool/intermediate-workbook.git","clone_url":"https://github.com/nina2cool/intermediate-workbook.git","svn_url":"https://github.com/nina2cool/intermediate-workbook","homepage":"http://austincodingacademy.github.io/frontend-intermediate-workbook","size":4109,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"AustinCodingAcademy:gh-pages","ref":"gh-pages","sha":"6be89dc283997d4799cec00b18fd0a3921373ce7","user":{"login":"AustinCodingAcademy","id":8907893,"avatar_url":"https://avatars.githubusercontent.com/u/8907893?v=3","gravatar_id":"","url":"https://api.github.com/users/AustinCodingAcademy","html_url":"https://github.com/AustinCodingAcademy","followers_url":"https://api.github.com/users/AustinCodingAcademy/followers","following_url":"https://api.github.com/users/AustinCodingAcademy/following{/other_user}","gists_url":"https://api.github.com/users/AustinCodingAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/AustinCodingAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AustinCodingAcademy/subscriptions","organizations_url":"https://api.github.com/users/AustinCodingAcademy/orgs","repos_url":"https://api.github.com/users/AustinCodingAcademy/repos","events_url":"https://api.github.com/users/AustinCodingAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/AustinCodingAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":45587428,"name":"intermediate-workbook","full_name":"AustinCodingAcademy/intermediate-workbook","owner":{"login":"AustinCodingAcademy","id":8907893,"avatar_url":"https://avatars.githubusercontent.com/u/8907893?v=3","gravatar_id":"","url":"https://api.github.com/users/AustinCodingAcademy","html_url":"https://github.com/AustinCodingAcademy","followers_url":"https://api.github.com/users/AustinCodingAcademy/followers","following_url":"https://api.github.com/users/AustinCodingAcademy/following{/other_user}","gists_url":"https://api.github.com/users/AustinCodingAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/AustinCodingAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AustinCodingAcademy/subscriptions","organizations_url":"https://api.github.com/users/AustinCodingAcademy/orgs","repos_url":"https://api.github.com/users/AustinCodingAcademy/repos","events_url":"https://api.github.com/users/AustinCodingAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/AustinCodingAcademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AustinCodingAcademy/intermediate-workbook","description":"Austin Coding Academy - JavaScript Workbook","fork":false,"url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook","forks_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/forks","keys_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/teams","hooks_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/hooks","issue_events_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues/events{/number}","events_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/events","assignees_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/assignees{/user}","branches_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/branches{/branch}","tags_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/tags","blobs_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/statuses/{sha}","languages_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/languages","stargazers_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/stargazers","contributors_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/contributors","subscribers_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/subscribers","subscription_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/subscription","commits_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/contents/{+path}","compare_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/merges","archive_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/downloads","issues_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues{/number}","pulls_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls{/number}","milestones_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/milestones{/number}","notifications_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/labels{/name}","releases_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/releases{/id}","deployments_url":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/deployments","created_at":"2015-11-05T04:24:51Z","updated_at":"2016-09-26T03:51:35Z","pushed_at":"2016-09-26T14:18:34Z","git_url":"git://github.com/AustinCodingAcademy/intermediate-workbook.git","ssh_url":"git@github.com:AustinCodingAcademy/intermediate-workbook.git","clone_url":"https://github.com/AustinCodingAcademy/intermediate-workbook.git","svn_url":"https://github.com/AustinCodingAcademy/intermediate-workbook","homepage":"https://austincodingacademy.github.io/javascript-workbook","size":23770,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":60,"mirror_url":null,"open_issues_count":28,"forks":60,"open_issues":28,"watchers":5,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/74"},"html":{"href":"https://github.com/AustinCodingAcademy/intermediate-workbook/pull/74"},"issue":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues/74"},"comments":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/AustinCodingAcademy/intermediate-workbook/statuses/0b4bd49378e9356bbbc3239de96f67e6ddcf96cc"}}}}
{"actor":{"display_login":"codacy-bot"}}