{"comment":{"url":"https://api.github.com/repos/remy/html5demos/comments/15085345","html_url":"https://github.com/remy/html5demos/commit/73693f562f3e8168b0a8caa77b19702271233b5f#commitcomment-15085345","id":15085345,"user":{"login":"yiqiejieyoukeneng","id":11419105,"avatar_url":"https://avatars.githubusercontent.com/u/11419105?v=3","gravatar_id":"","url":"https://api.github.com/users/yiqiejieyoukeneng","html_url":"https://github.com/yiqiejieyoukeneng","followers_url":"https://api.github.com/users/yiqiejieyoukeneng/followers","following_url":"https://api.github.com/users/yiqiejieyoukeneng/following{/other_user}","gists_url":"https://api.github.com/users/yiqiejieyoukeneng/gists{/gist_id}","starred_url":"https://api.github.com/users/yiqiejieyoukeneng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiqiejieyoukeneng/subscriptions","organizations_url":"https://api.github.com/users/yiqiejieyoukeneng/orgs","repos_url":"https://api.github.com/users/yiqiejieyoukeneng/repos","events_url":"https://api.github.com/users/yiqiejieyoukeneng/events{/privacy}","received_events_url":"https://api.github.com/users/yiqiejieyoukeneng/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":null,"commit_id":"73693f562f3e8168b0a8caa77b19702271233b5f","created_at":"2015-12-20T13:02:53Z","updated_at":"2015-12-20T13:02:53Z","body":"<!DOCTYPE HTML>\r\n<html>\r\n<head>\r\n<style>\r\n#div1 {width:350px;height:70px;padding:10px;border:1px solid #aaaaaa;}\r\n</style>\r\n<script>\r\nfunction allowDrop(ev) {\r\n    ev.preventDefault();\r\n}\r\n\r\nfunction drag(ev) {\r\n    ev.dataTransfer.setData(\"text\", ev.target.id);\r\n}\r\n\r\nfunction drop(ev) {\r\n    ev.preventDefault();\r\n    var data = ev.dataTransfer.getData(\"text\");\r\n    ev.target.appendChild(document.getElementById(data));\r\n}\r\n</script>\r\n</head>\r\n<body>\r\n\r\n<p>Drag the W3Schools image into the rectangle:</p>\r\n\r\n<div id=\"div1\" ondrop=\"drop(event)\" ondragover=\"allowDrop(event)\"></div>\r\n<br>\r\n<img id=\"drag1\" src=\"img_logo.gif\" draggable=\"true\" ondragstart=\"drag(event)\" width=\"336\" height=\"69\">\r\n\r\n</body>\r\n</html>\r\n"}}