I have to apply the accessibility feature to increase and decrease font. I currently have 3 buttons: Small Font, Normal Font and Large Font.
The idea is that when you click each button, its function is called in javascript. And that the font increases or decreases to a certain size and ready (not being able to increase 2px every time clicked, for example, 12 was right for 20 and so on).
What is complicating is that it is a large site, many classes, ids, lots of content.
I thought of making the change in the source through getElementsByTagName, but a same tag varies its size and available space according to the page.
For example, we have H1 with font 50 on a page and it can increase up to 60, 70, but we also have H1 with font 20 that increases up to 30 (otherwise it goes beyond page size and zoa everything).
What option do I have left then? Do class by class?