Hi, I've just deployed this excellent tool for resizing font, but I found a bug that happens when you refresh the page in which the html child element fonts are resized more than once for they are resized with the parent elements and its child elements.
So I had to change the tool code so that before retrieving the stored current_size, a reset is applied and then the current_size retrieval and application are done.
...
$(opcoes.btnMinusClasseId + ", " + opcoes.btnDefaultClasseId + ", " + opcoes.btnPlusClasseId).removeAttr("href");
$(opcoes.btnMinusClasseId + ", " + opcoes.btnDefaultClasseId + ", " + opcoes.btnPlusClasseId).css("cursor", "pointer");
// added lines begin
current_size = 0;
apply();
// added lines end
current_size = $.jStorage.get("jfontsize", 0);
if (current_size === (-opcoes.btnMinusMaxHits)) {
$(opcoes.btnMinusClasseId).addClass("jfontsize-disabled");
}
if (current_size === opcoes.btnPlusMaxHits) {
$(opcoes.btnPlusClasseId).addClass("jfontsize-disabled");
}
apply();
...
I hope I have contributed somehow to this very helpful tool. Thanks for sharing it. See ya.
HMP