Guest User

Untitled

a guest
May 21st, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. var newPlayerColor = document.getElementById('colorPicker').value;
  2. var input = document.createElement('INPUT');
  3. var newColorButton = new jscolor(input);
  4. alert(newColorButton.valueElement);
  5. input.style.backgroundColor = newPlayerColor;
  6. input.style.height = '20px';
  7. input.style.width = '20px';
  8. input.style.cursor = 'pointer';
  9. newDiv.appendChild(input);
  10.  
  11. <button
  12. class="jscolor {valueElement:null,value:'66ccff'}"
  13. style="width:50px; height:20px;"></button>
Add Comment
Please, Sign In to add comment