looks great! I haven't had a chance to look at the code but it looks quite nice. It works for me on firefox 3.7 and 3.5 but for whatever reason chrome distorts the svg after i pick the correct state. I suspect any webkit browser suffers the same problem.
I have been meaning to submit a bug report to chromium but haven't gotten around to it. I probably won't get to it until next week as I am still neck-deep in adding unit tests to karma.js http://git.sugarlabs.org/projects/karma/repos/mainline/trees/jkjs-refactor/tests Could you do me a huge favor and test it yourself on chromium and then submit a bug report should you find the same problem? On Tue, 2009-11-17 at 16:09 -0500, Erik Garrison wrote: > 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.garri...@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 <br...@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 > >> > >> > > -- Bryan W. Berry Senior Engineer OLE Nepal, http://www.olenepal.org _______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel