erik.garrison at gmail.com
Tue Nov 17 15:30:11 EST 2009
Okay, here you go:
Thoughts welcome. Please merge into the mainline examples if it seems
appropriate. Otherwise I can break it off into its own activity.
The amount of work was minimal, and also very hacky. The code now
parses the SVG and looks for all objects of class 'state'. It takes
their ids as names, and then uses these as questions.
A click handler is registered on every state using $.click. In this
handler I check if the right state has been clicked. If the right
state has been clicked I give it a random color.
I hope this can serve as a helpful example. In total it took me
around three hours to learn what I needed, complete, and play a bunch
of times :).
On Sun, Nov 1, 2009 at 9:34 AM, Bryan Berry <bryan at olenepal.org> wrote:
> On Sat, 2009-10-31 at 16:05 -0400, Erik Garrison wrote:
>> Is there an overview of the system's structure anywhere? If not I can
>> write one as I read. Unless there are plans to radically change it
> There isn't an up-to-date diagram. You can hold off on doing that as I
> was planning to do that this week.
>> I'll dig into this.
> Bryan W. Berry
> Senior Engineer
> OLE Nepal, http://www.olenepal.org
More information about the Sugar-devel