Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How is the new google logo (moving balls) implemented?

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?

like image 443
zengr Avatar asked Nov 05 '22 09:11

zengr


1 Answers

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) {
like image 169
koko Avatar answered Nov 11 '22 05:11

koko