﻿$(document).ready(function() {
    var fonte = 11;
    var max = 16;
    var min = 9;
    var targets = '#texto';
    targets += ', #texto > h6';
    targets += ', #texto > h5';
    $('.maior').click(function() {
        if (fonte < max) {
            fonte = fonte + 1;
            $(targets).css({ 'font-size': fonte + 'px' });
        }
    });
    $('.menor').click(function() {
        if (fonte > min) {
            fonte = fonte - 1;
            $(targets).css({ 'font-size': fonte + 'px' });
        }
    });
});

