I THINK ∴ I'M DANGEROUS

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
stocks:dividend_report [2017/07/16 12:44]
zashi
stocks:dividend_report [2020/10/06 13:00] (current)
Line 1: Line 1:
-====== Dividend Report ======+~~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.
  
-<php+Last Updated Tue Oct  6 09:00:00 EDT 2020. 
-echo system("/srv/http/bin/etrade_dividends -output=html"+ 
-</php>+<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>