I THINK ∴ I'M DANGEROUS

Differences

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

Link to this comparison view

stocks:dividend_report [2019/12/04 21:00]
stocks:dividend_report [2019/12/13 21:00] (current)
Line 1: Line 1:
 +~~NOCACHE~~
 +====== Dividend Report======
 +Date indicates the ex-dividend date. You should short the listed stock the day before the ex-dividiend date and buy-to-cover ON the ex-dividend date.
 +
 +Last Updated Fri Dec 13 16:00:00 EST 2019.
 +
 +<​html>​
 +<​script>​
 +
 +date_col = document.getElementsByClassName("​col0"​);​
 +
 +function colorize(cells) {
 +old = cells[0].innerHTML;​
 +bgcolor=1;
 +for (var i = 0, len = cells.length;​ i < len; i++)
 +{
 +  if (old != cells[i].innerHTML) {
 +    old = cells[i].innerHTML;​
 +    bgcolor = !bgcolor;
 +  }
 +
 +  if (bgcolor) {
 + cells[i].parentElement.style.background = '#​EEE';​
 +    //​cells[i].style.background = '#​DDD';​
 +  } else {
 + //​cells[i].parentElement.style.background = '#​FFF';​
 +    //​cells[i].style.background = '#​FFF';​
 +  }
 +}
 +}
 +
 +colorize(date_col);​
 +</​script>​
 +</​html>​