jeff-optimizely/Guiders-JS — pull request #53 by mikz (2012-03-21 13:17:48+00:00)
Title: Allow custom buttons & fire event after guider is shown

Hi!
I found one "issue" with guiders. We wanted keyboard navigation, to show new guider.

So I've implemented following:

* allow custom element for guider button (we use button)
* allow custom attributes for guider button (with href = # as default)
* allow custom attributes for button on guider level

With this, I was able to implement navigation by pressing spacebar or enter. After guider is shown, next button is focused, so user can use keyboard.

```
$(document).on('guiders.show', '.guider', function(){
$('.guider_button:contains(Next), .guider_button[rel=next]', this).focus();
});
```

```
guiders.createGuider({ ...
buttons: [{name: 'Some text', html: {rel: 'next'}}]
```