{"action":"created","comment":{"url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/comments/236408271","pull_request_review_id":178472702,"id":236408271,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNjQwODI3MQ==","diff_hunk":"@@ -0,0 +1,87 @@\n+let newItems = ['General Basics','Front-End Basics', 'Advanced Topics',];\n+let myNode = document.getElementById(\"content\");\n+\n+let clickDel = function (){\n+    while (myNode.firstChild) {\n+        myNode.removeChild(myNode.firstChild);\n+    }\n+   } \n+\n+newItems.forEach(function(item){\n+    let topNav = document.createElement('div');\n+    topNav.innerHTML = \"<span>\" + item + \"</span>\";\n+    menu.appendChild(topNav);\n+    topNav.className = \"new-item\"\n+\n+    topNav.addEventListener(\"mouseover\",function(){\n+        topNav.classList.add('items-mouseover');\n+    });\n+    topNav.addEventListener(\"mouseout\",function(){\n+        topNav.classList.remove('items-mouseover');\n+    });\n+});\n+\n+let titleKottans = document.createElement(\"h1\")\n+document.getElementById(\"content\").insertAdjacentHTML('beforeend','<h1>Kottans Front-End Course 2019</h1>');\n+\n+let generalBasics = document.querySelectorAll(\"nav >div.new-item\")[0];\n+generalBasics.addEventListener(\"click\",function(){\n+       \n+    if(document.body.classList.contains(\"children0\") === false){\n+        document.body.classList.add(\"children0\");\n+        document.body.classList.remove(\"children1\",\"children2\");\n+        \n+        clickDel();\n+        \n+        let generalContent = document.createElement(\"div\");\n+        generalContent.className = \"main-content\";\n+        generalContent.innerHTML = \"<h1>General Basics</h1><ol><li><a>Git Basics</a></li><li><a>Linux CLI and Networking</a></li><li><a>VCS (hello gitty)GitHub and Collaboration</a></li></ol>\"\n+        content.appendChild(generalContent);\n+        let titleKottans = document.createElement(\"h1\")\n+        myNode.insertAdjacentHTML('afterbegin','<h1>Kottans Front-End Course 2019</h1>');","path":"submissions/maxovsanyuk/js-dom/js/data.js","position":41,"original_position":41,"commit_id":"7c110a53499aad12faf531213226711fe30f1b46","original_commit_id":"7c110a53499aad12faf531213226711fe30f1b46","user":{"login":"zonzujiro","id":2997359,"node_id":"MDQ6VXNlcjI5OTczNTk=","avatar_url":"https://avatars1.githubusercontent.com/u/2997359?v=4","gravatar_id":"","url":"https://api.github.com/users/zonzujiro","html_url":"https://github.com/zonzujiro","followers_url":"https://api.github.com/users/zonzujiro/followers","following_url":"https://api.github.com/users/zonzujiro/following{/other_user}","gists_url":"https://api.github.com/users/zonzujiro/gists{/gist_id}","starred_url":"https://api.github.com/users/zonzujiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zonzujiro/subscriptions","organizations_url":"https://api.github.com/users/zonzujiro/orgs","repos_url":"https://api.github.com/users/zonzujiro/repos","events_url":"https://api.github.com/users/zonzujiro/events{/privacy}","received_events_url":"https://api.github.com/users/zonzujiro/received_events","type":"User","site_admin":false},"body":"Also, three times per file. What for? What are you trying to achieve?","created_at":"2018-11-26T20:10:21Z","updated_at":"2018-11-26T20:10:45Z","html_url":"https://github.com/kottans/frontend-2019-homeworks/pull/32#discussion_r236408271","pull_request_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/32","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/comments/236408271"},"html":{"href":"https://github.com/kottans/frontend-2019-homeworks/pull/32#discussion_r236408271"},"pull_request":{"href":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/32","id":233386328,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMzg2MzI4","html_url":"https://github.com/kottans/frontend-2019-homeworks/pull/32","diff_url":"https://github.com/kottans/frontend-2019-homeworks/pull/32.diff","patch_url":"https://github.com/kottans/frontend-2019-homeworks/pull/32.patch","issue_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues/32","number":32,"state":"open","locked":false,"title":"Dom api task","user":{"login":"maxovsanyuk","id":18484535,"node_id":"MDQ6VXNlcjE4NDg0NTM1","avatar_url":"https://avatars3.githubusercontent.com/u/18484535?v=4","gravatar_id":"","url":"https://api.github.com/users/maxovsanyuk","html_url":"https://github.com/maxovsanyuk","followers_url":"https://api.github.com/users/maxovsanyuk/followers","following_url":"https://api.github.com/users/maxovsanyuk/following{/other_user}","gists_url":"https://api.github.com/users/maxovsanyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/maxovsanyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxovsanyuk/subscriptions","organizations_url":"https://api.github.com/users/maxovsanyuk/orgs","repos_url":"https://api.github.com/users/maxovsanyuk/repos","events_url":"https://api.github.com/users/maxovsanyuk/events{/privacy}","received_events_url":"https://api.github.com/users/maxovsanyuk/received_events","type":"User","site_admin":false},"body":"### Document Object Model\r\n\r\n[Demo](https://maxovsanyuk.github.io/kottansDom/) |\r\n[Code base](https://github.com/maxovsanyuk/kottans-frontend/tree/master/task_js_dom)\r\n\r\nThe code is submitted in a dedicated feature branch.\r\nPlease, review.\r\n","created_at":"2018-11-25T16:42:51Z","updated_at":"2018-11-26T20:10:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20e4eb75c173b5f38832f2d63c15e39a47222479","assignee":{"login":"zonzujiro","id":2997359,"node_id":"MDQ6VXNlcjI5OTczNTk=","avatar_url":"https://avatars1.githubusercontent.com/u/2997359?v=4","gravatar_id":"","url":"https://api.github.com/users/zonzujiro","html_url":"https://github.com/zonzujiro","followers_url":"https://api.github.com/users/zonzujiro/followers","following_url":"https://api.github.com/users/zonzujiro/following{/other_user}","gists_url":"https://api.github.com/users/zonzujiro/gists{/gist_id}","starred_url":"https://api.github.com/users/zonzujiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zonzujiro/subscriptions","organizations_url":"https://api.github.com/users/zonzujiro/orgs","repos_url":"https://api.github.com/users/zonzujiro/repos","events_url":"https://api.github.com/users/zonzujiro/events{/privacy}","received_events_url":"https://api.github.com/users/zonzujiro/received_events","type":"User","site_admin":false},"assignees":[{"login":"zonzujiro","id":2997359,"node_id":"MDQ6VXNlcjI5OTczNTk=","avatar_url":"https://avatars1.githubusercontent.com/u/2997359?v=4","gravatar_id":"","url":"https://api.github.com/users/zonzujiro","html_url":"https://github.com/zonzujiro","followers_url":"https://api.github.com/users/zonzujiro/followers","following_url":"https://api.github.com/users/zonzujiro/following{/other_user}","gists_url":"https://api.github.com/users/zonzujiro/gists{/gist_id}","starred_url":"https://api.github.com/users/zonzujiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zonzujiro/subscriptions","organizations_url":"https://api.github.com/users/zonzujiro/orgs","repos_url":"https://api.github.com/users/zonzujiro/repos","events_url":"https://api.github.com/users/zonzujiro/events{/privacy}","received_events_url":"https://api.github.com/users/zonzujiro/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/32/commits","review_comments_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/32/comments","review_comment_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues/32/comments","statuses_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/statuses/7c110a53499aad12faf531213226711fe30f1b46","head":{"label":"maxovsanyuk:dom-api-task","ref":"dom-api-task","sha":"7c110a53499aad12faf531213226711fe30f1b46","user":{"login":"maxovsanyuk","id":18484535,"node_id":"MDQ6VXNlcjE4NDg0NTM1","avatar_url":"https://avatars3.githubusercontent.com/u/18484535?v=4","gravatar_id":"","url":"https://api.github.com/users/maxovsanyuk","html_url":"https://github.com/maxovsanyuk","followers_url":"https://api.github.com/users/maxovsanyuk/followers","following_url":"https://api.github.com/users/maxovsanyuk/following{/other_user}","gists_url":"https://api.github.com/users/maxovsanyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/maxovsanyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxovsanyuk/subscriptions","organizations_url":"https://api.github.com/users/maxovsanyuk/orgs","repos_url":"https://api.github.com/users/maxovsanyuk/repos","events_url":"https://api.github.com/users/maxovsanyuk/events{/privacy}","received_events_url":"https://api.github.com/users/maxovsanyuk/received_events","type":"User","site_admin":false},"repo":{"id":159032269,"node_id":"MDEwOlJlcG9zaXRvcnkxNTkwMzIyNjk=","name":"frontend-2019-homeworks","full_name":"maxovsanyuk/frontend-2019-homeworks","private":false,"owner":{"login":"maxovsanyuk","id":18484535,"node_id":"MDQ6VXNlcjE4NDg0NTM1","avatar_url":"https://avatars3.githubusercontent.com/u/18484535?v=4","gravatar_id":"","url":"https://api.github.com/users/maxovsanyuk","html_url":"https://github.com/maxovsanyuk","followers_url":"https://api.github.com/users/maxovsanyuk/followers","following_url":"https://api.github.com/users/maxovsanyuk/following{/other_user}","gists_url":"https://api.github.com/users/maxovsanyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/maxovsanyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxovsanyuk/subscriptions","organizations_url":"https://api.github.com/users/maxovsanyuk/orgs","repos_url":"https://api.github.com/users/maxovsanyuk/repos","events_url":"https://api.github.com/users/maxovsanyuk/events{/privacy}","received_events_url":"https://api.github.com/users/maxovsanyuk/received_events","type":"User","site_admin":false},"html_url":"https://github.com/maxovsanyuk/frontend-2019-homeworks","description":"Repo for students' homework reviews","fork":true,"url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks","forks_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/forks","keys_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/teams","hooks_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/hooks","issue_events_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/issues/events{/number}","events_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/events","assignees_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/assignees{/user}","branches_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/branches{/branch}","tags_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/tags","blobs_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/git/refs{/sha}","trees_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/statuses/{sha}","languages_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/languages","stargazers_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/stargazers","contributors_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/contributors","subscribers_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/subscribers","subscription_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/subscription","commits_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/commits{/sha}","git_commits_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/git/commits{/sha}","comments_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/comments{/number}","issue_comment_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/issues/comments{/number}","contents_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/contents/{+path}","compare_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/merges","archive_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/downloads","issues_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/issues{/number}","pulls_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/pulls{/number}","milestones_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/milestones{/number}","notifications_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/labels{/name}","releases_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/releases{/id}","deployments_url":"https://api.github.com/repos/maxovsanyuk/frontend-2019-homeworks/deployments","created_at":"2018-11-25T13:03:53Z","updated_at":"2018-11-25T13:03:55Z","pushed_at":"2018-11-26T13:14:20Z","git_url":"git://github.com/maxovsanyuk/frontend-2019-homeworks.git","ssh_url":"git@github.com:maxovsanyuk/frontend-2019-homeworks.git","clone_url":"https://github.com/maxovsanyuk/frontend-2019-homeworks.git","svn_url":"https://github.com/maxovsanyuk/frontend-2019-homeworks","homepage":null,"size":4322,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"kottans:master","ref":"master","sha":"839c3c454b40beb39cbd80460895fb95452e28f7","user":{"login":"kottans","id":6013442,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwMTM0NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/6013442?v=4","gravatar_id":"","url":"https://api.github.com/users/kottans","html_url":"https://github.com/kottans","followers_url":"https://api.github.com/users/kottans/followers","following_url":"https://api.github.com/users/kottans/following{/other_user}","gists_url":"https://api.github.com/users/kottans/gists{/gist_id}","starred_url":"https://api.github.com/users/kottans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kottans/subscriptions","organizations_url":"https://api.github.com/users/kottans/orgs","repos_url":"https://api.github.com/users/kottans/repos","events_url":"https://api.github.com/users/kottans/events{/privacy}","received_events_url":"https://api.github.com/users/kottans/received_events","type":"Organization","site_admin":false},"repo":{"id":155096157,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUwOTYxNTc=","name":"frontend-2019-homeworks","full_name":"kottans/frontend-2019-homeworks","private":false,"owner":{"login":"kottans","id":6013442,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYwMTM0NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/6013442?v=4","gravatar_id":"","url":"https://api.github.com/users/kottans","html_url":"https://github.com/kottans","followers_url":"https://api.github.com/users/kottans/followers","following_url":"https://api.github.com/users/kottans/following{/other_user}","gists_url":"https://api.github.com/users/kottans/gists{/gist_id}","starred_url":"https://api.github.com/users/kottans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kottans/subscriptions","organizations_url":"https://api.github.com/users/kottans/orgs","repos_url":"https://api.github.com/users/kottans/repos","events_url":"https://api.github.com/users/kottans/events{/privacy}","received_events_url":"https://api.github.com/users/kottans/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/kottans/frontend-2019-homeworks","description":"Repo for students' homework reviews","fork":false,"url":"https://api.github.com/repos/kottans/frontend-2019-homeworks","forks_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/forks","keys_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/teams","hooks_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/hooks","issue_events_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues/events{/number}","events_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/events","assignees_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/assignees{/user}","branches_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/branches{/branch}","tags_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/tags","blobs_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/git/refs{/sha}","trees_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/statuses/{sha}","languages_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/languages","stargazers_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/stargazers","contributors_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/contributors","subscribers_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/subscribers","subscription_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/subscription","commits_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/commits{/sha}","git_commits_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/git/commits{/sha}","comments_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/comments{/number}","issue_comment_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues/comments{/number}","contents_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/contents/{+path}","compare_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/merges","archive_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/downloads","issues_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues{/number}","pulls_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls{/number}","milestones_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/milestones{/number}","notifications_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/labels{/name}","releases_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/releases{/id}","deployments_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/deployments","created_at":"2018-10-28T17:21:19Z","updated_at":"2018-11-26T11:53:44Z","pushed_at":"2018-11-26T19:47:01Z","git_url":"git://github.com/kottans/frontend-2019-homeworks.git","ssh_url":"git@github.com:kottans/frontend-2019-homeworks.git","clone_url":"https://github.com/kottans/frontend-2019-homeworks.git","svn_url":"https://github.com/kottans/frontend-2019-homeworks","homepage":null,"size":6268,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":18,"open_issues":8,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/32"},"html":{"href":"https://github.com/kottans/frontend-2019-homeworks/pull/32"},"issue":{"href":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues/32"},"comments":{"href":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/kottans/frontend-2019-homeworks/statuses/7c110a53499aad12faf531213226711fe30f1b46"}},"author_association":"NONE"}}
{"actor":{"display_login":"zonzujiro"}}