Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to control the gravity, I want click to start animation. #1

Open
GoogleCodeExporter opened this issue Mar 31, 2016 · 5 comments
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. open within browser
2. currently, animation auto play when the page was load finished,
3. how to click to start animation.



Original issue reported on code.google.com by Thirty....@gmail.com on 5 Dec 2011 at 8:22

@GoogleCodeExporter
Copy link
Author

$('body').click(function() { var script = document.createElement("script"); 
script.src="http://gravityscript.googlecode.com/svn/trunk/gravityscript.js"; 
document.body.appendChild(script);void(0); });

Original comment by redneb...@gmail.com on 28 Mar 2012 at 11:49

@GoogleCodeExporter
Copy link
Author

Hi,

This solution seems to only load the .js file on click. So once clicked you 
still have to move your mouse to active the gravity effect.

Is there a way to fire the effect immediately after click?

Original comment by daniel.e...@gmail.com on 11 May 2012 at 4:40

@GoogleCodeExporter
Copy link
Author

Maybe this helps

<script type="text/javascript"> 
$(function(){
$('img').click(function() { var script = document.createElement("script"); 
script.src="http://tinyurl.com/grav-js"; 
document.body.appendChild(script);void(0); });
});
</script>

Original comment by misch.da...@gmail.com on 25 Sep 2013 at 2:38

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

The updated code has both Mouse click start and automatic start

Check more tricks here 
http://www.zackable.com/google/best-google-zero-gravity-tricks-pranks-2014/ 

Original comment by sampatht...@gmail.com on 28 Dec 2013 at 8:39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant