Widget Code
I don't know much about coding, generally. But I cobbled this widget together and I hope it works.
Just copy and paste the code into your own website. Start from the appropriate day by replacing the date (highlighted in bold) – obviously this can be a date in the past if you've already been writing furiously for months. If you need to reset it (because you failed the challenge owing to severe peril or some other legitimate reason) then you can always change it again.
If someone clicks on the quill image on your website then they'll be taken to the Write Every Day page on mine. I figure that makes sense, but feel free to take that bit out if you really object to it.
<table border="0" bgcolor="#fff8c6" cellpadding="5">
<tr valign="middle">
<td>
<a href="http://www.afesmith.com/write-every-day.html" target="_BLANK"><img src="http://www.afesmith.com/uploads/7/7/9/5/7795919/6049363.jpg" width="50" height="50" border=0></a>
</td>
<td>
<font face="Courier">
<script>
function days_between(start_date,current_date){
var day_ms=(1000*60*60*24)
var start_date_ms=start_date.getTime()
var current_date_ms=current_date.getTime()
var difference_ms=(Math.abs(start_date_ms-current_date_ms))
return Math.ceil(difference_ms/day_ms)
}
var start_writing=new Date(2012,0,1) \\change this to the date you started the challenge
\\note that January is month 0, and so on to 11 for December
var current_writing=new Date()
var no_days=(days_between(start_writing,current_writing))
var display=(" Day "+no_days)
document.write(" Write Every Day: ".fontsize(4).fontcolor("black"))
</script>
<br>
<script>
document.write(display.fontsize(5).fontcolor("#330000").bold())
</script>
</font>
</td>
</tr>
</table>
Just copy and paste the code into your own website. Start from the appropriate day by replacing the date (highlighted in bold) – obviously this can be a date in the past if you've already been writing furiously for months. If you need to reset it (because you failed the challenge owing to severe peril or some other legitimate reason) then you can always change it again.
If someone clicks on the quill image on your website then they'll be taken to the Write Every Day page on mine. I figure that makes sense, but feel free to take that bit out if you really object to it.
<table border="0" bgcolor="#fff8c6" cellpadding="5">
<tr valign="middle">
<td>
<a href="http://www.afesmith.com/write-every-day.html" target="_BLANK"><img src="http://www.afesmith.com/uploads/7/7/9/5/7795919/6049363.jpg" width="50" height="50" border=0></a>
</td>
<td>
<font face="Courier">
<script>
function days_between(start_date,current_date){
var day_ms=(1000*60*60*24)
var start_date_ms=start_date.getTime()
var current_date_ms=current_date.getTime()
var difference_ms=(Math.abs(start_date_ms-current_date_ms))
return Math.ceil(difference_ms/day_ms)
}
var start_writing=new Date(2012,0,1) \\change this to the date you started the challenge
\\note that January is month 0, and so on to 11 for December
var current_writing=new Date()
var no_days=(days_between(start_writing,current_writing))
var display=(" Day "+no_days)
document.write(" Write Every Day: ".fontsize(4).fontcolor("black"))
</script>
<br>
<script>
document.write(display.fontsize(5).fontcolor("#330000").bold())
</script>
</font>
</td>
</tr>
</table>