Archive for svg

Loading jQuery in SVG

I’ve been reorganizing and ran across the Facebook page for the Technoanarchy I made as a part of a sci-fi story, The Revolution Will Be Televised. I made a logo that I think looks reasonably good:

Your browser has not displayed the image. Try the original source.

I thought a a script to animate the colors when someone clicked it would be entertaining. It’s pretty straightforward in jQuery:

$(document).click( function() {
  $( 'path, rect' ).each( function() {
    $(this).css({ fill : genColor() })
  } )
} )

Unfortunately, even though a new version is out, it still won’t load in SVG documents. I hacked out a couple workarounds to get it to load.

Read the rest of this entry »

Leave a Comment