client/src/js/edit/editPage.js
//New Implementation to increment and decrement size of UI.
New Implementation to increment and decrement size of UI.
New Implementation to increment and decrement size of UI .
function changeTSize(num, className = null) {
    var elems = document.querySelectorAll(".appBody *, .nav-link, button");
    var fontSizeString;
    var index = 0, length = elems.length;
    for (; index < length; index++) {
        if (elems[index] !== undefined) {
            fontSizeString = window
                .getComputedStyle(elems[index], null)
                .getPropertyValue("font-size", "important");
            var fontSize = parseFloat(fontSizeString);
            elems[index].style.fontSize = fontSize + num + "px";
        }
    }
    elems = document.querySelectorAll("img");
    index = 0;
    for (; index < length; index++) {
        if (elems[index] !== undefined) {
            fontSizeString = window
                .getComputedStyle(elems[index], null)
                .getPropertyValue("height", "important");
            var height = parseFloat(fontSizeString);
            elems[index].style.height = height + num + "px";
            fontSizeString = window
                .getComputedStyle(elems[index], null)
                .getPropertyValue("width", "important");
            var width = parseFloat(fontSizeString);
            elems[index].style.width = width + num + "px";
        }
    }
}
function changeTSize ( num , className = null ) { var elems = document . querySelectorAll ( ".appBody *, .nav-link, button" ) ; var fontSizeString ; var index = 0 , length = elems . length ; for ( ; index < length ; index ++ ) { if ( elems [ index ] !== undefined ) { fontSizeString = window . getComputedStyle ( elems [ index ] , null ) . getPropertyValue ( "font-size" , "important" ) ; var fontSize = parseFloat ( fontSizeString ) ; elems [ index ] . style . fontSize = fontSize + num + "px" ; } } elems = document . querySelectorAll ( "img" ) ; index = 0 ; for ( ; index < length ; index ++ ) { if ( elems [ index ] !== undefined ) { fontSizeString = window . getComputedStyle ( elems [ index ] , null ) . getPropertyValue ( "height" , "important" ) ; var height = parseFloat ( fontSizeString ) ; elems [ index ] . style . height = height + num + "px" ; fontSizeString = window . getComputedStyle ( elems [ index ] , null ) . getPropertyValue ( "width" , "important" ) ; var width = parseFloat ( fontSizeString ) ; elems [ index ] . style . width = width + num + "px" ; } } }
New Implementation to increment and decrement size of UI.
New Implementation to increment and decrement size of UI .
//Image