I THINK ∴ I'M DANGEROUS

Differences

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

Link to this comparison view

Next revision
Previous revision
stocks:dividend_report [2017/07/10 14:08]
127.0.0.1 external edit
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.
  
-^ Date ^ Stock ^ Return ^ +Last Updated Tue Oct  6 09:00:00 EDT 2020
-|2017-07-11 |pmt | 2.58%| + 
-|2017-07-12 |cnsl | 1.87%| +<​html>​ 
-|2017-07-13 |LSI | 1.40%| +<​script>​ 
-|2017-07-18 |HCAP | 0.84%| + 
-|2017-07-21 |PBA | 0.39%| +date_col = document.getElementsByClassName("​col0"​);​ 
-|2017-07-26 |TEP | 1.82%| + 
-|2017-07-27 |PAGP | 2.11%| +function colorize(cells) { 
-|2017-08-01 |WSR | 0.77%| +old = cells[0].innerHTML; 
-|2017-08-04 |GNL | 0.81%| +bgcolor=1;​ 
-|2017-08-09 |bt | 3.51%| +for (var i = 0, len = cells.length; i < len; i++) 
-|2017-08-11 |MNR | 1.06%| +
-|2017-08-14 |TGT | 1.21%| +  if (old != cells[i].innerHTML) { 
-|2017-08-16 |hp | 1.32%| +    old = cells[i].innerHTML; 
-|2017-08-21 |MAT | 0.72%| +    ​bgcolor = !bgcolor; 
-|2017-09-14 |GRMN | 1.00%|+  } 
 + 
 +  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>​