jQuery plugin fontSize
Hosted in: https://github.com/coto/fontsize
How to use:
- Include jquery.js and jquery.fontSize.js between tags.
- Give id's for both links, for example #increase (+) and #decrease (-)
- Initialize the plugin, like the folowing:
$(document).ready(function(){ $('#increase').fontSizer({ action: "up", max: 36 }); $('#decrease').fontSizer({ action: 'down' }); }); - 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)