{"action":"created","comment":{"url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments/88757589","pull_request_review_id":9325012,"id":88757589,"diff_hunk":"@@ -0,0 +1,56 @@\n+ws = new WebSocket(\"ws://localhost:9292/ws\")\n+\n+fastEdit =  (e) => {\n+    id = $(e.currentTarget).parent().parent().attr(\"data-id\")\n+    form = $('<form class=\"form-inline\" method=\"POST\" action=\"/edit\"></form>')\n+        .append('<input type=\"hidden\" name=\"action\" value=\"edit\">')\n+        .append('<input type=\"hidden\" name=\"id\" value=\"'+id+'\">')\n+        .append($('<div class=\"form-group input-group\"></div>')\n+            .append(input = $('<input class=\"form-control\" name=\"word\" type=\"text\" placeholder=\"слово\">'))\n+            .append($('<span class=\"input-group-btn\"></span>')\n+                .append('<button class=\"btn btn-success\" type=\"submit\">Добавить</button>')))\n+        .insertAfter(e.currentTarget)\n+    form.submit((e) => {\n+        form = $(e.currentTarget)\n+        id = form.find('input[name=\"id\"]').val()\n+        word = form.find('input[name=\"word\"]').val()\n+        console.log(id, word)\n+        $.ajax({\n+            url: form.attr(\"action\"),\n+            method: \"POST\",\n+            data: {\n+                id: id,\n+                word: word,\n+                action: \"edit\"\n+            }\n+        }).done(function() {\n+            form.remove()\n+        })\n+        return false\n+    })\n+    input.focus()\n+}\n+\n+ws.onmessage = (e) => {\n+    e = JSON.parse(e.data)\n+    if (e.action == \"create\") $('<article data-id=\"'+e.sentence.id+'\"></article>')\n+        .append($('<blockquote></blockquote>')\n+            .append('<a class=\"lead\">'+e.sentence.text+'</a>')","path":"2016/VladimirSernatsky/letsword/public/list.js","position":38,"original_position":38,"commit_id":"709bde0f9ee28a7b72e0021ef2a94220a456809d","original_commit_id":"709bde0f9ee28a7b72e0021ef2a94220a456809d","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Mixed double and single quotes.","created_at":"2016-11-18T23:12:22Z","updated_at":"2016-11-18T23:12:23Z","html_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/510#discussion_r88757589","pull_request_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/510","_links":{"self":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments/88757589"},"html":{"href":"https://github.com/rubyroidlabs/bsuir-courses/pull/510#discussion_r88757589"},"pull_request":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/510"}}},"pull_request":{"url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/510","id":94453558,"html_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/510","diff_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/510.diff","patch_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/510.patch","issue_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/510","number":510,"state":"open","locked":false,"title":"Homework 3","user":{"login":"ByPort","id":7266338,"avatar_url":"https://avatars.githubusercontent.com/u/7266338?v=3","gravatar_id":"","url":"https://api.github.com/users/ByPort","html_url":"https://github.com/ByPort","followers_url":"https://api.github.com/users/ByPort/followers","following_url":"https://api.github.com/users/ByPort/following{/other_user}","gists_url":"https://api.github.com/users/ByPort/gists{/gist_id}","starred_url":"https://api.github.com/users/ByPort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ByPort/subscriptions","organizations_url":"https://api.github.com/users/ByPort/orgs","repos_url":"https://api.github.com/users/ByPort/repos","events_url":"https://api.github.com/users/ByPort/events{/privacy}","received_events_url":"https://api.github.com/users/ByPort/received_events","type":"User","site_admin":false},"body":"## Фамилия Имя\r\nСернацкий Владимир\r\n\r\n## Email\r\nbyport1112@gmail.com\r\n\r\n## Номер домашнего задания\r\n3\r\n\r\n## Ссылка на видео с демо работы\r\nhttps://youtu.be/juTj9ZPhPIE\r\n\r\n## Комментарии\r\nВроде всё сделал. Там когда добавляешь слово с главной страницы, то не закрашивает - это моя лень","created_at":"2016-11-18T23:12:01Z","updated_at":"2016-11-18T23:12:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9d464ed823e23a09eb137a5e8916e20282afa6d4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/510/commits","review_comments_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/510/comments","review_comment_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/510/comments","statuses_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/statuses/709bde0f9ee28a7b72e0021ef2a94220a456809d","head":{"label":"ByPort:homework-3","ref":"homework-3","sha":"709bde0f9ee28a7b72e0021ef2a94220a456809d","user":{"login":"ByPort","id":7266338,"avatar_url":"https://avatars.githubusercontent.com/u/7266338?v=3","gravatar_id":"","url":"https://api.github.com/users/ByPort","html_url":"https://github.com/ByPort","followers_url":"https://api.github.com/users/ByPort/followers","following_url":"https://api.github.com/users/ByPort/following{/other_user}","gists_url":"https://api.github.com/users/ByPort/gists{/gist_id}","starred_url":"https://api.github.com/users/ByPort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ByPort/subscriptions","organizations_url":"https://api.github.com/users/ByPort/orgs","repos_url":"https://api.github.com/users/ByPort/repos","events_url":"https://api.github.com/users/ByPort/events{/privacy}","received_events_url":"https://api.github.com/users/ByPort/received_events","type":"User","site_admin":false},"repo":{"id":71261456,"name":"bsuir-courses","full_name":"ByPort/bsuir-courses","owner":{"login":"ByPort","id":7266338,"avatar_url":"https://avatars.githubusercontent.com/u/7266338?v=3","gravatar_id":"","url":"https://api.github.com/users/ByPort","html_url":"https://github.com/ByPort","followers_url":"https://api.github.com/users/ByPort/followers","following_url":"https://api.github.com/users/ByPort/following{/other_user}","gists_url":"https://api.github.com/users/ByPort/gists{/gist_id}","starred_url":"https://api.github.com/users/ByPort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ByPort/subscriptions","organizations_url":"https://api.github.com/users/ByPort/orgs","repos_url":"https://api.github.com/users/ByPort/repos","events_url":"https://api.github.com/users/ByPort/events{/privacy}","received_events_url":"https://api.github.com/users/ByPort/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ByPort/bsuir-courses","description":"This is common repository for all student to submit all their homeworks","fork":true,"url":"https://api.github.com/repos/ByPort/bsuir-courses","forks_url":"https://api.github.com/repos/ByPort/bsuir-courses/forks","keys_url":"https://api.github.com/repos/ByPort/bsuir-courses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ByPort/bsuir-courses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ByPort/bsuir-courses/teams","hooks_url":"https://api.github.com/repos/ByPort/bsuir-courses/hooks","issue_events_url":"https://api.github.com/repos/ByPort/bsuir-courses/issues/events{/number}","events_url":"https://api.github.com/repos/ByPort/bsuir-courses/events","assignees_url":"https://api.github.com/repos/ByPort/bsuir-courses/assignees{/user}","branches_url":"https://api.github.com/repos/ByPort/bsuir-courses/branches{/branch}","tags_url":"https://api.github.com/repos/ByPort/bsuir-courses/tags","blobs_url":"https://api.github.com/repos/ByPort/bsuir-courses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ByPort/bsuir-courses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ByPort/bsuir-courses/git/refs{/sha}","trees_url":"https://api.github.com/repos/ByPort/bsuir-courses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ByPort/bsuir-courses/statuses/{sha}","languages_url":"https://api.github.com/repos/ByPort/bsuir-courses/languages","stargazers_url":"https://api.github.com/repos/ByPort/bsuir-courses/stargazers","contributors_url":"https://api.github.com/repos/ByPort/bsuir-courses/contributors","subscribers_url":"https://api.github.com/repos/ByPort/bsuir-courses/subscribers","subscription_url":"https://api.github.com/repos/ByPort/bsuir-courses/subscription","commits_url":"https://api.github.com/repos/ByPort/bsuir-courses/commits{/sha}","git_commits_url":"https://api.github.com/repos/ByPort/bsuir-courses/git/commits{/sha}","comments_url":"https://api.github.com/repos/ByPort/bsuir-courses/comments{/number}","issue_comment_url":"https://api.github.com/repos/ByPort/bsuir-courses/issues/comments{/number}","contents_url":"https://api.github.com/repos/ByPort/bsuir-courses/contents/{+path}","compare_url":"https://api.github.com/repos/ByPort/bsuir-courses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ByPort/bsuir-courses/merges","archive_url":"https://api.github.com/repos/ByPort/bsuir-courses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ByPort/bsuir-courses/downloads","issues_url":"https://api.github.com/repos/ByPort/bsuir-courses/issues{/number}","pulls_url":"https://api.github.com/repos/ByPort/bsuir-courses/pulls{/number}","milestones_url":"https://api.github.com/repos/ByPort/bsuir-courses/milestones{/number}","notifications_url":"https://api.github.com/repos/ByPort/bsuir-courses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ByPort/bsuir-courses/labels{/name}","releases_url":"https://api.github.com/repos/ByPort/bsuir-courses/releases{/id}","deployments_url":"https://api.github.com/repos/ByPort/bsuir-courses/deployments","created_at":"2016-10-18T15:15:02Z","updated_at":"2016-10-18T15:15:04Z","pushed_at":"2016-11-18T22:59:51Z","git_url":"git://github.com/ByPort/bsuir-courses.git","ssh_url":"git@github.com:ByPort/bsuir-courses.git","clone_url":"https://github.com/ByPort/bsuir-courses.git","svn_url":"https://github.com/ByPort/bsuir-courses","homepage":null,"size":2095,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"rubyroidlabs:master","ref":"master","sha":"eb75371b4d7a623651d88add7a5b61dbfcaed0d5","user":{"login":"rubyroidlabs","id":5137565,"avatar_url":"https://avatars.githubusercontent.com/u/5137565?v=3","gravatar_id":"","url":"https://api.github.com/users/rubyroidlabs","html_url":"https://github.com/rubyroidlabs","followers_url":"https://api.github.com/users/rubyroidlabs/followers","following_url":"https://api.github.com/users/rubyroidlabs/following{/other_user}","gists_url":"https://api.github.com/users/rubyroidlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyroidlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyroidlabs/subscriptions","organizations_url":"https://api.github.com/users/rubyroidlabs/orgs","repos_url":"https://api.github.com/users/rubyroidlabs/repos","events_url":"https://api.github.com/users/rubyroidlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rubyroidlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":14405320,"name":"bsuir-courses","full_name":"rubyroidlabs/bsuir-courses","owner":{"login":"rubyroidlabs","id":5137565,"avatar_url":"https://avatars.githubusercontent.com/u/5137565?v=3","gravatar_id":"","url":"https://api.github.com/users/rubyroidlabs","html_url":"https://github.com/rubyroidlabs","followers_url":"https://api.github.com/users/rubyroidlabs/followers","following_url":"https://api.github.com/users/rubyroidlabs/following{/other_user}","gists_url":"https://api.github.com/users/rubyroidlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyroidlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyroidlabs/subscriptions","organizations_url":"https://api.github.com/users/rubyroidlabs/orgs","repos_url":"https://api.github.com/users/rubyroidlabs/repos","events_url":"https://api.github.com/users/rubyroidlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rubyroidlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubyroidlabs/bsuir-courses","description":"This is common repository for all student to submit all their homeworks","fork":false,"url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses","forks_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/forks","keys_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/teams","hooks_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/hooks","issue_events_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/events{/number}","events_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/events","assignees_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/assignees{/user}","branches_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/branches{/branch}","tags_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/tags","blobs_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/statuses/{sha}","languages_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/languages","stargazers_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/stargazers","contributors_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/contributors","subscribers_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/subscribers","subscription_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/subscription","commits_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/contents/{+path}","compare_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/merges","archive_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/downloads","issues_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues{/number}","pulls_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls{/number}","milestones_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/milestones{/number}","notifications_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/labels{/name}","releases_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/releases{/id}","deployments_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/deployments","created_at":"2013-11-14T19:55:12Z","updated_at":"2016-11-03T04:38:40Z","pushed_at":"2016-11-18T23:12:02Z","git_url":"git://github.com/rubyroidlabs/bsuir-courses.git","ssh_url":"git@github.com:rubyroidlabs/bsuir-courses.git","clone_url":"https://github.com/rubyroidlabs/bsuir-courses.git","svn_url":"https://github.com/rubyroidlabs/bsuir-courses","homepage":null,"size":12551,"stargazers_count":31,"watchers_count":31,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":175,"mirror_url":null,"open_issues_count":27,"forks":175,"open_issues":27,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/510"},"html":{"href":"https://github.com/rubyroidlabs/bsuir-courses/pull/510"},"issue":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/510"},"comments":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/510/comments"},"review_comments":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/510/comments"},"review_comment":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/510/commits"},"statuses":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/statuses/709bde0f9ee28a7b72e0021ef2a94220a456809d"}}}}
{"actor":{"display_login":"houndci-bot"}}