웹표준/Device Access (2) 썸네일형 리스트형 2. Touch Events 터치이벤트 예제 캔버스 생성 Your browser does not support canvas element. Log: 이벤트 핸들러 설정 //html 캔버스 생성 . . . function startup() { var el = document.getElementById("canvas"); el.addEventListener("touchstart", handleStart, false); el.addEventListener("touchend", handleEnd, false); el.addEventListener("touchcancel", handleCancel, false); el.addEventListener("touchmove", handleMove, false); } document.addEvent.. 1. Camera API - Camera API를 사용하면 디바이스의 카메라로 사진을 찍어 현재 웹페이지에 업로드 가능함. HTML Camera API A demo of the Camera API, currently implemented in Firefox and Google Chrome on Android. Choose to take a picture with your device's camera and a preview will be shown through createObjectURL or a FileReader object (choosing local files supported too). Preview: All the code is available in the Camera API repository on GitHub... 이전 1 다음