Added more selectors.

This commit is contained in:
Ceda EI 2018-03-09 20:27:13 +05:30
parent d032812306
commit bb7875230d
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ const blackLum = 0
const black = '#000000';
const whiteLum = 1
const white = '#FFFFFF';
var elements = document.querySelectorAll('input[type="password"], input[type="text"], input[type="email"], input[type="number"]')
var elements = document.querySelectorAll('input[type="password"], input[type="text"], input[type="email"], input[type="number"], input:not([type]), textarea')
for (i = 0; i < elements.length ; i++) {
var bg = getComputedStyle(elements[i]).backgroundColor
var fg = getComputedStyle(elements[i]).color