• Resolved dangrimes

    (@damonmaldonado)


    Hello,

    I feel it would be helpful if there was a javascript callback that was executed after changing the font size.
    That way we could chain other events directly to the font size changing, rather then having to set them for the On click event of each item.

    Are there any plans to add such a feature?
    If wanted I would be willing to contribute code to do so.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marcel Pol

    (@mpol)

    That sounds like a good addition.
    I don’t have that much experience with more advanced JavaScript. If you want to, please provide some code. I will put it in an update.

    Plugin Author Marcel Pol

    (@mpol)

    Hi, I added a jQuery callback with fontsize as parameter in 1.7.1.

    Example code for using the callback:

    jQuery(document).ready(function($) {
        zeno_font_resizer_callback.add( my_callback_function );
    });
    
    function my_callback_function( newFontSize ) {
        console.log( 'This is the new fontsize: ' + newFontSize );
        return false;
    }
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘After resize callback’ is closed to new replies.