{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/comments/41015812","id":41015812,"diff_hunk":"@@ -2,3 +2,141 @@ var hours = process.argv[2];\n var minutes = process.argv[3];\n \n // Немного замечательного кода и магии\n+var result = '';\t\n+var isNumbers = (isFinite(hours) && isFinite(minutes));\n+var isCorrect = (hours>=0 && hours<=23 && minutes>=0 && minutes<=59);\n+if (isNumbers && isCorrect) \n+{\t\t\n+\tresult += getRoman(hours);\n+\tresult += ':';\n+\tresult += getRoman(minutes);\n+\tconsole.log(result);\n+\tgetArt(result);\n+}\n+else\n+\tconsole.log('Время введено не верно');\n+\t\n+function getRoman(n)\n+{\n+\tvar res = '';\n+\tvar dec = (n-n%10)/10;\n+\tif (dec!=0)\n+\t\tres+=getDecades(dec);\n+\tvar units = n - dec*10;\n+\tres+=getUnits(units);\n+\treturn res;\n+}\n+\t\n+function getDecades(numb)\n+{\n+\tvar resD = '';\n+\tswitch(numb) \n+\t{\n+\t\tcase 5:\n+\t\t\tresD = resD + 'L';","path":"roman-time.js","position":35,"original_position":35,"commit_id":"efac3103e177450741a7d2b90e7166d15de5d6d6","original_commit_id":"efac3103e177450741a7d2b90e7166d15de5d6d6","user":{"login":"sameoldmadness","id":1537724,"avatar_url":"https://avatars.githubusercontent.com/u/1537724?v=3","gravatar_id":"","url":"https://api.github.com/users/sameoldmadness","html_url":"https://github.com/sameoldmadness","followers_url":"https://api.github.com/users/sameoldmadness/followers","following_url":"https://api.github.com/users/sameoldmadness/following{/other_user}","gists_url":"https://api.github.com/users/sameoldmadness/gists{/gist_id}","starred_url":"https://api.github.com/users/sameoldmadness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sameoldmadness/subscriptions","organizations_url":"https://api.github.com/users/sameoldmadness/orgs","repos_url":"https://api.github.com/users/sameoldmadness/repos","events_url":"https://api.github.com/users/sameoldmadness/events{/privacy}","received_events_url":"https://api.github.com/users/sameoldmadness/received_events","type":"User","site_admin":false},"body":"Выше использован оператор `+=` -- тут он тоже пригодится.","created_at":"2015-10-02T12:25:55Z","updated_at":"2015-10-02T12:25:55Z","html_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/13#discussion_r41015812","pull_request_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/comments/41015812"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-1/pull/13#discussion_r41015812"},"pull_request":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/13","id":46559863,"html_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/13","diff_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/13.diff","patch_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/13.patch","issue_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/13","number":13,"state":"open","locked":false,"title":"Онуфриенко Екатерина","user":{"login":"onufrienko","id":14929766,"avatar_url":"https://avatars.githubusercontent.com/u/14929766?v=3","gravatar_id":"","url":"https://api.github.com/users/onufrienko","html_url":"https://github.com/onufrienko","followers_url":"https://api.github.com/users/onufrienko/followers","following_url":"https://api.github.com/users/onufrienko/following{/other_user}","gists_url":"https://api.github.com/users/onufrienko/gists{/gist_id}","starred_url":"https://api.github.com/users/onufrienko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onufrienko/subscriptions","organizations_url":"https://api.github.com/users/onufrienko/orgs","repos_url":"https://api.github.com/users/onufrienko/repos","events_url":"https://api.github.com/users/onufrienko/events{/privacy}","received_events_url":"https://api.github.com/users/onufrienko/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-01T18:35:02Z","updated_at":"2015-10-02T12:25:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b66c8ae08d6f878cf7d96c65d07e5573725a92a8","assignee":{"login":"sameoldmadness","id":1537724,"avatar_url":"https://avatars.githubusercontent.com/u/1537724?v=3","gravatar_id":"","url":"https://api.github.com/users/sameoldmadness","html_url":"https://github.com/sameoldmadness","followers_url":"https://api.github.com/users/sameoldmadness/followers","following_url":"https://api.github.com/users/sameoldmadness/following{/other_user}","gists_url":"https://api.github.com/users/sameoldmadness/gists{/gist_id}","starred_url":"https://api.github.com/users/sameoldmadness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sameoldmadness/subscriptions","organizations_url":"https://api.github.com/users/sameoldmadness/orgs","repos_url":"https://api.github.com/users/sameoldmadness/repos","events_url":"https://api.github.com/users/sameoldmadness/events{/privacy}","received_events_url":"https://api.github.com/users/sameoldmadness/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/13/commits","review_comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/13/comments","review_comment_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/13/comments","statuses_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/statuses/efac3103e177450741a7d2b90e7166d15de5d6d6","head":{"label":"onufrienko:master","ref":"master","sha":"efac3103e177450741a7d2b90e7166d15de5d6d6","user":{"login":"onufrienko","id":14929766,"avatar_url":"https://avatars.githubusercontent.com/u/14929766?v=3","gravatar_id":"","url":"https://api.github.com/users/onufrienko","html_url":"https://github.com/onufrienko","followers_url":"https://api.github.com/users/onufrienko/followers","following_url":"https://api.github.com/users/onufrienko/following{/other_user}","gists_url":"https://api.github.com/users/onufrienko/gists{/gist_id}","starred_url":"https://api.github.com/users/onufrienko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onufrienko/subscriptions","organizations_url":"https://api.github.com/users/onufrienko/orgs","repos_url":"https://api.github.com/users/onufrienko/repos","events_url":"https://api.github.com/users/onufrienko/events{/privacy}","received_events_url":"https://api.github.com/users/onufrienko/received_events","type":"User","site_admin":false},"repo":{"id":43513412,"name":"javascript-tasks-1","full_name":"onufrienko/javascript-tasks-1","owner":{"login":"onufrienko","id":14929766,"avatar_url":"https://avatars.githubusercontent.com/u/14929766?v=3","gravatar_id":"","url":"https://api.github.com/users/onufrienko","html_url":"https://github.com/onufrienko","followers_url":"https://api.github.com/users/onufrienko/followers","following_url":"https://api.github.com/users/onufrienko/following{/other_user}","gists_url":"https://api.github.com/users/onufrienko/gists{/gist_id}","starred_url":"https://api.github.com/users/onufrienko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onufrienko/subscriptions","organizations_url":"https://api.github.com/users/onufrienko/orgs","repos_url":"https://api.github.com/users/onufrienko/repos","events_url":"https://api.github.com/users/onufrienko/events{/privacy}","received_events_url":"https://api.github.com/users/onufrienko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/onufrienko/javascript-tasks-1","description":"Задача к лекции «Введение в Javascript»","fork":true,"url":"https://api.github.com/repos/onufrienko/javascript-tasks-1","forks_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/forks","keys_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/teams","hooks_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/hooks","issue_events_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/issues/events{/number}","events_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/events","assignees_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/assignees{/user}","branches_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/branches{/branch}","tags_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/tags","blobs_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/statuses/{sha}","languages_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/languages","stargazers_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/stargazers","contributors_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/contributors","subscribers_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/subscribers","subscription_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/subscription","commits_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/contents/{+path}","compare_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/merges","archive_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/downloads","issues_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/issues{/number}","pulls_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/pulls{/number}","milestones_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/milestones{/number}","notifications_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/labels{/name}","releases_url":"https://api.github.com/repos/onufrienko/javascript-tasks-1/releases{/id}","created_at":"2015-10-01T18:28:28Z","updated_at":"2015-10-01T18:28:29Z","pushed_at":"2015-10-02T12:03:43Z","git_url":"git://github.com/onufrienko/javascript-tasks-1.git","ssh_url":"git@github.com:onufrienko/javascript-tasks-1.git","clone_url":"https://github.com/onufrienko/javascript-tasks-1.git","svn_url":"https://github.com/onufrienko/javascript-tasks-1","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"urfu-2015:master","ref":"master","sha":"9f95181b7277c6920aac2370301d07fc7cbc4080","user":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"repo":{"id":43342589,"name":"javascript-tasks-1","full_name":"urfu-2015/javascript-tasks-1","owner":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urfu-2015/javascript-tasks-1","description":"Задача к лекции «Введение в Javascript»","fork":false,"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1","forks_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/forks","keys_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/teams","hooks_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/hooks","issue_events_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/events","assignees_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/tags","blobs_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/languages","stargazers_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/stargazers","contributors_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/contributors","subscribers_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/subscribers","subscription_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/subscription","commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/merges","archive_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/downloads","issues_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/releases{/id}","created_at":"2015-09-29T03:28:09Z","updated_at":"2015-10-01T13:13:26Z","pushed_at":"2015-10-02T12:08:01Z","git_url":"git://github.com/urfu-2015/javascript-tasks-1.git","ssh_url":"git@github.com:urfu-2015/javascript-tasks-1.git","clone_url":"https://github.com/urfu-2015/javascript-tasks-1.git","svn_url":"https://github.com/urfu-2015/javascript-tasks-1","homepage":null,"size":0,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":17,"forks":35,"open_issues":17,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/13"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-1/pull/13"},"issue":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/13"},"comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/statuses/efac3103e177450741a7d2b90e7166d15de5d6d6"}}}}