[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Fwd: Website buildscript is live!



Op woensdag 24-10-2007 om 16:22 uur [tijdzone -0400], schreef Ricky
Zhou:
> On Wed, Oct 24, 2007 at 08:56:05AM +1000, Andrew Myers wrote:
> > We could provide some javascript to select the correct image.
> > 
> > I'm borrowing from Ubuntu's code here, but I've attached an example of
> > how this could be done using Javascript.
> > 
> > The .js shoud be hosted on our site, and it would be even better if
> > rather than using the client date, it was served up dynamically to
> > just show the correct number.
> Great idea!  I modified the script a tiny bit to match the logic that's
> the website is using to generate the counter:
> 
>   var today = new Date();
>   var release = new Date("November 8, 2007 14:00:00 UTC");
>   var millisBetweenDates = release - today;
>   var days = Math.ceil(millisBetweenDates/1000/60/60/24);
>   if (days < 0) days = 0;
> 
>   document.write('<div id="banner"><a href="http://fedoraproject.org/wiki/Releases/8/Schedule";><img src="http://fedoraproject.org/images/counter/' + days + '.png" alt="Fedora 8 Werewolf unleased in " + days + " days." style="border: none;"></a></div>');
> 
> What do you think?  Should we put this up/start spreading it? 
> 
Yeah definitely, this would be very cool! Just imaging surfing somewhere
and being greeted by a werewolf :-)

> Thanks,
> Ricky

Bart
-- 
Bart <couf fedoraproject org> <couf skynet be>
key fingerprint: 6AAB 544D 3432 D013 776D  3602 ADB6 6B2A D93F 0F93

Attachment: signature.asc
Description: Dit berichtdeel is digitaal ondertekend


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]