Case: #
Trigger custom function or action when viewer has changed the page.
Demo: #
Process: #
We use onPageChanged function to detect the viewer page changed state. These are added to DFLIP.defaults variable so that every flipbook on the page uses the customization.
<script>
jQuery(function(){
DFLIP.defaults.onPageChanged= function(app){
//alert("Page Changed");
console.log("Page changed to: " + app.currentPageNumber);
};
});
</script>