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/12/04 14:20]
stocks:mood_report [2019/12/13 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 ^
 +| 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|
 +| 2019-11-27 |  -3.561| ​ -1.541|
 +| 2019-11-26 |  -0.785| ​ -4.369|
 +| 2019-11-25 |  -5.132| ​ -4.779|
 +| 2019-11-22 |  +0.844| ​ -5.031|
 +| 2019-11-21 |  +1.641| ​ -4.702|
 +| 2019-11-20 |  -0.560| ​ -7.253|
 +| 2019-11-19 |  -8.129| ​ -6.091|
 +| 2019-11-18 |  -11.213| ​ -16.443|
 +| 2019-11-15 |  -8.363| ​ -7.343|
 +| 2019-11-14 |  -5.330| ​ -4.599|
 +| 2019-11-13 |  -10.948| ​ -13.445|
 +| 2019-11-12 |  -7.135| ​ -7.904|
 +| 2019-11-11 |  -7.530| ​ -5.604|
 +| 2019-11-08 |  -4.555| ​ -5.458|
 +| 2019-11-07 |  -2.961| ​ -7.582|
 +| 2019-11-06 |  -6.027| ​ -10.673|
 +| 2019-11-05 |  -4.794| ​ -3.289|
 +| 2019-11-04 |  -6.511| ​ -6.941|
 +| 2019-11-01 |  -8.572| ​ -8.003|
 +| 2019-10-31 |  +6.250| ​ +2.799|
 +| 2019-10-30 |  -0.083| ​ +3.845|
 +| 2019-10-29 |  -4.640| ​ -2.924|
 +| 2019-10-28 |  -3.909| ​ -1.963|
 +| 2019-10-25 |  -3.341| ​ -11.272|
 +| 2019-10-24 |  -0.949| ​ -5.577|
 +| 2019-10-23 |  -3.541| ​ -7.590|
 +| 2019-10-22 |  -3.282| ​ -3.937|
 +| 2019-10-21 |  -5.139| ​ -0.873|
 +
 +<​html><​script>​do_color()</​script></​html>​
 +