Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions jquery.joyride-2.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
'version' : '2.1',
'tipLocation' : 'bottom', // 'top' or 'bottom' in relation to parent
'nubPosition' : 'auto', // override on a per tooltip bases
'nubOffset' : false, // specify exact offset to control exact nub position (false = get position from stylesheet (22px))
'scroll' : true, // whether to scroll to tips
'scrollSpeed' : 300, // Page scrolling speed in milliseconds
'timer' : 0, // 0 = no timer , all other numbers = timer in milliseconds
Expand Down Expand Up @@ -544,6 +545,12 @@
settings.$next_tip.css('visibility', 'visible');
}

if (settings.tipSettings.tipLocation === 'top' || settings.tipSettings.tipLocation === 'bottom') {
methods.nub_offset($nub, settings.tipSettings.nubOffset, 'left');
} else {
methods.nub_offset($nub, settings.tipSettings.nubOffset, 'top');
}

},

pos_phone : function (init) {
Expand Down Expand Up @@ -811,6 +818,12 @@
}
},

nub_offset : function (nub, offset, pos) {
if (offset) {
nub.css(pos, offset);
}
},

startTimer : function () {
if (settings.$li.length) {
settings.automate = setTimeout(function () {
Expand Down