index.js
function renderTouches(touches, element) {
        touches.forEach(function(touch) {
            var el = document.createElement('div');
            el.style.width = '20px';
            el.style.height = '20px';
            el.style.background = 'red';
            el.style.position = 'fixed';
            el.style.top = touch.y +'px';
            el.style.left = touch.x +'px';
            el.style.borderRadius = '100%';
            el.style.border = 'solid 2px #000';
            el.style.zIndex = 6000;

            element.appendChild(el);
            setTimeout(function() {
                el && el.parentNode && el.parentNode.removeChild(el);
                el = null;
            }, 100);
        });
    }
function renderTouches(touches, element) {
        touches.forEach(function(touch) {
            var el = document.createElement('div');
            el.style.width = '20px';
            el.style.height = '20px';
            el.style.background = 'red';
            el.style.position = 'fixed';
            el.style.top = touch.y +'px';
            el.style.left = touch.x +'px';
            el.style.borderRadius = '100%';
            el.style.border = 'solid 2px #000';
            el.style.zIndex = 6000;

            element.appendChild(el);
            setTimeout(function() {
                el && el.parentNode && el.parentNode.removeChild(el);
                el = null;
            }, 100);
        });
    }
function renderTouches ( touches , element ) { touches . forEach ( function ( touch ) { var el = document . createElement ( 'div' ) ; el . style . width = '20px' ; el . style . height = '20px' ; el . style . background = 'red' ; el . style . position = 'fixed' ; el . style . top = touch . y + 'px' ; el . style . left = touch . x + 'px' ; el . style . borderRadius = '100%' ; el . style . border = 'solid 2px #000' ; el . style . zIndex = 6000 ; element . appendChild ( el ) ; setTimeout ( function ( ) { el && el . parentNode && el . parentNode . removeChild ( el ) ; el = null ; } , 100 ) ; } ) ; }
render the touches
@param touches
@param element
@param type
render the touches