ruthmoog / portfolio

👋 My personal website
https://ruthmoog.dev
0 stars 0 forks source link

Add font-resize options #6

Open ruthmoog opened 3 years ago

ruthmoog commented 3 years ago

This can be added with JS, but also investigate options using pure HTML/CSS?

eg:

<script language="javascript" type="text/javascript">

  var fontSize = 24;
  var tags = document.getElementsByTagName('p');

  function incFontSize() {
    fontSize = fontSize + 4;
    for (var i=0; i<tags.length; ++i) {
    tags[i].style.fontSize = fontSize + "px";
    }
  }

    function decFontSize() {
    fontSize = fontSize - 4;
    for (var i=0; i<tags.length; ++i) {
        tags[i].style.fontSize = fontSize + "px";
    }
  }
</script>
ruthmoog commented 1 year ago

see singing for breathing:

`

`