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/10/11 13:20]
stocks:mood_report [2020/06/04 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 ^
 +| 2020-06-04 |  +6.097| ​ +10.365|
 +| 2020-06-03 |  +3.659| ​ +9.783|
 +| 2020-06-02 |  +0.922| ​ +4.195|
 +| 2020-06-01 |  +3.809| ​ +2.344|
 +| 2020-05-29 |  -10.794| ​ -13.528|
 +| 2020-05-28 |  -1.630| ​ +3.137|
 +| 2020-05-27 |  +0.794| ​ +1.573|
 +| 2020-05-26 |  -0.062| ​ -3.323|
 +| 2020-05-25 |  -8.352| ​ -0.829|
 +| 2020-05-22 |  +2.010| ​ +4.717|
 +| 2020-05-21 |  -1.788| ​ +2.192|
 +| 2020-05-20 |  +0.712| ​ +4.858|
 +| 2020-05-19 |  +0.665| ​ +2.495|
 +| 2020-05-18 |  -3.161| ​ -5.436|
 +| 2020-05-15 |  -4.649| ​ +3.769|
 +| 2020-05-14 |  -12.732| ​ -8.777|
 +| 2020-05-13 |  -18.036| ​ -19.774|
 +| 2020-05-12 |  -2.809| ​ -2.489|
 +| 2020-05-11 |  +3.437| ​ -1.348|
 +| 2020-05-08 |  -5.379| ​ +0.566|
 +| 2020-05-07 |  -2.766| ​ +0.349|
 +| 2020-05-06 |  -7.431| ​ -2.446|
 +| 2020-05-05 |  -8.817| ​ -5.881|
 +| 2020-05-04 |  -11.690| ​ -14.159|
 +| 2020-05-01 |  -2.958| ​ -5.080|
 +| 2020-04-30 |  +1.447| ​ -2.739|
 +| 2020-04-29 |  -1.073| ​ -0.439|
 +| 2020-04-28 |  +0.723| ​ +2.864|
 +| 2020-04-27 |  -1.170| ​ +1.592|
 +| 2020-04-24 |  -15.094| ​ -15.663|
 +| 2020-04-23 |  -8.057| ​ -10.287|
 +| 2020-04-22 |  -3.155| ​ -2.257|
 +| 2020-04-21 |  -4.823| ​ -6.656|
 +| 2020-04-20 |  -11.573| ​ -10.823|
 +| 2020-04-17 |  -5.877| ​ -4.375|
 +| 2020-04-16 |  -7.376| ​ -6.947|
 +| 2020-04-15 |  -7.318| ​ -9.200|
 +| 2020-04-14 |  -4.883| ​ -4.533|
 +| 2020-04-13 |  -15.161| ​ -16.562|
 +| 2020-04-10 |  -9.272| ​ -7.821|
 +
 +<​html><​script>​do_color()</​script></​html>​
 +