{"action":"created","comment":{"url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/pulls/comments/43175334","id":43175334,"diff_hunk":"@@ -17,9 +21,29 @@\n \n   resizeForm.onsubmit = function(evt) {\n     evt.preventDefault();\n-    filterForm.elements['filter-image-src'] = previewImage.src;\n-\n+    // filterForm.elements['filter-image-src'] = previewImage.src;\n+    filterForm.querySelector('.filter-image-preview').src = resizer.exportImage().src;\n     resizeForm.classList.add('invisible');\n     filterForm.classList.remove('invisible');\n   };\n+  //window.addEventListener('resizerchange', function() {\n+  //  var maxWidth = previewImage.width;\n+  //  var maxHeight = previewImage.height;\n+  //  var x = resizeX.value;\n+  //  var y = resizeY.value;\n+  //  var s = resizeSize.value;\n+  //  if (((x + s) > maxWidth) || ((y + s) > maxHeight)) {\n+  //    resizer.setConstraint(-(x-resizer.getConstraint().x) / 2, -(y-resizer.getConstraint().y) / 2, s);\n+  //  }\n+  //\n+  //});\n+\n+  /**\n+   * Событие изменения кнопки Сторона. Почему все едет...Картинка смещается.\n+   */","path":"js/resize-form.js","position":43,"original_position":43,"commit_id":"bfe1dba51923267c00b09d77f75b24963f4ce54b","original_commit_id":"cc4e7a0ebad86ef902c1f36e833b871a7253c02a","user":{"login":"o0","id":696826,"avatar_url":"https://avatars.githubusercontent.com/u/696826?v=3","gravatar_id":"","url":"https://api.github.com/users/o0","html_url":"https://github.com/o0","followers_url":"https://api.github.com/users/o0/followers","following_url":"https://api.github.com/users/o0/following{/other_user}","gists_url":"https://api.github.com/users/o0/gists{/gist_id}","starred_url":"https://api.github.com/users/o0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/o0/subscriptions","organizations_url":"https://api.github.com/users/o0/orgs","repos_url":"https://api.github.com/users/o0/repos","events_url":"https://api.github.com/users/o0/events{/privacy}","received_events_url":"https://api.github.com/users/o0/received_events","type":"User","site_admin":false},"body":"Если увеличить `side`, то чтобы квадрат остался относительно картинки там же (чтобы картинка не уезжала), нужно, соответственно, уменьшить `x` и `y` так, чтобы это уменьшение компенсировало увеличение `side`, осталось только понять насколько. И в обратную сторону так же. В самом задании в гифке есть пример как должен меняться размер квадрата.","created_at":"2015-10-27T19:42:24Z","updated_at":"2015-10-27T19:42:24Z","html_url":"https://github.com/js-htmlacademy/89678-keksogram/pull/10#discussion_r43175334","pull_request_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/pulls/comments/43175334"},"html":{"href":"https://github.com/js-htmlacademy/89678-keksogram/pull/10#discussion_r43175334"},"pull_request":{"href":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/pulls/10","id":48793634,"html_url":"https://github.com/js-htmlacademy/89678-keksogram/pull/10","diff_url":"https://github.com/js-htmlacademy/89678-keksogram/pull/10.diff","patch_url":"https://github.com/js-htmlacademy/89678-keksogram/pull/10.patch","issue_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/issues/10","number":10,"state":"open","locked":false,"title":"8.1","user":{"login":"yurkevichab","id":14368869,"avatar_url":"https://avatars.githubusercontent.com/u/14368869?v=3","gravatar_id":"","url":"https://api.github.com/users/yurkevichab","html_url":"https://github.com/yurkevichab","followers_url":"https://api.github.com/users/yurkevichab/followers","following_url":"https://api.github.com/users/yurkevichab/following{/other_user}","gists_url":"https://api.github.com/users/yurkevichab/gists{/gist_id}","starred_url":"https://api.github.com/users/yurkevichab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurkevichab/subscriptions","organizations_url":"https://api.github.com/users/yurkevichab/orgs","repos_url":"https://api.github.com/users/yurkevichab/repos","events_url":"https://api.github.com/users/yurkevichab/events{/privacy}","received_events_url":"https://api.github.com/users/yurkevichab/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-26T20:36:55Z","updated_at":"2015-10-27T19:42:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c7c634d021a27d640e3927e469f6a63feec5df4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/pulls/10/commits","review_comments_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/pulls/10/comments","review_comment_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/pulls/comments{/number}","comments_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/issues/10/comments","statuses_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/statuses/bfe1dba51923267c00b09d77f75b24963f4ce54b","head":{"label":"yurkevichab:master","ref":"master","sha":"bfe1dba51923267c00b09d77f75b24963f4ce54b","user":{"login":"yurkevichab","id":14368869,"avatar_url":"https://avatars.githubusercontent.com/u/14368869?v=3","gravatar_id":"","url":"https://api.github.com/users/yurkevichab","html_url":"https://github.com/yurkevichab","followers_url":"https://api.github.com/users/yurkevichab/followers","following_url":"https://api.github.com/users/yurkevichab/following{/other_user}","gists_url":"https://api.github.com/users/yurkevichab/gists{/gist_id}","starred_url":"https://api.github.com/users/yurkevichab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurkevichab/subscriptions","organizations_url":"https://api.github.com/users/yurkevichab/orgs","repos_url":"https://api.github.com/users/yurkevichab/repos","events_url":"https://api.github.com/users/yurkevichab/events{/privacy}","received_events_url":"https://api.github.com/users/yurkevichab/received_events","type":"User","site_admin":false},"repo":{"id":42807331,"name":"89678-keksogram","full_name":"yurkevichab/89678-keksogram","owner":{"login":"yurkevichab","id":14368869,"avatar_url":"https://avatars.githubusercontent.com/u/14368869?v=3","gravatar_id":"","url":"https://api.github.com/users/yurkevichab","html_url":"https://github.com/yurkevichab","followers_url":"https://api.github.com/users/yurkevichab/followers","following_url":"https://api.github.com/users/yurkevichab/following{/other_user}","gists_url":"https://api.github.com/users/yurkevichab/gists{/gist_id}","starred_url":"https://api.github.com/users/yurkevichab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurkevichab/subscriptions","organizations_url":"https://api.github.com/users/yurkevichab/orgs","repos_url":"https://api.github.com/users/yurkevichab/repos","events_url":"https://api.github.com/users/yurkevichab/events{/privacy}","received_events_url":"https://api.github.com/users/yurkevichab/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yurkevichab/89678-keksogram","description":"Алексей Юркевич","fork":true,"url":"https://api.github.com/repos/yurkevichab/89678-keksogram","forks_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/forks","keys_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/teams","hooks_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/hooks","issue_events_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/issues/events{/number}","events_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/events","assignees_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/assignees{/user}","branches_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/branches{/branch}","tags_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/tags","blobs_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/git/refs{/sha}","trees_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/statuses/{sha}","languages_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/languages","stargazers_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/stargazers","contributors_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/contributors","subscribers_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/subscribers","subscription_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/subscription","commits_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/commits{/sha}","git_commits_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/git/commits{/sha}","comments_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/comments{/number}","issue_comment_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/issues/comments{/number}","contents_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/contents/{+path}","compare_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/merges","archive_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/downloads","issues_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/issues{/number}","pulls_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/pulls{/number}","milestones_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/milestones{/number}","notifications_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/labels{/name}","releases_url":"https://api.github.com/repos/yurkevichab/89678-keksogram/releases{/id}","created_at":"2015-09-20T09:19:57Z","updated_at":"2015-09-20T18:45:58Z","pushed_at":"2015-10-27T07:23:10Z","git_url":"git://github.com/yurkevichab/89678-keksogram.git","ssh_url":"git@github.com:yurkevichab/89678-keksogram.git","clone_url":"https://github.com/yurkevichab/89678-keksogram.git","svn_url":"https://github.com/yurkevichab/89678-keksogram","homepage":null,"size":3262,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"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":"js-htmlacademy:master","ref":"master","sha":"ad71c092540d9acd1551bdccfdf66f180f6a5689","user":{"login":"js-htmlacademy","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/js-htmlacademy","html_url":"https://github.com/js-htmlacademy","followers_url":"https://api.github.com/users/js-htmlacademy/followers","following_url":"https://api.github.com/users/js-htmlacademy/following{/other_user}","gists_url":"https://api.github.com/users/js-htmlacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/js-htmlacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js-htmlacademy/subscriptions","organizations_url":"https://api.github.com/users/js-htmlacademy/orgs","repos_url":"https://api.github.com/users/js-htmlacademy/repos","events_url":"https://api.github.com/users/js-htmlacademy/events{/privacy}","received_events_url":"https://api.github.com/users/js-htmlacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":42806758,"name":"89678-keksogram","full_name":"js-htmlacademy/89678-keksogram","owner":{"login":"js-htmlacademy","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/js-htmlacademy","html_url":"https://github.com/js-htmlacademy","followers_url":"https://api.github.com/users/js-htmlacademy/followers","following_url":"https://api.github.com/users/js-htmlacademy/following{/other_user}","gists_url":"https://api.github.com/users/js-htmlacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/js-htmlacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js-htmlacademy/subscriptions","organizations_url":"https://api.github.com/users/js-htmlacademy/orgs","repos_url":"https://api.github.com/users/js-htmlacademy/repos","events_url":"https://api.github.com/users/js-htmlacademy/events{/privacy}","received_events_url":"https://api.github.com/users/js-htmlacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/js-htmlacademy/89678-keksogram","description":"Алексей Юркевич","fork":false,"url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram","forks_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/forks","keys_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/teams","hooks_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/hooks","issue_events_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/issues/events{/number}","events_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/events","assignees_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/assignees{/user}","branches_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/branches{/branch}","tags_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/tags","blobs_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/git/refs{/sha}","trees_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/statuses/{sha}","languages_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/languages","stargazers_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/stargazers","contributors_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/contributors","subscribers_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/subscribers","subscription_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/subscription","commits_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/commits{/sha}","git_commits_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/git/commits{/sha}","comments_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/comments{/number}","issue_comment_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/issues/comments{/number}","contents_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/contents/{+path}","compare_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/merges","archive_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/downloads","issues_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/issues{/number}","pulls_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/pulls{/number}","milestones_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/milestones{/number}","notifications_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/labels{/name}","releases_url":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/releases{/id}","created_at":"2015-09-20T08:57:38Z","updated_at":"2015-09-22T13:14:08Z","pushed_at":"2015-10-27T07:23:10Z","git_url":"git://github.com/js-htmlacademy/89678-keksogram.git","ssh_url":"git@github.com:js-htmlacademy/89678-keksogram.git","clone_url":"https://github.com/js-htmlacademy/89678-keksogram.git","svn_url":"https://github.com/js-htmlacademy/89678-keksogram","homepage":null,"size":3404,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/pulls/10"},"html":{"href":"https://github.com/js-htmlacademy/89678-keksogram/pull/10"},"issue":{"href":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/issues/10"},"comments":{"href":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/js-htmlacademy/89678-keksogram/statuses/bfe1dba51923267c00b09d77f75b24963f4ce54b"}}}}