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 [2020/01/16 14:20]
stocks:mood_report [2020/01/22 14: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 ^
 +| 2020-01-22 |  +0.086| ​ -1.176|
 +| 2020-01-21 |  -0.085| ​ +0.473|
 +| 2020-01-20 |  -4.154| ​ -3.761|
 +| 2020-01-17 |  -4.523| ​ -5.297|
 +| 2020-01-16 |  -8.425| ​ -6.116|
 +| 2020-01-15 |  -0.696| ​ +2.283|
 +| 2020-01-14 |  -0.294| ​ +3.478|
 +| 2020-01-13 |  -6.507| ​ -2.580|
 +| 2020-01-10 |  +2.414| ​ +4.549|
 +| 2020-01-09 |  -2.420| ​ -1.740|
 +| 2020-01-08 |  -10.832| ​ -8.309|
 +| 2020-01-07 |  -5.147| ​ -5.397|
 +| 2020-01-06 |  -4.818| ​ +0.115|
 +| 2020-01-03 |  -5.056| ​ -2.802|
 +| 2020-01-02 |  +2.964| ​ +3.464|
 +| 2020-01-01 |  -10.816| ​ -5.424|
 +| 2019-12-31 |  -7.493| ​ -4.648|
 +| 2019-12-30 |  -9.661| ​ -1.498|
 +| 2019-12-27 |  -0.028| ​ +2.615|
 +| 2019-12-26 |  -5.700| ​ +1.179|
 +| 2019-12-25 |  -9.356| ​ -2.755|
 +| 2019-12-24 |  -2.237| ​ +3.997|
 +| 2019-12-23 |  -1.411| ​ +3.027|
 +| 2019-12-20 |  +0.303| ​ +5.381|
 +| 2019-12-19 |  -4.542| ​ +0.822|
 +| 2019-12-18 |  -4.281| ​ -2.446|
 +| 2019-12-17 |  -6.386| ​ -0.707|
 +| 2019-12-16 |  -7.042| ​ -5.392|
 +| 2019-12-13 |  -2.566| ​ -4.667|
 +| 2019-12-12 |  -6.964| ​ -8.565|
 +| 2019-12-11 |  -8.878| ​ -5.052|
 +| 2019-12-10 |  -12.947| ​ -6.949|
 +| 2019-12-09 |  -0.655| ​ -2.781|
 +| 2019-12-06 |  -12.315| ​ -17.302|
 +| 2019-12-05 |  -3.058| ​ -0.777|
 +| 2019-12-04 |  -10.874| ​ -6.610|
 +| 2019-12-03 |  -10.752| ​ -9.110|
 +| 2019-12-02 |  -19.005| ​ -30.197|
 +| 2019-11-29 |  -14.152| ​ -17.558|
 +| 2019-11-28 |  -10.385| ​ -10.090|
 +
 +<​html><​script>​do_color()</​script></​html>​
 +