var drawing = document.getElementById('mypad');
context=drawing.getContext('2d');
$('#renew-btn').click(function(){
$('#mypad').css("background-color","rgba(25,200,180,0.5)");
drawing.addEventListener('mousemove',function(event){
$('#page-x').text(event.pageX);
$('#page-y').text(event.pageY);
$('#client-x').text(event.clientX);
$('#client-y').text(event.clientY);
$('#screen-x').text(event.screenX);
$('#screen-y').text(event.screenY);
function drawClock(context){
context.strokeStyle = "rgba(0,0,255,1)"
context.arc(100,100,99,0,2*Math.PI,false);
context.arc(100,100,94,0,2*Math.PI,false);
$('#cod-btn').click(function(){
var pathx=$('#path-x').val();
var pathy=$('#path-y').val();
context.clearRect(prepathx,prepathy,5,5);
context.fillRect(pathx,pathy,4,4);
var msg= document.getElementById('msg');
if (context.isPointInPath(pathx,pathy)){
msg.innerText = "坐标在路径中!";
msg.innerText="坐标不在路径中!";