Summary
Just testing to see if jQuery can animate font size. It can!

Notes
The actual animation only requires the .animate({fontSize: "(size)px"},duration); line, but I added more code like callbacks so the button can work more than once.
Just testing to see if jQuery can animate font size. It can!

The actual animation only requires the .animate({fontSize: "(size)px"},duration); line, but I added more code like callbacks so the button can work more than once.


I shot a couple more photomerge series during my museum visits to SFMOMA, de Young, and the Exploratorium. These merges show the funky merge process that Photoshop undergoes when the angles get more extreme than expected.
Added the pre-Oct 1582 restriction on the reusable calendar. (Working version, Update 4 version)

Essentially, the addition from Update 3 is the function checkRestraint(), where it checks the date being dragged or clicked on to see if it should be set to Oct 1582 or let it be.
I also used the checkRestraint() function to make the cursor look normal when the mouse is over a date that should not be available, even though they can click on it, but it would just move to Oct 1582.
Check it out and let me know if it the functions don’t work properly or intuitively.
Read the rest of this entry »
I isolated the dragging portion of update 3 of the reusable calendar project to show what options under the draggable jQuery UI to use.

In the draggable() function, I used the grid: [0, 15] to restrict its movement to 15 px vertical, then I used containment: [0, y1, 0, y2], where y1 is the offsetTop value of the strip itself when it’s at the last month/digit, and y2 is at the first month/digit, to restrict its range so the strip won’t go past the first and last value.
Adding more functionalities to the date display to the reusable calendar. Now you can click on the months or year digits, or you can drag the strips to change the date. (Before, you can only click on the arrows move forward or backward one month at a time.)

This dragging function was made easily possible by the jQuery UI. It takes a lot of the grunt work out of the process.
The current range is Jan 1000 to Dec 9999. But technically, the calendar doesn’t apply before October 15, 1582, since that’s when the Gregorian calendar was first adopted. So I will add that restriction in the next or upcoming updates.


In early July of 2007, I took advantage of the First Tuesday (or Wednesday) of the Month free admission program for many major San Francisco museums and took quick tours of SFMOMA, de Young, and the Exploratorium. Fortunately, the weather was nice for the two days and I got to take some beautiful photos outside.
A work-in-progress update of the reusable calendar project I introduced last time where the frame that goes around the dates of the month moves instead having a different layout for each month.
In this update, the basic functions are added to the arrows. When the arrows are clicked, the script updates the new month and year in the background and updates the date display and calendar frame and cross-outs strips with jQuery animation.
Currently, the calendar can only move by pressing the arrows, month by month. The next stage will involve the ability to click on the month and year digits to jump to a different month, year, decade, century, or millennium.
I didn’t think the project would work so smoothly so far. I guess a lot of planning and thinking ahead pays off. But the next stage might be a bit tricky, since there will probably be a lot more things to manage with the individual month and year digits being clickable.
You may see the ongoing version that changes and is added upon as time goes on.
I mentioned in my latest monthly update on Flush that I am working on a special calendar that I will hopefully display on the home page of the website when it’s all done. Here is a screenshot of the basic set up I have so far:

It might look a bit complicated, but the concept is delightfully simple (to me at least). I will probably explain more in detail later on, but basically, the idea is that with the set up on the left, you can generate any layout of the month we see in practically all calendars in the world.
ivanwlam.com | Powered by WordPress
All content on this site, including text, logos, images, photos, graphics, and layout, copyright 2007–09 by Ivan W. Lam unless otherwise noted. Please cite any original material from this site back here.