From am2605 at gmail.com Thu Nov 19 09:57:02 2015 Content-Type: multipart/mixed; boundary="===============7115521314682043244==" MIME-Version: 1.0 From: Andrew Myers To: websites at lists.fedoraproject.org Subject: Fwd: Website buildscript is live! Date: Wed, 24 Oct 2007 08:56:05 +1000 Message-ID: <2584c1260710231556y6f3c3599m1f11133af5fa079@mail.gmail.com> In-Reply-To: 2584c1260710231548l9c1572cva1d59fef3d06b68a@mail.gmail.com --===============7115521314682043244== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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. People can then just include the javascript into their own sites, eg: You can grab my demo of this from http://www.yacy-forum.org/test/fedora-counter.zip On 23/10/2007, Mike McGrath wrote: > Rahul Sundaram wrote: > > Ricky Zhou wrote: > >> Since about 20 minutes ago, the website is being generated from Genshi > >> templates using a python script. This should make the site easier to > >> maintain, and also enable cool features like our brand new automatical= ly > >> updating release counter :) > > > > Looking at the image, it seems to be pregenerated. It would be better > > if we can provide a dynamically updated banner that others can copy > > into their blogs. Clicking on the banner could lead to the release > > schedule. > > They are pregenerated. If someone wants to do the work I'm sure it > would be easy for us to implement it. /me notes what Ubuntu did: > > http://www.ubuntu.com/getubuntu/countdown > > -Mike > > -- > Fedora-websites-list mailing list > Fedora-websites-list(a)redhat.com > https://www.redhat.com/mailman/listinfo/fedora-websites-list > --===============7115521314682043244==-- From ricky at fedoraproject.org Thu Nov 19 09:57:02 2015 Content-Type: multipart/mixed; boundary="===============6485302211745604055==" MIME-Version: 1.0 From: Ricky Zhou To: websites at lists.fedoraproject.org Subject: Re: Fwd: Website buildscript is live! Date: Wed, 24 Oct 2007 16:22:42 -0400 Message-ID: <20071024202242.GA30024@Max.example.com> In-Reply-To: 2584c1260710231556y6f3c3599m1f11133af5fa079@mail.gmail.com --===============6485302211745604055== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 =3D new Date(); var release =3D new Date("November 8, 2007 14:00:00 UTC"); var millisBetweenDates =3D release - today; var days =3D Math.ceil(millisBetweenDates/1000/60/60/24); if (days < 0) days =3D 0; document.write('
3D"Fedora
'); What do you think? Should we put this up/start spreading it? = Thanks, Ricky --===============6485302211745604055== Content-Type: application/pgp-signature MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.sig" LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEuNC43IChHTlUv TGludXgpCgppRDhEQlFGSEg2bVNaQktLTE15dlNFNFJBaWQ1QUp3UDFYQy9RdUd2L0JaOEs3dWJF ZWZ6L1ZLMk9RQ2ZUN2RTCnNnVnh3QTl2dGNJQTBaVEVoTzhOdk9RPQo9bktrdQotLS0tLUVORCBQ R1AgU0lHTkFUVVJFLS0tLS0K --===============6485302211745604055==-- From couf at skynet.be Thu Nov 19 09:57:03 2015 Content-Type: multipart/mixed; boundary="===============0418531648207728419==" MIME-Version: 1.0 From: Bart Couvreur To: websites at lists.fedoraproject.org Subject: Re: Fwd: Website buildscript is live! Date: Wed, 24 Oct 2007 22:38:34 +0200 Message-ID: <1193258315.1690.1.camel@lapcouf.homelinux.net> In-Reply-To: 20071024202242.GA30024@Max.example.com --===============0418531648207728419== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 =3D new Date(); > var release =3D new Date("November 8, 2007 14:00:00 UTC"); > var millisBetweenDates =3D release - today; > var days =3D Math.ceil(millisBetweenDates/1000/60/60/24); > if (days < 0) days =3D 0; > = > document.write('
3D"Fedora
'); > = > 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 key fingerprint: 6AAB 544D 3432 D013 776D 3602 ADB6 6B2A D93F 0F93 --===============0418531648207728419== Content-Type: application/pgp-signature MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEuNC43IChHTlUv TGludXgpCgppRDhEQlFCSEg2MUlyYlpyS3RrL0Q1TVJBbFNvQUowY2w1U2s5MVo2ZGJkMEkwNUJQ VnhaTTNXNDB3Q2VJVVErCkZNRS94NnpCeE5Eam5JcTZMckNKOTl3PQo9WmFTRgotLS0tLUVORCBQ R1AgU0lHTkFUVVJFLS0tLS0K --===============0418531648207728419==-- From am2605 at gmail.com Thu Nov 19 09:57:03 2015 Content-Type: multipart/mixed; boundary="===============7371420849979258680==" MIME-Version: 1.0 From: Andrew Myers To: websites at lists.fedoraproject.org Subject: Re: Fwd: Website buildscript is live! Date: Thu, 25 Oct 2007 07:47:17 +1000 Message-ID: <2584c1260710241447g495e5087g53e9b6d49f945b07@mail.gmail.com> In-Reply-To: 20071024202242.GA30024@Max.example.com --===============7371420849979258680== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sounds good. Do we have a http://fedoraproject.org/images/counter/0.png file for when it's > What do you think? Should we put this up/start spreading it? > > Thanks, > Ricky > --===============7371420849979258680==-- From am2605 at gmail.com Thu Nov 19 09:57:03 2015 Content-Type: multipart/mixed; boundary="===============2076588606269826915==" MIME-Version: 1.0 From: Andrew Myers To: websites at lists.fedoraproject.org Subject: Re: Fwd: Website buildscript is live! Date: Thu, 25 Oct 2007 07:48:19 +1000 Message-ID: <2584c1260710241448l23d747f0u55af96ef7d305b60@mail.gmail.com> In-Reply-To: 2584c1260710241447g495e5087g53e9b6d49f945b07@mail.gmail.com --===============2076588606269826915== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sorry cut that message off prematurely. I meant to finish by saying do we have a 0.png file for when the counter reaches 0 to say that F8 is now available or something similar? On 25/10/2007, Andrew Myers wrote: > Sounds good. Do we have a > http://fedoraproject.org/images/counter/0.png file for when it's > > > What do you think? Should we put this up/start spreading it? > > > > Thanks, > > Ricky > > > --===============2076588606269826915==-- From ricky at fedoraproject.org Thu Nov 19 09:57:03 2015 Content-Type: multipart/mixed; boundary="===============2452597847143703999==" MIME-Version: 1.0 From: Ricky Zhou To: websites at lists.fedoraproject.org Subject: Re: Fwd: Website buildscript is live! Date: Wed, 24 Oct 2007 18:42:41 -0400 Message-ID: <20071024224240.GB30024@Max.example.com> In-Reply-To: 2584c1260710241448l23d747f0u55af96ef7d305b60@mail.gmail.com --===============2452597847143703999== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Thu, Oct 25, 2007 at 07:48:19AM +1000, Andrew Myers wrote: > I meant to finish by saying do we have a 0.png file for when the > counter reaches 0 to say that F8 is now available or something > similar? Ah, somebody mentioned this in #fedora-websites as well. Hopefully, we can have separate "0 days" and "F8 is here!" banners for those last 24 hours :) = M=C3=A1ir=C3=ADn- could you create a "Released" banner to show after the co= untdown is over? = Thanks, Ricky --===============2452597847143703999== Content-Type: application/pgp-signature MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.sig" LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEuNC43IChHTlUv TGludXgpCgppRDhEQlFGSEg4cGdaQktLTE15dlNFNFJBckRlQUtEZU44NjRPeDZVYXUwVS8vdnlT eUZ2SmhRZWVnQ2ZjNWwyCmUvWHJtRU1sYk5LVnI0U3JtWDFJaFI4PQo9WkNvagotLS0tLUVORCBQ R1AgU0lHTkFUVVJFLS0tLS0K --===============2452597847143703999==-- From ricky at fedoraproject.org Thu Nov 19 09:57:04 2015 Content-Type: multipart/mixed; boundary="===============8945633924049551519==" MIME-Version: 1.0 From: Ricky Zhou To: websites at lists.fedoraproject.org Subject: Re: Fwd: Website buildscript is live! Date: Thu, 25 Oct 2007 19:42:03 -0400 Message-ID: <20071025234203.GC31274@Max.example.com> In-Reply-To: 2584c1260710241447g495e5087g53e9b6d49f945b07@mail.gmail.com --===============8945633924049551519== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Thu, Oct 25, 2007 at 07:47:17AM +1000, Andrew Myers wrote: > Sounds good. Do we have a > http://fedoraproject.org/images/counter/0.png file for when it's I've put the counter script up at /js/release-counter.js for now (see http://ricky.fedorapeople.org/ for an example of it in action). Once we have an image for after Fedora has been released, I can add that case to the javascript. = The usage is something like: I haven't explicitly put up instructions for this anywhere else, but hopefully, people can start using it on their websites/blogs and such and spread it that way for now :) Thanks, Ricky --===============8945633924049551519== Content-Type: application/pgp-signature MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.sig" LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEuNC43IChHTlUv TGludXgpCgppRDhEQlFGSElTbkxaQktLTE15dlNFNFJBdGxBQUo5a0ZWdVlLMXhGaElCTVlycVd0 RUtsK242TUVBQ2dwL3c0ClNVcnFQdlpCM2FDR3RJbm9tZnd1MFVrPQo9SEVKNAotLS0tLUVORCBQ R1AgU0lHTkFUVVJFLS0tLS0K --===============8945633924049551519==--