Modify the action of the navigation bar buttons

Hello.

Would it be possible to be able to modify the default action of the button “next slide” of the navigation bar for example, so that by clicking on this button, this one returns to a very precise slide?

In the Storyline software, you can change the default actions, “more” and “back” buttons.

Thank.

Hi Christ,

It seems you want to overwrite the behaviors of player buttons. If so, you can add the following code into ActivePresenter > Project > Properties > Event:

if (prez.__inited)
    return;
prez.__inited = true;

// Replace ap-tool-next by your desired tool id
$(".ap-tool-next").off("click");
$(".ap-tool-next").on("click", function() {
    //Add code for your action here
    prez.showSlideAt(5);
});

You can use the following tool ids:

ap-tool-restart
ap-tool-first
ap-tool-prev
ap-tool-play
ap-tool-next
ap-tool-last
ap-tool-speed
ap-tool-sound
ap-tool-volume
ap-tool-cc
ap-tool-about
ap-tool-setting
ap-tool-displaymode
ap-tool-toc
ap-tool-resources
ap-tool-sidebar
ap-tool-exit

Regards,

Thanks for your help.
As I understand it, this changes for all the module?
Is there a solution that only works for one slide?

Thank you.

Hi Christ,

You can check the current slide index in code like below:

if (prez.__inited)
    return;
prez.__inited = true;

// Replace ap-tool-next by your desired tool id
$(".ap-tool-next").off("click");
$(".ap-tool-next").on("click", function(e) {
    if (prez.currentSlideIndex() == 2)
        prez.showSlideAt(5);
    else
        prez.nextSlide();
});

Please refer to the Custom JavaScript in HTML5 Output section in User Manual (page 256) for detail.

Regards,