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 [2020/07/31 20:00]
stocks:dividend_report [2020/10/06 13: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 Tue Oct  6 09:00:00 EDT 2020.
 +
 +<​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>​