views:

869

answers:

2

I got the code for the new google.com's doodle: http://gist.github.com/567948

The problem is, all the values in the <div id="hplogo"> is changing dynamically, but not when I copy the code in my local machine.

It seems only JS + DIV, anything missing?

But now able to replicate it on my local machine.

alt text

Any suggestions?

A: 

Just wondering, did you put and tags around it? Seems to work fine on my Firefox 3.6. I copied it to http://michaelhendrickx.com/googledots.html

I'm not sure what you mean with the "changing dynamically". It seems to be the coordination values of the particles.

m1ke
http://michaelhendrickx.com/googledots.html is not working on my browser. I am running Firefox 3.6.8 and Safari.
zengr
+1  A: 

the source on github on line 153 says:

if (!v & amp; & amp; window.location.href.indexOf("#") == -1) {

it's supposed to be

if (!v && window.location.href.indexOf("#") == -1) {
koko
It seems, http://jsbeautifier.org/ screwed the JS up, but it's still does not work. I will fix the JS everywhere and update the gist.
zengr
fixed, the culprit was firebug. I was copying JS from HTML edit tag mode.
zengr