Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
test [2019/05/04] – gomida | test [2019/05/04] – gomida | ||
---|---|---|---|
Line 25: | Line 25: | ||
var load = function(stickies) { | var load = function(stickies) { | ||
$stickies = stickies.each(function() { | $stickies = stickies.each(function() { | ||
- | var $thisSticky = jQuery(this).wrap('< | + | var $thisSticky = jQuery(this);//.wrap('< |
console.log($thisSticky.offset().top); | console.log($thisSticky.offset().top); | ||
$thisSticky | $thisSticky | ||
Line 44: | Line 44: | ||
if ($stickyPosition <= $window.scrollTop()) { | if ($stickyPosition <= $window.scrollTop()) { | ||
var $nextSticky = $stickies.eq(i + 1); | var $nextSticky = $stickies.eq(i + 1); | ||
- | var $nextStickyPosition = $nextSticky.data(' | + | var $nextStickyPosition = $nextSticky.data(' |
$thisSticky.addClass(" | $thisSticky.addClass(" |
TypeError: Cannot access offset of type string on string
An unforeseen error has occured. This is most likely a bug somewhere.
More info has been written to the DokuWiki error log.