I THINK ∴ I'M DANGEROUS

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
stocks:proof-report-2016-05-03 [2016/05/03 16:15]
zashi
stocks:proof-report-2016-05-03 [2016/05/03 16:17]
zashi
Line 34: Line 34:
   val = cells[i].innerHTML.replace(/​[^0-9\.]/​g,''​);​   val = cells[i].innerHTML.replace(/​[^0-9\.]/​g,''​);​
   if (val < 1) {   if (val < 1) {
-    cells[i].style.background = 'red';+    cells[i].style.background = '#FF5F5F';
   }   }
   if (val >= 1 && val < 2) {   if (val >= 1 && val < 2) {
-        cells[i].style.background = 'yellow';+        cells[i].style.background = '#F9FF5F';
   }   }
   if (val >= 2) {   if (val >= 2) {
-        cells[i].style.background = 'green';+        cells[i].style.background = '#32DD37';
   }   }
 } }