Wine countdown?

Dan Kegel dank at kegel.com
Sat Apr 19 18:48:51 CDT 2008


Anybody seen the nifty countdown logo that Ubuntu is using?
http://www.ubuntu.com/getubuntu/countdown
Maybe we should do something similar for Wine.

FWIW, here's a snippet that does something similar, but with text:

<h1>Wine Release Countdown</h1>
<script type='text/javascript'>
function days_between(date1, date2) {
    // The number of milliseconds in one day
    var ONE_DAY = 1000 * 60 * 60 * 24;
    // Convert both dates to milliseconds
    var date1_ms = date1.getTime();
    var date2_ms = date2.getTime();
    // Calculate the difference in milliseconds
    var difference_ms = date2_ms - date1_ms;
    // Convert back to days and return
    return Math.round(difference_ms/ONE_DAY);
}
var d = new Date();
var release = new Date();
// see http://wiki.winehq.org/WineReleasePlan
release.setTime(Date.parse("Jun 13, 2008"));

document.write('<a href="http://www.winehq.org/">Wine 1.0 countdown: '
+days_between(d, release)+' days to release!</a>');
</script>



More information about the wine-devel mailing list