Created
May 27, 2014 08:36
-
-
Save zwang008/a5cf84c07c58da4f1ab0 to your computer and use it in GitHub Desktop.
html: bounceBubbles effect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <!-- // <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script> --> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
| <script type="text/javascript" src="http://s3.amazonaws.com/codecademy-content/courses/hour-of-code/js/alphabet.js"></script> | |
| <link type="text/css" rel="stylesheet" href="css/stylesheet.css"/> | |
| </head> | |
| <body> | |
| <h2 style="float: right;">Data Driven Intellingence</h2> | |
| <canvas id="myCanvas"></canvas> | |
| <script type="text/javascript" src="http://s3.amazonaws.com/codecademy-content/courses/hour-of-code/js/bubbles.js"> | |
| </script> | |
| <script> | |
| var red = [0, 100, 63]; | |
| var orange = [40, 100, 60]; | |
| var green = [75, 100, 40]; | |
| var blue = [196, 77, 55]; | |
| var purple = [280, 50, 60]; | |
| var myName = "Pure Consulting"; | |
| letterColors = [red,orange,green,blue,purple]; | |
| if(10 > 3) { | |
| bubbleShape = "circle"; | |
| } | |
| else { | |
| bubbleShape = "square"; | |
| } | |
| drawName(myName, letterColors); | |
| bounceBubbles(); | |
| </script> | |
| <!-- // <script type="text/javascript" src="js/main.js"></script> --> | |
| <p>WHO we are?</p> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment