{"action":"created","issue":{"url":"https://api.github.com/repos/yangyanhe/sun/issues/1","repository_url":"https://api.github.com/repos/yangyanhe/sun","labels_url":"https://api.github.com/repos/yangyanhe/sun/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/yangyanhe/sun/issues/1/comments","events_url":"https://api.github.com/repos/yangyanhe/sun/issues/1/events","html_url":"https://github.com/yangyanhe/sun/issues/1","id":139509935,"number":1,"title":"js code test","user":{"login":"sunmingqiu","id":8035235,"avatar_url":"https://avatars.githubusercontent.com/u/8035235?v=3","gravatar_id":"","url":"https://api.github.com/users/sunmingqiu","html_url":"https://github.com/sunmingqiu","followers_url":"https://api.github.com/users/sunmingqiu/followers","following_url":"https://api.github.com/users/sunmingqiu/following{/other_user}","gists_url":"https://api.github.com/users/sunmingqiu/gists{/gist_id}","starred_url":"https://api.github.com/users/sunmingqiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunmingqiu/subscriptions","organizations_url":"https://api.github.com/users/sunmingqiu/orgs","repos_url":"https://api.github.com/users/sunmingqiu/repos","events_url":"https://api.github.com/users/sunmingqiu/events{/privacy}","received_events_url":"https://api.github.com/users/sunmingqiu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-09T08:26:00Z","updated_at":"2016-03-09T08:26:33Z","closed_at":null,"body":"\r\n<!doctype html>\r\n<html>\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <title>Document</title>\r\n</head>\r\n<script>\r\n    function makePhrases() {\r\n        var words1=['张三','李四','王二麻子','老王','小王'];\r\n        var words2=['在车间','在厨房','在车里','实验室','厕所'];\r\n        var words3=['裸奔','哭泣','睡大觉','接客','泡茶','看小说','打飞机','接电话'];\r\n\r\n        var rand1=Math.floor(Math.random()*words1.length);\r\n        var rand2=Math.floor(Math.random()*words2.length);\r\n        var rand3=Math.floor(Math.random()*words3.length);\r\n\r\n        var phrase=words1[rand1] + \" \"+words2[rand2] +\" \"+words3[rand3];\r\n        var phraseElement=document.getElementById(\"phrase\");\r\n        phraseElement.innerHTML=phrase;\r\n    }\r\n    window.onload=makePhrases;\r\n</script>\r\n\r\n<script type=\"text/javascript\">\r\nfunction reloadPage()\r\n{\r\nwindow.location.reload();\r\n}\r\n</script>\r\n\r\n\r\n<body>\r\n    <h1>这群人正在干什么？</h1>\r\n    <p id=\"phrase\"></p>\r\n    <input type=\"button\" value=\"换一个！\" onclick=\"reloadPage()\" />\r\n</body>\r\n</html>"},"comment":{"url":"https://api.github.com/repos/yangyanhe/sun/issues/comments/194181209","html_url":"https://github.com/yangyanhe/sun/issues/1#issuecomment-194181209","issue_url":"https://api.github.com/repos/yangyanhe/sun/issues/1","id":194181209,"user":{"login":"sunmingqiu","id":8035235,"avatar_url":"https://avatars.githubusercontent.com/u/8035235?v=3","gravatar_id":"","url":"https://api.github.com/users/sunmingqiu","html_url":"https://github.com/sunmingqiu","followers_url":"https://api.github.com/users/sunmingqiu/followers","following_url":"https://api.github.com/users/sunmingqiu/following{/other_user}","gists_url":"https://api.github.com/users/sunmingqiu/gists{/gist_id}","starred_url":"https://api.github.com/users/sunmingqiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunmingqiu/subscriptions","organizations_url":"https://api.github.com/users/sunmingqiu/orgs","repos_url":"https://api.github.com/users/sunmingqiu/repos","events_url":"https://api.github.com/users/sunmingqiu/events{/privacy}","received_events_url":"https://api.github.com/users/sunmingqiu/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T08:26:33Z","updated_at":"2016-03-09T08:26:33Z","body":"\r\n<!doctype html>\r\n<html>\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <title>Document</title>\r\n</head>\r\n<script>\r\n    function makePhrases() {\r\n        var words1=['张三','李四','王二麻子','老王','小王'];\r\n        var words2=['在车间','在厨房','在车里','实验室','厕所'];\r\n        var words3=['裸奔','哭泣','睡大觉','接客','泡茶','看小说','打飞机','接电话'];\r\n\r\n        var rand1=Math.floor(Math.random()*words1.length);\r\n        var rand2=Math.floor(Math.random()*words2.length);\r\n        var rand3=Math.floor(Math.random()*words3.length);\r\n\r\n        var phrase=words1[rand1] + \" \"+words2[rand2] +\" \"+words3[rand3];\r\n        var phraseElement=document.getElementById(\"phrase\");\r\n        phraseElement.innerHTML=phrase;\r\n    }\r\n    window.onload=makePhrases;\r\n</script>\r\n\r\n<script type=\"text/javascript\">\r\nfunction reloadPage()\r\n{\r\nwindow.location.reload();\r\n}\r\n</script>\r\n\r\n\r\n<body>\r\n    <h1>这群人正在干什么？</h1>\r\n    <p id=\"phrase\"></p>\r\n    <input type=\"button\" value=\"换一个！\" onclick=\"reloadPage()\" />\r\n</body>\r\n</html>"}}