Blog

Motorsports Calendar
17th November 2010
Continuing on from my feedreader webapp, I've updated the motorsports calendar I created earlier in the year, and made it ready for next year's events. It's a little quicker, and the added external links now load on demand rather than all at once initially, which saves the server a lot of rummaging around in databases. It's done in PHP with MySQL and jQuery scripts.

The image is how it'll look in the middle of next year, once a few races have taken place. It checks the current date and adjusts the styling depending on whether each race is a future race, a past race or a current race. All events listed are two- or three-day weekend events, so there's a good chance that if you look at the page on a weekend in 2011, there'll be at least one form of motorsport on.

External links to past races are displayed to highlights of past races hosted on the BBC website, as well as to iPlayer if it detects that an F1 race was shown within the last seven days, and so the race will be available on iPlayer. Once a race has completed, a results link appears that takes you to the official F1 website, assuming they don't adjust their link formats in the meantime.

Have a look.
Loading...
Saving...