5

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?

zengr
  • 38,346
  • 37
  • 130
  • 192
  • I don't understand the purpose of this logo. Whats it for? There is no tooltip or link... – Jason Sep 07 '10 at 13:26
  • @Blankasaurus: It's to celebrate Google's 12th birthday. – Christian Sep 07 '10 at 16:33
  • @Blankasaurus Just Google being Google – Ben Sep 07 '10 at 16:34
  • Is the logo supposed to be doing something? It's just an image no? – Peter Sep 08 '10 at 07:56
  • @Peter: Too bad you missed out on the fun. (Yes it does something) – Jason Sep 08 '10 at 12:43
  • @Blankasaurus thats just mean, what did it do then? :-) I have iGoogle on my homepage and use chrome, so I never go to the google homepage anymore – Peter Sep 08 '10 at 14:31
  • @Peter: When you moved you mouse close to the logo the little bubbles scattered to avoid your mouse and then they settle back if you leave them alone. They also got bigger as they moved away from their initial position. It could take up the whole screen with the effect. It was cool. – Jason Sep 08 '10 at 15:04
  • sound cool yeah :-) too bad I missed out – Peter Sep 09 '10 at 06:34
  • 2
    @Peter heres a link to the [Particle Logo](http://www.google.com/logos/particle.html) – Alpine Feb 26 '11 at 07:34
  • Thanks! It does look cool btw! – Peter Feb 28 '11 at 07:25

2 Answers2

2

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
  • 958
  • 12
  • 26
  • 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 Sep 07 '10 at 08:12
  • fixed, the culprit was firebug. I was copying JS from HTML edit tag mode. – zengr Sep 07 '10 at 08:23
0

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.

ndrix
  • 1,191
  • 12
  • 18
  • 2
    http://michaelhendrickx.com/googledots.html is not working on my browser. I am running Firefox 3.6.8 and Safari. – zengr Sep 07 '10 at 08:02