﻿var min = 8;
var max = 32;
function increaseFontSize() {

    var p = document.getElementsByTagName('p');
    for (i = 0; i < p.length; i++) {

        if (p[i].style.fontSize) {

            var s = parseInt(p[i].style.fontSize.replace("px", ""));

            var s = parseInt(p[i].style.fontSize.replace("medium", "14"));
            
        } else {

            var s = 16;
        }
        if (s != max) {

            s += 1;
        }
        p[i].style.fontSize = s + "px"

    }
}

function decreaseFontSize() {
    var p = document.getElementsByTagName('p');
    for (i = 0; i < p.length; i++) {
      
        if (p[i].style.fontSize) {

            var s = parseInt(p[i].style.fontSize.replace("px", ""));
            var s = parseInt(p[i].style.fontSize.replace("medium", "14"));
        } else {

            var s = 13;
        }
        if (s != min) {

            s -= 1;
        }
        p[i].style.fontSize = s + "px"

    }
}


function fontSize() {
    var p = document.getElementsByTagName('p');
    for (i = 0; i < p.length; i++) {

        if (p[i].style.fontSize) {
            var s = parseInt(p[i].style.fontSize.replace("px", ""));
        } else {

            var s = 13;
        }
        var s = 13;
        p[i].style.fontSize = "medium";

    }
}

 

  

