GitHub PullRequestReviewCommentEvent at 2014-01-29 11:10:01
Repository: DOM
Actor: AnyaTyu
Payload: {"comment":{"url":"https://api.github.com/repos/front-tnu/DOM/pulls/comments/9262669","id":9262669,"diff_hunk":"@@ -19,4 +34,19 @@ function openPopupFromLink(link) {}\n  * @param {Function} onOk Обработчик клика по кнопке 'Да'\n  * @returns {HTMLElement}\n  */\n-function createPopup(title, message, onOk) {}\n+function createPopup(title, message, _url) {\n+\tvar myPopUp = document.createElement('div');\n+\tmyPopUp.id = \"popUp\";\n+\tmyPopUp.innerHTML = \"<div id=\\\"tt\\\"><p>\\\"\"+title+\"\\\"</p><p>\\\"\"+message+\"\\\"</p><form><input type = \\\"button\\\" value = \\\"Да\\\" id = \\\"yes\\\" onclick = \\\"go('\"+_url+\"');\\\"/><input type = \\\"button\\\" value = \\\"Нет\\\" id = \\\"no\\\" onclick=\\\"del()\\\"/></form></div>\"\n+\t//document.body.appendChild(myPopUp);\n+\treturn myPopUp;\n+}\n+\n+function go(_url){\n+\twindow.location = _url;\n+}\n+\n+function del(){\n+\t var del = document.getElementById('popUp')\n+\t document.body.removeChild(del);","path":"homework.js","position":51,"original_position":51,"commit_id":"a25c7014f06ae19b65f4f9f083cc647ac0977f36","original_commit_id":"a25c7014f06ae19b65f4f9f083cc647ac0977f36","user":{"login":"AnyaTyu","id":6236209,"avatar_url":"https://gravatar.com/avatar/45ec3fb3446b84e3d123e36e92355839?d=https%3A%2F%2Fidenticons.github.com%2F034a592cb2b80ee885ec6ce6b86ef8a1.png&r=x","gravatar_id":"45ec3fb3446b84e3d123e36e92355839","url":"https://api.github.com/users/AnyaTyu","html_url":"https://github.com/AnyaTyu","followers_url":"https://api.github.com/users/AnyaTyu/followers","following_url":"https://api.github.com/users/AnyaTyu/following{/other_user}","gists_url":"https://api.github.com/users/AnyaTyu/gists{/gist_id}","starred_url":"https://api.github.com/users/AnyaTyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnyaTyu/subscriptions","organizations_url":"https://api.github.com/users/AnyaTyu/orgs","repos_url":"https://api.github.com/users/AnyaTyu/repos","events_url":"https://api.github.com/users/AnyaTyu/events{/privacy}","received_events_url":"https://api.github.com/users/AnyaTyu/received_events","type":"User","site_admin":false},"body":"Просто в задание же написано: \"У попапа должны быть две кнопки \"Да\" и \"Нет\". Первая осуществляет переход по URL ссылки, вторая закрывает попап (и удаляет его из DOM).\"\r\n\r\nНе совсем поняла, о чем надо подумать))","created_at":"2014-01-29T11:10:01Z","updated_at":"2014-01-29T11:10:01Z","html_url":"https://github.com/front-tnu/DOM/pull/3#discussion_r9262669","pull_request_url":"https://api.github.com/repos/front-tnu/DOM/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/front-tnu/DOM/pulls/comments/9262669"},"html":{"href":"https://github.com/front-tnu/DOM/pull/3#discussion_r9262669"},"pull_request":{"href":"https://api.github.com/repos/front-tnu/DOM/pulls/3"}}}}