Add it to your own website

If you run a website, you can give every visitor the same −/+ text-size control without them installing anything. Add one line to your pages, anywhere in <head> or before </body>:

<script src="https://narve.github.io/text-size-adjuster/embed/text-size-adjuster.js"></script>

That's all. The control appears in the bottom-right corner, scales your page's text while keeping headings bigger than body text, and doesn't change your layout's width. See it on a demo page.

Options

Set them as attributes on the script tag:

<script
  src="https://narve.github.io/text-size-adjuster/embed/text-size-adjuster.js"
  data-position="top-left"
  data-show="on-zoom"
></script>

…or as parameters on the script's address, if attributes are awkward in your setup:

<script src="https://narve.github.io/text-size-adjuster/embed/text-size-adjuster.js?position=tl&show=on-zoom"></script>
Option Values Default
position tl, tr, bl, br bottom-right
show always, on-zoom always

position also accepts the long forms top-left, top-right, bottom-left and bottom-right. on-zoom keeps the control hidden until the visitor zooms in (pinch, or browser zoom). If an option is set both ways, the attribute wins. Unknown values are ignored.

Good to know: