Programming/Javascript
웹에서 서명하기, signature_pad.js
Save Clear var canvas = $("#signature")[0]; var signature = new SignaturePad(canvas, { minWidth : 2, maxWidth : 2, penColor : "rgb(0, 0, 0)" }); $("#clear").on("click", function() { signature.clear(); }); $("#save").on("click", function() { if(signature.isEmpty()) { alert("내용이 없습니다."); } else { var data = signature.toDataURL("image/png"); window.open(data, "test", "width=600, height=200, scrollb..
2020. 2. 28. 14:24