Skip navigation.

I'll think of a good title later

the United States of SVG

, , , , , , ,

You can now test your knowledge of the United States of America!

This new page uses the exact same code that I used for the world countries page detailed in my last post. All I've done is change the data, the code for choosing random states, highlighting, keeping score etc. is pretty much identical.

Update 21/01/2007:

Thanks to help from Jeff we are now fully functional in IE+ASV as well!

We also have a much smaller Compressed svgz file of the game as well.

Find The CountryTo slag off Congress please sign here

Comments

jeff_schiller 19. January 2007, 00:07

Fantastic!

Junyor 21. January 2007, 23:36

You misspelled Massachusetts. :frown:

orinoco 22. January 2007, 08:29

I misspelt Pennsylvania too! I've fixed the SVG file & will fix the SVGZ when I get home tonight.

nickshanks 13. March 2007, 11:24

Actually I meant to comment on the snake game and somehow managed to end up on the one before (probably overzealous use of the back button combined with quarter-past-three-in-the-morning dreariness), but this post is indeed a more correct target, i just hadn't found it.

Problems are as follows:

1) I can't select Texas in Safari, it neither highlights nor accepts clicks. Looking at the source code I don't see a problem, perhaps it's a bug in Safari, however since everything else works I assumed there was a typo in the SVG. I doubt it's some kind of overflow since Michigan works and has more points in its path.
2) I noticed Colorado doesn't close up it's path with a z (and it's first and last points don't match).
3) You are not setting the Transfer-Encoding of the svgz, so it doesn't get decoded, and the browser tries to handle "�#!�E

orinoco 14. March 2007, 18:57

1) I've had a few friends who have used various Safari nightlies to play the games. Sometimes it works sometimes it doesn't. Alas not owning a Mac I can't do any testing myself. As soon as the Safari team finish their work on implementing KSVG & a public version comes out with SVG support I will look into it further.

2) Fixed.

3) This is an issue with the MyOpera community & is not something I can fix myself. I did post a message about this in the forums a while back & I belive it's on the todo list.

dantesoft 18. March 2007, 22:11

I should get points for hitting the continent, and also based on distance :wink:

Yes, I meant this comment for the world svg :lol:

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.

November 2009
M T W T F S S
October 2009December 2009
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30