diff --git a/index.html b/index.html index e6762ab..9283af0 100644 --- a/index.html +++ b/index.html @@ -417,6 +417,17 @@ } else if (input.type === 'color') { element = document.createElement('input'); + //colorPicker + var color = document.createElement('input'); + color.type = 'color'; + color.addEventListener('change', function(screen){ + return function(e){ + screen.value = e.target.value; + screen.dispatchEvent(new Event('change')); + }; + }(element)); + cell.appendChild(color); + //element.addEventListener('click', function(e) { // e = e || window.event; // colorPicker(e);