{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/pulls/comments/62811814","id":62811814,"diff_hunk":"@@ -0,0 +1,221 @@\n+\n+require('./blink.js');\n+require('./mood.js');\n+require('./energy.js');\n+require('./satiety.js');\n+require('./die.js');\n+require('./audio.js');\n+//mood;\n+//satiety;\n+//energy;\n+\n+// ожидается, что данные флаги лежат в глобальном объекте, это важно!\n+chargingMood = false;\n+chargingSatiety = false;\n+chargingEnergy = false;\n+\n+moodMask = null;\n+satietyMask = null;\n+energyMask = null;\n+\n+svgPicture = null;\n+\n+var dataAboutPast = getPiggyState();\n+\n+function getPiggyState() {\n+    var dataAboutPast = localStorage.getItem('piggyState');\n+    if (dataAboutPast === null) {\n+        dataAboutPast = {\n+            mood: 100,\n+            satiety: 100,\n+            energy: 100\n+        };\n+        localStorage.setItem('piggyState', JSON.stringify(dataAboutPast));\n+    } else {\n+        dataAboutPast = JSON.parse(dataAboutPast);\n+    }\n+    return dataAboutPast;\n+}\n+\n+function repaint(rect, number) {\n+    console.log(number);","path":"scripts/piggy.js","position":41,"original_position":41,"commit_id":"076025dda1a7d8bed7920485504fc6bf18a00424","original_commit_id":"076025dda1a7d8bed7920485504fc6bf18a00424","user":{"login":"dzlk","id":894822,"avatar_url":"https://avatars.githubusercontent.com/u/894822?v=3","gravatar_id":"","url":"https://api.github.com/users/dzlk","html_url":"https://github.com/dzlk","followers_url":"https://api.github.com/users/dzlk/followers","following_url":"https://api.github.com/users/dzlk/following{/other_user}","gists_url":"https://api.github.com/users/dzlk/gists{/gist_id}","starred_url":"https://api.github.com/users/dzlk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzlk/subscriptions","organizations_url":"https://api.github.com/users/dzlk/orgs","repos_url":"https://api.github.com/users/dzlk/repos","events_url":"https://api.github.com/users/dzlk/events{/privacy}","received_events_url":"https://api.github.com/users/dzlk/received_events","type":"User","site_admin":false},"body":"много отладочной информации","created_at":"2016-05-11T08:48:36Z","updated_at":"2016-05-11T08:48:37Z","html_url":"https://github.com/urfu-2015/webdev-tasks-7/pull/4#discussion_r62811814","pull_request_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/pulls/comments/62811814"},"html":{"href":"https://github.com/urfu-2015/webdev-tasks-7/pull/4#discussion_r62811814"},"pull_request":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/pulls/4","id":68108331,"html_url":"https://github.com/urfu-2015/webdev-tasks-7/pull/4","diff_url":"https://github.com/urfu-2015/webdev-tasks-7/pull/4.diff","patch_url":"https://github.com/urfu-2015/webdev-tasks-7/pull/4.patch","issue_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/issues/4","number":4,"state":"open","locked":false,"title":"Гринь Надежда","user":{"login":"air-breathing","id":14912857,"avatar_url":"https://avatars.githubusercontent.com/u/14912857?v=3","gravatar_id":"","url":"https://api.github.com/users/air-breathing","html_url":"https://github.com/air-breathing","followers_url":"https://api.github.com/users/air-breathing/followers","following_url":"https://api.github.com/users/air-breathing/following{/other_user}","gists_url":"https://api.github.com/users/air-breathing/gists{/gist_id}","starred_url":"https://api.github.com/users/air-breathing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/air-breathing/subscriptions","organizations_url":"https://api.github.com/users/air-breathing/orgs","repos_url":"https://api.github.com/users/air-breathing/repos","events_url":"https://api.github.com/users/air-breathing/events{/privacy}","received_events_url":"https://api.github.com/users/air-breathing/received_events","type":"User","site_admin":false},"body":"Есть недоделанное.","created_at":"2016-04-27T19:12:54Z","updated_at":"2016-05-11T08:48:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b003c259e88630ab899290344c2252779b38bb2f","assignee":{"login":"dzlk","id":894822,"avatar_url":"https://avatars.githubusercontent.com/u/894822?v=3","gravatar_id":"","url":"https://api.github.com/users/dzlk","html_url":"https://github.com/dzlk","followers_url":"https://api.github.com/users/dzlk/followers","following_url":"https://api.github.com/users/dzlk/following{/other_user}","gists_url":"https://api.github.com/users/dzlk/gists{/gist_id}","starred_url":"https://api.github.com/users/dzlk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzlk/subscriptions","organizations_url":"https://api.github.com/users/dzlk/orgs","repos_url":"https://api.github.com/users/dzlk/repos","events_url":"https://api.github.com/users/dzlk/events{/privacy}","received_events_url":"https://api.github.com/users/dzlk/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/pulls/4/commits","review_comments_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/pulls/4/comments","review_comment_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/issues/4/comments","statuses_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/statuses/076025dda1a7d8bed7920485504fc6bf18a00424","head":{"label":"air-breathing:master","ref":"master","sha":"076025dda1a7d8bed7920485504fc6bf18a00424","user":{"login":"air-breathing","id":14912857,"avatar_url":"https://avatars.githubusercontent.com/u/14912857?v=3","gravatar_id":"","url":"https://api.github.com/users/air-breathing","html_url":"https://github.com/air-breathing","followers_url":"https://api.github.com/users/air-breathing/followers","following_url":"https://api.github.com/users/air-breathing/following{/other_user}","gists_url":"https://api.github.com/users/air-breathing/gists{/gist_id}","starred_url":"https://api.github.com/users/air-breathing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/air-breathing/subscriptions","organizations_url":"https://api.github.com/users/air-breathing/orgs","repos_url":"https://api.github.com/users/air-breathing/repos","events_url":"https://api.github.com/users/air-breathing/events{/privacy}","received_events_url":"https://api.github.com/users/air-breathing/received_events","type":"User","site_admin":false},"repo":{"id":56789299,"name":"webdev-tasks-7","full_name":"air-breathing/webdev-tasks-7","owner":{"login":"air-breathing","id":14912857,"avatar_url":"https://avatars.githubusercontent.com/u/14912857?v=3","gravatar_id":"","url":"https://api.github.com/users/air-breathing","html_url":"https://github.com/air-breathing","followers_url":"https://api.github.com/users/air-breathing/followers","following_url":"https://api.github.com/users/air-breathing/following{/other_user}","gists_url":"https://api.github.com/users/air-breathing/gists{/gist_id}","starred_url":"https://api.github.com/users/air-breathing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/air-breathing/subscriptions","organizations_url":"https://api.github.com/users/air-breathing/orgs","repos_url":"https://api.github.com/users/air-breathing/repos","events_url":"https://api.github.com/users/air-breathing/events{/privacy}","received_events_url":"https://api.github.com/users/air-breathing/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/air-breathing/webdev-tasks-7","description":"","fork":true,"url":"https://api.github.com/repos/air-breathing/webdev-tasks-7","forks_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/forks","keys_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/teams","hooks_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/hooks","issue_events_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/issues/events{/number}","events_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/events","assignees_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/assignees{/user}","branches_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/branches{/branch}","tags_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/tags","blobs_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/git/refs{/sha}","trees_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/statuses/{sha}","languages_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/languages","stargazers_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/stargazers","contributors_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/contributors","subscribers_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/subscribers","subscription_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/subscription","commits_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/commits{/sha}","git_commits_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/git/commits{/sha}","comments_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/comments{/number}","issue_comment_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/issues/comments{/number}","contents_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/contents/{+path}","compare_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/merges","archive_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/downloads","issues_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/issues{/number}","pulls_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/pulls{/number}","milestones_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/milestones{/number}","notifications_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/labels{/name}","releases_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/releases{/id}","deployments_url":"https://api.github.com/repos/air-breathing/webdev-tasks-7/deployments","created_at":"2016-04-21T16:27:34Z","updated_at":"2016-05-01T13:56:49Z","pushed_at":"2016-05-01T14:17:37Z","git_url":"git://github.com/air-breathing/webdev-tasks-7.git","ssh_url":"git@github.com:air-breathing/webdev-tasks-7.git","clone_url":"https://github.com/air-breathing/webdev-tasks-7.git","svn_url":"https://github.com/air-breathing/webdev-tasks-7","homepage":null,"size":6504,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"urfu-2015:master","ref":"master","sha":"94dfd1b88425abc73ad85dd3ec04577243138255","user":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"repo":{"id":56763594,"name":"webdev-tasks-7","full_name":"urfu-2015/webdev-tasks-7","owner":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urfu-2015/webdev-tasks-7","description":"","fork":false,"url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7","forks_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/forks","keys_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/teams","hooks_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/hooks","issue_events_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/events","assignees_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/tags","blobs_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/languages","stargazers_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/stargazers","contributors_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/contributors","subscribers_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/subscribers","subscription_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/subscription","commits_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/merges","archive_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/downloads","issues_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/releases{/id}","deployments_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/deployments","created_at":"2016-04-21T10:08:23Z","updated_at":"2016-04-27T13:06:51Z","pushed_at":"2016-05-10T19:04:33Z","git_url":"git://github.com/urfu-2015/webdev-tasks-7.git","ssh_url":"git@github.com:urfu-2015/webdev-tasks-7.git","clone_url":"https://github.com/urfu-2015/webdev-tasks-7.git","svn_url":"https://github.com/urfu-2015/webdev-tasks-7","homepage":null,"size":3,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":15,"forks":26,"open_issues":15,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/pulls/4"},"html":{"href":"https://github.com/urfu-2015/webdev-tasks-7/pull/4"},"issue":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/issues/4"},"comments":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-7/statuses/076025dda1a7d8bed7920485504fc6bf18a00424"}}}}