{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/pulls/comments/171533436","pull_request_review_id":100400402,"id":171533436,"diff_hunk":"@@ -0,0 +1,114 @@\n+'use strict';\n+\n+const setup = document.querySelector(`.setup`);\n+const similarListElement = setup.querySelector(`.setup-similar-list`);\n+const setupSimilar = setup.querySelector(`.setup-similar`);\n+\n+const wizardsElements = {\n+  'setup': setup,\n+  'similarListElement': similarListElement,\n+  'setupSimilar': setupSimilar\n+};\n+\n+const wizardsOptions = {\n+  elementsQuantity: 4,\n+  names: [`Иван`, `Хуан Себастьян`, `Мария`, `Кристоф`, `Виктор`, `Юлия`, `Люпита`, `Вашингтон`],\n+  familyNames: [`да Марья`, `Верон`, `Мирабелла`, `Вальц`, `Онопко`, `Топольницкая`, `Нионго`, `Ирвинг`],\n+  coatColors: [`rgb(101, 137, 164)`, `rgb(241, 43, 107)`, `rgb(146, 100, 161)\n+  `, `rgb(56, 159, 117)\n+  `, `rgb(215, 210, 55)\n+  `, `rgb(0, 0, 0)`],\n+  eyesColors: [`black`, `red`, `blue`, `yellow`, `green`]\n+};\n+\n+\n+const showElement = (element) => {\n+  element.classList.remove(`hidden`);\n+};\n+\n+// после принятия пр убрать эту функцию, так как она есть в другом модуле\n+const generateNumber = (min, max) => (Math.random() * (max - min)) + min;\n+\n+const getMixArray = (array) => {\n+  const newArray = array.slice();\n+  let index;\n+  let element;\n+\n+  for (let i = newArray.length - 1; i >= 0; i--) {\n+    index = Math.floor(generateNumber(0, i));\n+    element = newArray[index];\n+    newArray.push(element);\n+    newArray.splice(index, 1);","path":"js/setup.js","position":41,"original_position":41,"commit_id":"39bd5db29273fcc83e85004ab01844102fca4843","original_commit_id":"39bd5db29273fcc83e85004ab01844102fca4843","user":{"login":"LeraGreen","id":18391938,"avatar_url":"https://avatars0.githubusercontent.com/u/18391938?v=4","gravatar_id":"","url":"https://api.github.com/users/LeraGreen","html_url":"https://github.com/LeraGreen","followers_url":"https://api.github.com/users/LeraGreen/followers","following_url":"https://api.github.com/users/LeraGreen/following{/other_user}","gists_url":"https://api.github.com/users/LeraGreen/gists{/gist_id}","starred_url":"https://api.github.com/users/LeraGreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeraGreen/subscriptions","organizations_url":"https://api.github.com/users/LeraGreen/orgs","repos_url":"https://api.github.com/users/LeraGreen/repos","events_url":"https://api.github.com/users/LeraGreen/events{/privacy}","received_events_url":"https://api.github.com/users/LeraGreen/received_events","type":"User","site_admin":false},"body":"а перемещение не дольше? ты же берёшь тогда элемент, делаешь его последним и все остальные сдвигаешь как бы на минус 1, это типа быстрее?","created_at":"2018-03-01T11:40:32Z","updated_at":"2018-03-01T11:40:33Z","html_url":"https://github.com/htmlacademy-javascript/197604-code-and-magick/pull/4#discussion_r171533436","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/pulls/4","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/pulls/comments/171533436"},"html":{"href":"https://github.com/htmlacademy-javascript/197604-code-and-magick/pull/4#discussion_r171533436"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/pulls/4"}},"in_reply_to_id":168138369},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/pulls/4","id":167251574,"html_url":"https://github.com/htmlacademy-javascript/197604-code-and-magick/pull/4","diff_url":"https://github.com/htmlacademy-javascript/197604-code-and-magick/pull/4.diff","patch_url":"https://github.com/htmlacademy-javascript/197604-code-and-magick/pull/4.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/issues/4","number":4,"state":"open","locked":false,"title":"Учебный проект: нас орда","user":{"login":"LeraGreen","id":18391938,"avatar_url":"https://avatars0.githubusercontent.com/u/18391938?v=4","gravatar_id":"","url":"https://api.github.com/users/LeraGreen","html_url":"https://github.com/LeraGreen","followers_url":"https://api.github.com/users/LeraGreen/followers","following_url":"https://api.github.com/users/LeraGreen/following{/other_user}","gists_url":"https://api.github.com/users/LeraGreen/gists{/gist_id}","starred_url":"https://api.github.com/users/LeraGreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeraGreen/subscriptions","organizations_url":"https://api.github.com/users/LeraGreen/orgs","repos_url":"https://api.github.com/users/LeraGreen/repos","events_url":"https://api.github.com/users/LeraGreen/events{/privacy}","received_events_url":"https://api.github.com/users/LeraGreen/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Учебный проект: нас орда](https://up.htmlacademy.ru/javascript/12/user/197604/tasks/9)\n\n:boom: https://htmlacademy-javascript.github.io/197604-code-and-magick/4/","created_at":"2018-02-05T20:52:42Z","updated_at":"2018-03-01T11:40:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a196ef792dc7d5250f4d6b0242d5aea5c489a525","assignee":{"login":"o0","id":696826,"avatar_url":"https://avatars0.githubusercontent.com/u/696826?v=4","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},"assignees":[{"login":"o0","id":696826,"avatar_url":"https://avatars0.githubusercontent.com/u/696826?v=4","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}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/pulls/4/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/pulls/4/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/issues/4/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/statuses/39bd5db29273fcc83e85004ab01844102fca4843","head":{"label":"LeraGreen:module3-task1","ref":"module3-task1","sha":"39bd5db29273fcc83e85004ab01844102fca4843","user":{"login":"LeraGreen","id":18391938,"avatar_url":"https://avatars0.githubusercontent.com/u/18391938?v=4","gravatar_id":"","url":"https://api.github.com/users/LeraGreen","html_url":"https://github.com/LeraGreen","followers_url":"https://api.github.com/users/LeraGreen/followers","following_url":"https://api.github.com/users/LeraGreen/following{/other_user}","gists_url":"https://api.github.com/users/LeraGreen/gists{/gist_id}","starred_url":"https://api.github.com/users/LeraGreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeraGreen/subscriptions","organizations_url":"https://api.github.com/users/LeraGreen/orgs","repos_url":"https://api.github.com/users/LeraGreen/repos","events_url":"https://api.github.com/users/LeraGreen/events{/privacy}","received_events_url":"https://api.github.com/users/LeraGreen/received_events","type":"User","site_admin":false},"repo":{"id":119571846,"name":"197604-code-and-magick","full_name":"LeraGreen/197604-code-and-magick","owner":{"login":"LeraGreen","id":18391938,"avatar_url":"https://avatars0.githubusercontent.com/u/18391938?v=4","gravatar_id":"","url":"https://api.github.com/users/LeraGreen","html_url":"https://github.com/LeraGreen","followers_url":"https://api.github.com/users/LeraGreen/followers","following_url":"https://api.github.com/users/LeraGreen/following{/other_user}","gists_url":"https://api.github.com/users/LeraGreen/gists{/gist_id}","starred_url":"https://api.github.com/users/LeraGreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeraGreen/subscriptions","organizations_url":"https://api.github.com/users/LeraGreen/orgs","repos_url":"https://api.github.com/users/LeraGreen/repos","events_url":"https://api.github.com/users/LeraGreen/events{/privacy}","received_events_url":"https://api.github.com/users/LeraGreen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LeraGreen/197604-code-and-magick","description":"Валерия Зелёная","fork":true,"url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick","forks_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/forks","keys_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/teams","hooks_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/events","assignees_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/tags","blobs_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/subscription","commits_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/merges","archive_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/downloads","issues_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/LeraGreen/197604-code-and-magick/deployments","created_at":"2018-01-30T17:45:15Z","updated_at":"2018-01-30T17:45:17Z","pushed_at":"2018-02-28T16:16:59Z","git_url":"git://github.com/LeraGreen/197604-code-and-magick.git","ssh_url":"git@github.com:LeraGreen/197604-code-and-magick.git","clone_url":"https://github.com/LeraGreen/197604-code-and-magick.git","svn_url":"https://github.com/LeraGreen/197604-code-and-magick","homepage":null,"size":1099,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-javascript:master","ref":"master","sha":"158fbe3fa15ad7447587b86bfef4eb7c532eb5ff","user":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"repo":{"id":119571572,"name":"197604-code-and-magick","full_name":"htmlacademy-javascript/197604-code-and-magick","owner":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-javascript/197604-code-and-magick","description":"Валерия Зелёная","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick","forks_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/deployments","created_at":"2018-01-30T17:42:39Z","updated_at":"2018-01-30T18:39:37Z","pushed_at":"2018-02-14T10:36:53Z","git_url":"git://github.com/htmlacademy-javascript/197604-code-and-magick.git","ssh_url":"git@github.com:htmlacademy-javascript/197604-code-and-magick.git","clone_url":"https://github.com/htmlacademy-javascript/197604-code-and-magick.git","svn_url":"https://github.com/htmlacademy-javascript/197604-code-and-magick","homepage":"https://github.com/htmlacademy-javascript/197604-code-and-magick","size":1100,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/pulls/4"},"html":{"href":"https://github.com/htmlacademy-javascript/197604-code-and-magick/pull/4"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/issues/4"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/197604-code-and-magick/statuses/39bd5db29273fcc83e85004ab01844102fca4843"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"LeraGreen"}}