{"action":"created","issue":{"url":"https://api.github.com/repos/js-htmlacademy/109467-keksogram/issues/2","labels_url":"https://api.github.com/repos/js-htmlacademy/109467-keksogram/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/js-htmlacademy/109467-keksogram/issues/2/comments","events_url":"https://api.github.com/repos/js-htmlacademy/109467-keksogram/issues/2/events","html_url":"https://github.com/js-htmlacademy/109467-keksogram/pull/2","id":117012865,"number":2,"title":"Начинаем программировать","user":{"login":"stavcd","id":12037048,"avatar_url":"https://avatars.githubusercontent.com/u/12037048?v=3","gravatar_id":"","url":"https://api.github.com/users/stavcd","html_url":"https://github.com/stavcd","followers_url":"https://api.github.com/users/stavcd/followers","following_url":"https://api.github.com/users/stavcd/following{/other_user}","gists_url":"https://api.github.com/users/stavcd/gists{/gist_id}","starred_url":"https://api.github.com/users/stavcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stavcd/subscriptions","organizations_url":"https://api.github.com/users/stavcd/orgs","repos_url":"https://api.github.com/users/stavcd/repos","events_url":"https://api.github.com/users/stavcd/events{/privacy}","received_events_url":"https://api.github.com/users/stavcd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"cy6erskunk","id":754849,"avatar_url":"https://avatars.githubusercontent.com/u/754849?v=3","gravatar_id":"","url":"https://api.github.com/users/cy6erskunk","html_url":"https://github.com/cy6erskunk","followers_url":"https://api.github.com/users/cy6erskunk/followers","following_url":"https://api.github.com/users/cy6erskunk/following{/other_user}","gists_url":"https://api.github.com/users/cy6erskunk/gists{/gist_id}","starred_url":"https://api.github.com/users/cy6erskunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cy6erskunk/subscriptions","organizations_url":"https://api.github.com/users/cy6erskunk/orgs","repos_url":"https://api.github.com/users/cy6erskunk/repos","events_url":"https://api.github.com/users/cy6erskunk/events{/privacy}","received_events_url":"https://api.github.com/users/cy6erskunk/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-11-15T19:39:49Z","updated_at":"2015-11-17T13:59:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/js-htmlacademy/109467-keksogram/pulls/2","html_url":"https://github.com/js-htmlacademy/109467-keksogram/pull/2","diff_url":"https://github.com/js-htmlacademy/109467-keksogram/pull/2.diff","patch_url":"https://github.com/js-htmlacademy/109467-keksogram/pull/2.patch"},"body":"\n\n--\n:boom: https://js-htmlacademy.github.io/109467-keksogram/2/"},"comment":{"url":"https://api.github.com/repos/js-htmlacademy/109467-keksogram/issues/comments/157376806","html_url":"https://github.com/js-htmlacademy/109467-keksogram/pull/2#issuecomment-157376806","issue_url":"https://api.github.com/repos/js-htmlacademy/109467-keksogram/issues/2","id":157376806,"user":{"login":"cy6erskunk","id":754849,"avatar_url":"https://avatars.githubusercontent.com/u/754849?v=3","gravatar_id":"","url":"https://api.github.com/users/cy6erskunk","html_url":"https://github.com/cy6erskunk","followers_url":"https://api.github.com/users/cy6erskunk/followers","following_url":"https://api.github.com/users/cy6erskunk/following{/other_user}","gists_url":"https://api.github.com/users/cy6erskunk/gists{/gist_id}","starred_url":"https://api.github.com/users/cy6erskunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cy6erskunk/subscriptions","organizations_url":"https://api.github.com/users/cy6erskunk/orgs","repos_url":"https://api.github.com/users/cy6erskunk/repos","events_url":"https://api.github.com/users/cy6erskunk/events{/privacy}","received_events_url":"https://api.github.com/users/cy6erskunk/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T13:59:50Z","updated_at":"2015-11-17T13:59:50Z","body":"Отлично! Тернарный оператор отлично подходит для таких случаев.\r\n\r\nПара мелких исправлений и я готов засчитать задание: \r\n- все же нужно убрать неуместные изменения в `index.html`\r\n- пустые строки после `if` тоже стоит убрать, ради единообразия\r\n\r\nДля того чтобы не засорять глобальное пространство имен, служебные функции лучше определять в объекте (функции), для которого они предназначены. "}}