I THINK ∴ I'M DANGEROUS

Differences

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

Link to this comparison view

stocks:mood_report [2019/07/12 13:20]
stocks:mood_report [2019/08/20 13:20] (current)
Line 1: Line 1:
 +
 +~~NOCACHE~~
 +<​html>​
 +<​script>​
 +
 +mood = document.getElementsByClassName("​col1"​);​
 +spymood = document.getElementsByClassName("​col2"​);​
 +
 +function colorize(cells) {
 +for (var i = 0, len = cells.length;​ i < len; i++)
 +{
 +  if (cells[i].innerHTML.indexOf('​+'​) != -1 )
 +  {
 +    cells[i].style.background = "#​32DD37"​
 +  } else if (cells[i].innerHTML.indexOf('​-'​) != -1)
 +  {
 +    cells[i].style.background = "#​FF5F5F"​
 +  }
 +}
 +}
 +
 +function do_color() {
 +colorize(mood);​
 +colorize(spymood);​
 +}
 +
 +setTimeout(do_color,​ 1000);
 +</​script>​
 +</​html>​
 +
 +====== Mood Report ======
 +
 +^ Date ^ Mood ^ S&P Mood ^
 +| 2019-08-20 |  -2.333| ​ -4.155|
 +| 2019-08-19 |  -12.646| ​ -7.798|
 +| 2019-08-16 |  -10.439| ​ -5.921|
 +| 2019-08-15 |  -10.406| ​ -7.615|
 +| 2019-08-14 |  -7.329| ​ -2.523|
 +| 2019-08-13 |  -16.743| ​ -12.756|
 +| 2019-08-12 |  -3.929| ​ +1.368|
 +| 2019-08-09 |  -11.141| ​ -7.410|
 +| 2019-08-08 |  -8.012| ​ +3.457|
 +| 2019-08-07 |  -7.929| ​ -5.923|
 +| 2019-08-06 |  -14.018| ​ -7.674|
 +| 2019-08-05 |  -19.226| ​ -14.307|
 +| 2019-08-02 |  -13.190| ​ -10.383|
 +| 2019-08-01 |  -5.210| ​ -1.268|
 +| 2019-07-31 |  -1.754| ​ +0.907|
 +| 2019-07-30 |  -7.435| ​ +5.531|
 +| 2019-07-29 |  -5.376| ​ +1.449|
 +| 2019-07-26 |  +3.419| ​ -0.854|
 +| 2019-07-25 |  +2.708| ​ +2.805|
 +| 2019-07-24 |  +2.610| ​ +0.334|
 +| 2019-07-23 |  +3.974| ​ +2.729|
 +| 2019-07-22 |  -0.226| ​ +1.781|
 +| 2019-07-19 |  +0.300| ​ +0.333|
 +| 2019-07-18 |  -6.482| ​ -6.936|
 +| 2019-07-17 |  -17.647| ​ -13.330|
 +| 2019-07-16 |  -2.144| ​ +3.340|
 +| 2019-07-15 |  -12.873| ​ -7.954|
 +| 2019-07-12 |  -6.560| ​ -4.730|
 +| 2019-07-11 |  +6.062| ​ +4.215|
 +| 2019-07-10 |  -2.193| ​ -1.501|
 +| 2019-07-09 |  +7.836| ​ +8.093|
 +| 2019-07-08 |  -15.343| ​ -10.572|
 +| 2019-07-05 |  -8.866| ​ -3.210|
 +| 2019-07-04 |  -9.948| ​ -7.505|
 +| 2019-07-03 |  +15.619| ​ +14.452|
 +| 2019-07-02 |  -10.365| ​ +0.662|
 +| 2019-07-01 |  -9.914| ​ -5.756|
 +| 2019-06-28 |  -3.808| ​ +2.209|
 +| 2019-06-27 |  -12.458| ​ -0.323|
 +| 2019-06-26 |  -8.838| ​ -4.932|
 +
 +<​html><​script>​do_color()</​script></​html>​
 +