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 [2019/10/18 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-10-18 |  -8.527| ​ -8.848|
 +| 2019-10-17 |  -9.916| ​ -8.364|
 +| 2019-10-16 |  -12.385| ​ -16.567|
 +| 2019-10-15 |  -10.798| ​ -7.424|
 +| 2019-10-14 |  -12.285| ​ -12.333|
 +| 2019-10-11 |  -7.658| ​ -11.224|
 +| 2019-10-10 |  -6.537| ​ -1.834|
 +| 2019-10-09 |  -6.727| ​ -4.536|
 +| 2019-10-08 |  -7.303| ​ -3.875|
 +| 2019-10-07 |  -16.666| ​ -13.870|
 +| 2019-10-04 |  -15.897| ​ -10.155|
 +| 2019-10-03 |  -12.806| ​ -7.452|
 +| 2019-10-02 |  -14.871| ​ -10.012|
 +| 2019-10-01 |  -15.064| ​ -11.692|
 +| 2019-09-30 |  -21.938| ​ -21.706|
 +| 2019-09-27 |  -12.291| ​ -7.709|
 +| 2019-09-26 |  -10.528| ​ -6.230|
 +| 2019-09-25 |  -9.578| ​ -9.116|
 +| 2019-09-24 |  -0.977| ​ +0.411|
 +| 2019-09-23 |  -8.158| ​ -7.253|
 +| 2019-09-20 |  -6.843| ​ -4.941|
 +| 2019-09-19 |  -3.429| ​ -0.522|
 +| 2019-09-18 |  -11.762| ​ -8.261|
 +| 2019-09-17 |  -11.036| ​ -4.332|
 +| 2019-09-13 |  -9.903| ​ -13.037|
 +| 2019-09-12 |  -8.459| ​ -8.969|
 +| 2019-09-11 |  -3.669| ​ -4.512|
 +| 2019-09-10 |  -10.839| ​ -9.561|
 +| 2019-09-09 |  -1.452| ​ -1.284|
 +| 2019-09-06 |  -10.445| ​ -4.857|
 +| 2019-09-05 |  -10.040| ​ -8.939|
 +| 2019-09-04 |  -4.281| ​ +0.261|
 +| 2019-09-03 |  -8.392| ​ -5.286|
 +| 2019-09-02 |  -11.904| ​ -11.155|
 +| 2019-08-30 |  -6.761| ​ -5.127|
 +| 2019-08-29 |  -8.057| ​ -1.599|
 +| 2019-08-28 |  -12.716| ​ -5.777|
 +| 2019-08-27 |  -13.964| ​ -13.037|
 +| 2019-08-26 |  -7.517| ​ -3.384|
 +| 2019-08-23 |  -7.120| ​ -1.254|
 +
 +<​html><​script>​do_color()</​script></​html>​
 +