3D FlipBook - Add a home button in navigation control panel

j***s@jesmadsen.com
2023-10-09
2023-10-10

How do I add a home icon to the navigation panel, that goes to a table of content page inside the PDF?

Replies

j***s@jesmadsen.com
2023-10-09
2023-10-09

Well I figured it out, but it ain't working when using it with the PDF in a lightbox.

I'm using this code inside the "Ready function" field in the general settings:

var myFrame = $(".book-widget iframe").contents().find('body'); myFrame.find('.widToolbar .buttons').prepend('Indholdsfortegnelse'); myFrame.find('.widToolbar .indholdsfortegnelse').css('width', '30');

$(".book-widget iframe").contents().on("click", ".indholdsfortegnelse", function(e){ e.preventDefault(); scene.ctrl.goToPage(2); });

j***s@jesmadsen.com
2023-10-09
2023-10-09

DOH, solved it. The class was no longer book-widget, since the lightbox container was another class...

Log In to leave a comment