Hi there,
the code works, but the object “document.” must go through “windows.” be replaced:
var backToTocInit = function(){
window.lwptoc.registerScrollTrigger(jQuery('a[href="#TOC"]').get(), { offset: 128 });
}
if (window.readyState !== 'complete') {
window.addEventListener('load', backToTocInit);
} else {
backToTocInit(); }
Thank you for your help. This solves the problem.
greeting
Slawek