input-txt대신에 원하는 class 이름으로 변경해서 사용하시면 됩니다. input 박스에서 keyup했을 때 자동으로 쿠폰 4자리마다 하이픈 넣고 대문자로 변경합니다. 쿠폰 12자리일 경우 (영문 알파벳, 숫자로 구성된 쿠폰일 경우) $(document).on("keyup", ".input-txt", function() { $(this).val( $(this).val().replace(/[^a-zA-Z0-9]/g, "").replace(/([a-zA-Z0-9]{4})+([a-zA-Z0-9]{4})+([a-zA-Z0-9]{4})/,"$1-$2-$3").replace("--", "-").toUpperCase()); }); 쿠폰 16자리일 경우 (영문 알파벳, 숫자로 구성된 쿠폰일 경우) $(docum..

https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL HTMLCanvasElement.toDataURL() The HTMLCanvasElement.toDataURL() method returns a data URI containing a representation of the image in the format specified by the type parameter (defaults to PNG). The returned image is in a resolution of 96 dpi. developer.mozilla.org canvas toDataURL 퀄리티 및 사이즈 조절 var fullQuality = canvas..
유튜브 api 사용하기 https://github.com/pupunzi/jquery.mb.YTPlayer pupunzi/jquery.mb.YTPlayer use a custom yutube player for a video as background on jQuery framework - pupunzi/jquery.mb.YTPlayer github.com 유튜브 api 데모 https://github.com/pupunzi/jquery.mb.YTPlayer/wiki pupunzi/jquery.mb.YTPlayer use a custom yutube player for a video as background on jQuery framework - pupunzi/jquery.mb.YTPlayer github.c..