zurb / joyride

jQuery feature tour plugin.
http://www.zurb.com/playground/jquery-joyride-feature-tour-plugin
1.42k stars 238 forks source link

Mobile: Make the nub relative to it's target. #166

Open lucastockmann opened 10 years ago

lucastockmann commented 10 years ago

While watching a tour with a mobile phone or tablet ( < 767px ) the nub has no "positions"-class so it's default position is shown.

With just a little piece of code it's possible to make the nub point to its target.

In methode pos_phone: $nub.css('left', settings.$target.offset().left);

In methode pos_default: $nub.css('left', '');

http://i.imgur.com/Pskwa9n.png

FatEd11 commented 10 years ago

Hi Luca

Is there a way I can easily do this inside the html - currently getting the joyride.js from from jsdelivr so can't edit the code there.

Thanks

lucastockmann commented 10 years ago

Hey FatEd11

don't know this yet. I will have a look on it later on.

Luca