[Sugar-devel] karma

Erik Garrison erik.garrison at gmail.com
Tue Nov 17 16:09:34 EST 2009


Also, if you are reading and don't have git but want to try it out,
you can at http://hypervolu.me/~erik/Know-USA/

On Tue, Nov 17, 2009 at 3:30 PM, Erik Garrison <erik.garrison at gmail.com> wrote:
> Okay, here you go:
>
> http://git.sugarlabs.org/projects/karma/repos/erikg-karma/commits/d352293fa9073b10deaaa6cdb55232c20665db7d
>
> 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 :).
>
> Best,
> Erik
>
> 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
>>> soon.
>>
>> 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.
>>>
>>> Erik
>>
>> Awesome!
>>
>> --
>> Bryan W. Berry
>> Senior Engineer
>> OLE Nepal, http://www.olenepal.org
>>
>>
>


More information about the Sugar-devel mailing list