28 |
var ss = 'p { color: ' + String.fromCharCode (code) + ' red}'; |
var ss = 'p { color: ' + String.fromCharCode (code) + ' red}'; |
29 |
style.textContent = ss; |
style.textContent = ss; |
30 |
var cc = getComputedStyle (test, null).color; |
var cc = getComputedStyle (test, null).color; |
31 |
if (cc == 'rgb(255, 0, 0)' || cc == 'red') { |
if (cc == 'rgb(255, 0, 0)' || cc == '#ff0000' || cc == 'red') { |
32 |
results.appendChild (document.createElement ('li')) |
results.appendChild (document.createElement ('li')) |
33 |
.textContent = code.toString (16).toUpperCase (); |
.textContent = code.toString (16).toUpperCase (); |
34 |
} |
} |