Increase - Decrease

jQuery plugin fontSize

Hosted in: https://github.com/coto/fontsize

How to use:

  1. Include jquery.js and jquery.fontSize.js between tags.
  2. Give id's for both links, for example #increase (+) and #decrease (-)
  3. Initialize the plugin, like the folowing:
                $(document).ready(function(){
                    $('#increase').fontSizer({
                        action: "up",
                        max: 36
                    });
                    $('#decrease').fontSizer({
                        action: 'down'
                    });
                });
                
  4. That's it. now, the parameters:
    • action: "up/down" (required)
    • elements: "element" (which element will be influenced by the font-size)
    • increment: number (how many steps will increase/decrease the font-size)
    • max: number (max. font-size)
    • min: number (min. font-size)

Download

A+ A-