I finalize the dynamic SVG countdown first part, now it shows the days dynamically on the script. http://pastebin.mozilla.org/2658558 The point of having SVG on it, is so that we cut down time invested into this as opposed to duplicate it. Mantaining two versions I think does a duplication of efforts. SVG allow you to manipulate Server side scripting or client side scripting. So you can generate a vector graphic with content from a database like mysql, or datasource like CSV, XML or JSON object and reutilizing the localization of the website, so the PHP function can live in the same embeded SVG. Here is a screenshot of the working copy: http://zerothedragon.com/upload/images/Mozilla_Firefox_179A4418.png On 7/18/13, Pockey Lam <pockey@softwarefreedomday.org> wrote:
Dear Alexandro,
it's indeed a very good idea and great initiative. Actually we can run more than 1 countdown at the same time while users can pick the theme / countdown they like. Right now our banner named banner1, with the skill you have, would you please start a project to work on this ideal countdown and we can call it banner2? Please create a wiki page to start this great project, and make a how-to to show users (especially to non-technical users like myself) how to this countdown work :)
I am also thinking to make another version of countdown named banner3 next year to actually not to specify the year, so once countdowns are translated we can use them again and again for the years to come.
In fact we are rather busy in preparing to ship goodies, talking to partners to get attractive prizes for our sfd competition as well as updating the sfd site (as the version we are using are no longer support soon). Hence we may not have enough time to focus on the countdown for now, so we can really use some help and really appreciate your input and help!
Regards, Pockey
On 07/18/2013 04:34 PM, Alexandro Colorado wrote:
Here is a sample: http://pastebin.mozilla.org/2648438
Of course the JS is not currently active, but you can see the necesary input output things. feel free to comment on the lines you have questions.
On Thu, Jul 18, 2013 at 2:47 AM, Alexandro Colorado <jza@oooes.org <mailto:jza@oooes.org>> wrote:
Hi I think Frederic still doesnt understand how SVG+JS works. Think of it as Flash+actionscript. In the end SVG is a file with script that the browser renders as graphics.
Alternatively we could use Canvas, but I dont recomend it since there is very few Canvas authoring tools.
Users only need to link to the SVG by doing - Embed tag - Object tag - Paste it in the HTML http://www.w3schools.com/svg/svg_inhtml.asp
On Thu, Jul 18, 2013 at 2:20 AM, julien forgeat <julienforgeat@gmail.com <mailto:julienforgeat@gmail.com>> wrote:
Good thing with js is that we can probably get the timezone from the browser which makes more sense, but there would still be quite some work to adapt the font size to each language and adapt to non-left to right languages too
Julien
On Thu, Jul 18, 2013 at 2:41 PM, Frederic Muller - DFF <fred@digitalfreedomfoundation.org <mailto:fred@digitalfreedomfoundation.org>> wrote:
Hi and thanks for joining the explanations.
Unfortunately asking SFD teams promoters to insert JavaScript into their web pages and select the right time zone seems a bit complicated. We want something that is the easiest possible to insert and live little chance for mistakes. I was actually thinking it was the same scripting idea we tried in the past to combine the SVG and some text files to generate the PNGs.
Now we could definitely have both options available and people chose what works best for them (that doesn't mean I can do options number 2 though).
Fred
On 07/18/2013 02:32 PM, julien forgeat wrote: > Hello All > > I think what Alexandro is suggesting is that we create a javascript that > people would insert in their webpage along with the background of the > countdown, in svg format. Then we would have a <text> in the svg that > would be left blank and whose content would be controlled by javascript > using getElementByID or something similar. > > Julien > > > On Thu, Jul 18, 2013 at 1:11 PM, Frederic Muller - DFF > <fred@digitalfreedomfoundation.org <mailto:fred@digitalfreedomfoundation.org> > <mailto:fred@digitalfreedomfoundation.org <mailto:fred@digitalfreedomfoundation.org>>> wrote: > > Answers below. I remove much of the email but the idea I think is more > than 1 year old. I remember someone trying with the Inkscape scripting > like 2 years ago at least and we discussed about the issues to finally > give up. But I think it was just to automate the making of 100+ png > images. So apparently I'm still confused about your proposal. > > On 07/18/2013 02:51 AM, Alexandro Colorado wrote: > > iframe's suck, and I am not sure I understand why would we need an > > iframe. The whole point of the proposal is to not end up with 100 > images > > but one single SVG and a datasource. > > Not sure I understood. As I said I will read the links you offered, it > will just take time. > > > > > > > > > > > I hope you understand my perspective. I'm just a volunteer > with limited > > knowledge and a lot of things to do. > > > > > > From my understanding you know far better Javascript than I do (I > > assume you did the OpenLayer map), and XML is well... just like > HTML in > > the end. > > That wasn't me. The OSM layer was added by an Italian contributor (we > asked for someone to help). No one at the SFI board at the time was able > to do the job...which is why we were using Google maps initially. > > As you see we just put the pieces together (while doing was we were able > to do). > > Thanks. > > Fred > > > _______________________________________________ > SFD-discuss mailing list > SFD-discuss@sf-day.org <mailto:SFD-discuss@sf-day.org> <mailto:SFD-discuss@sf-day.org <mailto:SFD-discuss@sf-day.org>> > http://mail.sf-day.org/lists/listinfo/sfd-discuss > > > > > > _______________________________________________ > SFD-discuss mailing list > SFD-discuss@sf-day.org <mailto:SFD-discuss@sf-day.org> > http://mail.sf-day.org/lists/listinfo/sfd-discuss >
_______________________________________________ SFD-discuss mailing list SFD-discuss@sf-day.org <mailto:SFD-discuss@sf-day.org> http://mail.sf-day.org/lists/listinfo/sfd-discuss
_______________________________________________ SFD-discuss mailing list SFD-discuss@sf-day.org <mailto:SFD-discuss@sf-day.org> http://mail.sf-day.org/lists/listinfo/sfd-discuss
-- Alexandro Colorado Apache OpenOffice Contributor http://www.openoffice.org
-- Alexandro Colorado Apache OpenOffice Contributor http://www.openoffice.org
_______________________________________________ SFD-discuss mailing list SFD-discuss@sf-day.org http://mail.sf-day.org/lists/listinfo/sfd-discuss
-- Alexandro Colorado Apache OpenOffice Contributor http://www.openoffice.org