robinadr

Avatar

Animated Scrolling in jQuery

I came across an article on Learning jQuery about animating the scrolling between same-page links (i.e. anchors). Basically one block of code does this automatically, but I came across a problem that it was trying to do the same for anchors on other pages, which obviously wouldn’t work.

The line in question:

$('a[href*=#]').click(function() {

This line selects all a elements with a hash (#) in its href attribute, but this also selects links to anchors on other …

Headcode 1.0

Thanks to two recent commits to the Habari SVN repository (changesets 851 and 864), my first plugin for Habari can be released. Ladies and gentlemen, I present Headcode.

From the readme:

This plugin enables you to inject your own code into the <head> section of your template, and before the closing </body> tag in your template.

It spawned out of a list of Habari plugin ideas from H0bbel, and I thought I should start out easy to …

PXSMail and Markdown

Ever since I started using the PXS Mail Form plugin in favor of WP-ContactForm for my contact page, I always had problems with it conflicting with the Markdown plugin. Namely, that it disabled the Markdown formatting, and left me with a pile of rubbish.

At the time I decided to keep Markdown and disabled PXS Mail Form, and my contact page took a vacation, but I finally managed to take some time to look a little …