Following a couple months of tweaking and tuning, a new design for ScienceLeadership.org has come out of beta and landed for all to use!
The main impetus for creating this whole new design was taking advantage of a new trend in web development called responsive design. With a responsive design, a website can change how it looks and how it's laid out on your screen based on the size and type of the screen you're viewing it on. This should make it easier to use the site from a phone or tablet without having to scroll and zoom all over a page intended for big computer screens.
Use the comments section under this blog post to let us know what you think, especially if you've spotted any problems or have ideas for improvements. If you need to get to anything urgently and are having trouble finding it with the new design, the old design will remain archived here.
The live graduation broadcast will begin at approximately 6:00pm. Until then, enjoy a replay of the opening remarks from January's EduCon event @ SLA:Live stream closed
We now use an array to store a list of circles so that we can track more than one. Each item in the array is an object containing x, y, dx, dy, and r for one circle
The script listens for the space bar to add circles to the system (click inside the red box first so it will hear you)
This new version of the example features better comments explaining each line of code.
It also includes the changes we made in class today to create a variable (radius or r) that holds the ball's radius and is used to make the ball bounce before any of its edges goes off any side of the canvas. (notice in the previous example that the ball doesn't bounce until its center reaches an edge)
Skip ahead to 10:40 for opening remarks.