{"action":"created","comment":{"url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/pulls/comments/91577099","pull_request_review_id":12077945,"id":91577099,"diff_hunk":"@@ -0,0 +1,98 @@\n+/****要求一*****/\r\n+function myfuntion1(){ document.getElementById(\"mybtn1\").innerHTML=\"已点击\";\r\n+}\r\n+\r\n+/****要求二*****/\r\n+function myfuntion2(){ \r\n+  document.body.style.background=\"yellow\";\r\n+}\r\n+\r\n+/****要求三*****/\r\n+function myfuntion3(){ \r\n+  var x = Math.round(Math.random()*100);\r\n+  var y = Math.round(Math.random()*100);\r\n+  var z = Math.round(Math.random()*100);\r\n+  if(x<=255&&y<=255&&z<=255){\r\n+    document.body.style.background=\"rgb(\"+x+\",\"+y+\",\"+z+\")\";\r\n+  }\r\n+  else{\r\n+    myfuntion3();\r\n+  }\r\n+}\r\n+\r\n+/****要求四*****/\r\n+var i;\r\n+function mOver(obj){\r\n+  i=setInterval(myfuntion3,1000);\r\n+}\r\n+function mOut(obj){\r\n+  clearInterval(i);\r\n+}\r\n+\r\n+/****要求五//要求六//要求七*****/\r\n+/*判断是否16进制数*/\r\n+function isHex(a){\r\n+  if(a[0] == \"#\" && (a.length==7||a.length==4)){\r\n+    for(var i=1;i<a.length;i++){\r\n+    if(a[i]!='1'&&a[i]!='2'&&a[i]!='3'&&a[i]!='4'&&a[i]!='5'&&\r\n+       a[i]!='6'&&a[i]!='7'&&a[i]!='8'&&a[i]!='9'&&a[i]!='0'&&\r\n+       a[i]!='a'&&a[i]!='b'&&a[i]!='c'&&a[i]!='d'&&a[i]!='e'&&\r\n+       a[i]!='f'&&a[i]!='A'&&a[i]!='B'&&a[i]!='C'&&a[i]!='D'&&\r\n+       a[i]!='E'&&a[i]!='F'){\r\n+      return false;\r\n+    }\r\n+    }\r\n+    return true;\r\n+  }\r\n+  else if(a[0] != \"#\" && (a.length == 6||a.length == 3)){\r\n+    for(var i=0;i<a.length;i++){\r\n+    if(a[i]!='1'&&a[i]!='2'&&a[i]!='3'&&a[i]!='4'&&a[i]!='5'&&\r\n+       a[i]!='6'&&a[i]!='7'&&a[i]!='8'&&a[i]!='9'&&a[i]!='0'&&\r\n+       a[i]!='a'&&a[i]!='b'&&a[i]!='c'&&a[i]!='d'&&a[i]!='e'&&\r\n+       a[i]!='f'&&a[i]!='A'&&a[i]!='B'&&a[i]!='C'&&a[i]!='D'&&\r\n+       a[i]!='E'&&a[i]!='F'){\r\n+      return false;\r\n+    }\r\n+    }\r\n+    return true;\r\n+  }\r\n+  else{\r\n+    return false;\r\n+  }\r\n+}\r\n+/***改变背景颜色****/\r\n+function changeColor(x){\r\n+  var element = document.getElementById(x);\r\n+  var a = element.value;\r\n+  var b = isHex(a);\r\n+  if(b == true){\r\n+    if(a.length==7||a.length==4){\r\n+      document.body.style.background= a ;\r","path":"Task-07/script.js","position":70,"original_position":70,"commit_id":"f70f62e5d37cc84222b600860dc0ae0a91ff11f0","original_commit_id":"f70f62e5d37cc84222b600860dc0ae0a91ff11f0","user":{"login":"lijunle","id":1296500,"avatar_url":"https://avatars.githubusercontent.com/u/1296500?v=3","gravatar_id":"","url":"https://api.github.com/users/lijunle","html_url":"https://github.com/lijunle","followers_url":"https://api.github.com/users/lijunle/followers","following_url":"https://api.github.com/users/lijunle/following{/other_user}","gists_url":"https://api.github.com/users/lijunle/gists{/gist_id}","starred_url":"https://api.github.com/users/lijunle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lijunle/subscriptions","organizations_url":"https://api.github.com/users/lijunle/orgs","repos_url":"https://api.github.com/users/lijunle/repos","events_url":"https://api.github.com/users/lijunle/events{/privacy}","received_events_url":"https://api.github.com/users/lijunle/received_events","type":"User","site_admin":false},"body":"代码风格：`;`前面没有空格，`=`左右两边有一个空格。","created_at":"2016-12-08T18:36:30Z","updated_at":"2016-12-08T18:45:12Z","html_url":"https://github.com/lijunle/VickyRoss-Homework/pull/7#discussion_r91577099","pull_request_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/lijunle/VickyRoss-Homework/pulls/comments/91577099"},"html":{"href":"https://github.com/lijunle/VickyRoss-Homework/pull/7#discussion_r91577099"},"pull_request":{"href":"https://api.github.com/repos/lijunle/VickyRoss-Homework/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/pulls/7","id":96579502,"html_url":"https://github.com/lijunle/VickyRoss-Homework/pull/7","diff_url":"https://github.com/lijunle/VickyRoss-Homework/pull/7.diff","patch_url":"https://github.com/lijunle/VickyRoss-Homework/pull/7.patch","issue_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/issues/7","number":7,"state":"open","locked":false,"title":"[Task-7] Document Object Model (DOM)","user":{"login":"lijunle","id":1296500,"avatar_url":"https://avatars.githubusercontent.com/u/1296500?v=3","gravatar_id":"","url":"https://api.github.com/users/lijunle","html_url":"https://github.com/lijunle","followers_url":"https://api.github.com/users/lijunle/followers","following_url":"https://api.github.com/users/lijunle/following{/other_user}","gists_url":"https://api.github.com/users/lijunle/gists{/gist_id}","starred_url":"https://api.github.com/users/lijunle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lijunle/subscriptions","organizations_url":"https://api.github.com/users/lijunle/orgs","repos_url":"https://api.github.com/users/lijunle/repos","events_url":"https://api.github.com/users/lijunle/events{/privacy}","received_events_url":"https://api.github.com/users/lijunle/received_events","type":"User","site_admin":false},"body":"- REAMDE: https://github.com/lijunle/VickyRoss-Homework/blob/master/Task-07/README.md\r\n- DEMO: http://codepen.io/VickyRoss/debug/womQeJ","created_at":"2016-12-05T18:05:32Z","updated_at":"2016-12-08T18:45:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88bf43eb0749fdfc8be31e8e59ac4aac8bbd0915","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/pulls/7/commits","review_comments_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/pulls/7/comments","review_comment_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/issues/7/comments","statuses_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/statuses/f70f62e5d37cc84222b600860dc0ae0a91ff11f0","head":{"label":"lijunle:task-7","ref":"task-7","sha":"f70f62e5d37cc84222b600860dc0ae0a91ff11f0","user":{"login":"lijunle","id":1296500,"avatar_url":"https://avatars.githubusercontent.com/u/1296500?v=3","gravatar_id":"","url":"https://api.github.com/users/lijunle","html_url":"https://github.com/lijunle","followers_url":"https://api.github.com/users/lijunle/followers","following_url":"https://api.github.com/users/lijunle/following{/other_user}","gists_url":"https://api.github.com/users/lijunle/gists{/gist_id}","starred_url":"https://api.github.com/users/lijunle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lijunle/subscriptions","organizations_url":"https://api.github.com/users/lijunle/orgs","repos_url":"https://api.github.com/users/lijunle/repos","events_url":"https://api.github.com/users/lijunle/events{/privacy}","received_events_url":"https://api.github.com/users/lijunle/received_events","type":"User","site_admin":false},"repo":{"id":72292684,"name":"VickyRoss-Homework","full_name":"lijunle/VickyRoss-Homework","owner":{"login":"lijunle","id":1296500,"avatar_url":"https://avatars.githubusercontent.com/u/1296500?v=3","gravatar_id":"","url":"https://api.github.com/users/lijunle","html_url":"https://github.com/lijunle","followers_url":"https://api.github.com/users/lijunle/followers","following_url":"https://api.github.com/users/lijunle/following{/other_user}","gists_url":"https://api.github.com/users/lijunle/gists{/gist_id}","starred_url":"https://api.github.com/users/lijunle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lijunle/subscriptions","organizations_url":"https://api.github.com/users/lijunle/orgs","repos_url":"https://api.github.com/users/lijunle/repos","events_url":"https://api.github.com/users/lijunle/events{/privacy}","received_events_url":"https://api.github.com/users/lijunle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lijunle/VickyRoss-Homework","description":null,"fork":false,"url":"https://api.github.com/repos/lijunle/VickyRoss-Homework","forks_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/forks","keys_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/teams","hooks_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/hooks","issue_events_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/issues/events{/number}","events_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/events","assignees_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/assignees{/user}","branches_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/branches{/branch}","tags_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/tags","blobs_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/statuses/{sha}","languages_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/languages","stargazers_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/stargazers","contributors_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/contributors","subscribers_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/subscribers","subscription_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/subscription","commits_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/contents/{+path}","compare_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/merges","archive_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/downloads","issues_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/issues{/number}","pulls_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/pulls{/number}","milestones_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/milestones{/number}","notifications_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/labels{/name}","releases_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/releases{/id}","deployments_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/deployments","created_at":"2016-10-29T15:24:35Z","updated_at":"2016-11-06T10:47:03Z","pushed_at":"2016-12-08T08:08:45Z","git_url":"git://github.com/lijunle/VickyRoss-Homework.git","ssh_url":"git@github.com:lijunle/VickyRoss-Homework.git","clone_url":"https://github.com/lijunle/VickyRoss-Homework.git","svn_url":"https://github.com/lijunle/VickyRoss-Homework","homepage":null,"size":113,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"lijunle:master","ref":"master","sha":"ba08499d04a7118c054952a173cc09d5d8af9276","user":{"login":"lijunle","id":1296500,"avatar_url":"https://avatars.githubusercontent.com/u/1296500?v=3","gravatar_id":"","url":"https://api.github.com/users/lijunle","html_url":"https://github.com/lijunle","followers_url":"https://api.github.com/users/lijunle/followers","following_url":"https://api.github.com/users/lijunle/following{/other_user}","gists_url":"https://api.github.com/users/lijunle/gists{/gist_id}","starred_url":"https://api.github.com/users/lijunle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lijunle/subscriptions","organizations_url":"https://api.github.com/users/lijunle/orgs","repos_url":"https://api.github.com/users/lijunle/repos","events_url":"https://api.github.com/users/lijunle/events{/privacy}","received_events_url":"https://api.github.com/users/lijunle/received_events","type":"User","site_admin":false},"repo":{"id":72292684,"name":"VickyRoss-Homework","full_name":"lijunle/VickyRoss-Homework","owner":{"login":"lijunle","id":1296500,"avatar_url":"https://avatars.githubusercontent.com/u/1296500?v=3","gravatar_id":"","url":"https://api.github.com/users/lijunle","html_url":"https://github.com/lijunle","followers_url":"https://api.github.com/users/lijunle/followers","following_url":"https://api.github.com/users/lijunle/following{/other_user}","gists_url":"https://api.github.com/users/lijunle/gists{/gist_id}","starred_url":"https://api.github.com/users/lijunle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lijunle/subscriptions","organizations_url":"https://api.github.com/users/lijunle/orgs","repos_url":"https://api.github.com/users/lijunle/repos","events_url":"https://api.github.com/users/lijunle/events{/privacy}","received_events_url":"https://api.github.com/users/lijunle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lijunle/VickyRoss-Homework","description":null,"fork":false,"url":"https://api.github.com/repos/lijunle/VickyRoss-Homework","forks_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/forks","keys_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/teams","hooks_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/hooks","issue_events_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/issues/events{/number}","events_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/events","assignees_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/assignees{/user}","branches_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/branches{/branch}","tags_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/tags","blobs_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/statuses/{sha}","languages_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/languages","stargazers_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/stargazers","contributors_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/contributors","subscribers_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/subscribers","subscription_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/subscription","commits_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/contents/{+path}","compare_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/merges","archive_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/downloads","issues_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/issues{/number}","pulls_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/pulls{/number}","milestones_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/milestones{/number}","notifications_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/labels{/name}","releases_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/releases{/id}","deployments_url":"https://api.github.com/repos/lijunle/VickyRoss-Homework/deployments","created_at":"2016-10-29T15:24:35Z","updated_at":"2016-11-06T10:47:03Z","pushed_at":"2016-12-08T08:08:45Z","git_url":"git://github.com/lijunle/VickyRoss-Homework.git","ssh_url":"git@github.com:lijunle/VickyRoss-Homework.git","clone_url":"https://github.com/lijunle/VickyRoss-Homework.git","svn_url":"https://github.com/lijunle/VickyRoss-Homework","homepage":null,"size":113,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lijunle/VickyRoss-Homework/pulls/7"},"html":{"href":"https://github.com/lijunle/VickyRoss-Homework/pull/7"},"issue":{"href":"https://api.github.com/repos/lijunle/VickyRoss-Homework/issues/7"},"comments":{"href":"https://api.github.com/repos/lijunle/VickyRoss-Homework/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/lijunle/VickyRoss-Homework/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/lijunle/VickyRoss-Homework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lijunle/VickyRoss-Homework/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/lijunle/VickyRoss-Homework/statuses/f70f62e5d37cc84222b600860dc0ae0a91ff11f0"}}}}
{"actor":{"display_login":"lijunle"}}