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>
Dan Kegel wrote:
Anybody seen the nifty countdown logo that Ubuntu is using? http://www.ubuntu.com/getubuntu/countdown Maybe we should do something similar for Wine.
Yes we should!
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Dan Kegel wrote:
Anybody seen the nifty countdown logo that Ubuntu is using? http://www.ubuntu.com/getubuntu/countdown Maybe we should do something similar for Wine.
Agreed.
FWIW, here's a snippet that does something similar, but with text:
[...]
I don't like this approach for several reasons:
* It doesn't work for browsers without javascript interpreter or for users who disabled javascript for various reasons * You ask people to include a script in their pages (well, you didn't, the Ubuntu people did). Including executable script code that you don't control is a very bad idea since it is executed in the execution context of your page (think about stealing session ids that are stored in cookies or in the URL). * You rely on the users clock to calculate the number of days left
Instead I propose the use of a small cgi script that calculates the number of days left and creates a 307 redirect to the appropriate image. I prepared some images and you can try it out:
<img src="http://teythoon.cryptobitch.de/cgi-bin/wine-countdown.py" alt="Wine 1.0 countdown" />
The images could use some fine tuning, feedback is always welcome :). I couldn't find much about "official" wine artwork, I searched the wiki for "artwork" and "logo" and googling for "wine artwork" didn't yield any useful information either ;). The images I found were in the website.git module...
Cheers, Justus - -- gpg key fingerprint: C82D 382A AB38 1A54 5290 19D6 A0F9 B035 686C 6996