<!DOCTYPE html><html><head><style>p {font-size: "large";}</style></head><body>
<button type="button"onclick="resizeText(1);">Increase</button><button type="button"onclick="resizeText(-1);">Decrease</button> <div><p id="mytext">Hello World</p></div>
</body><script>
function resizeText(multiplier) { if (document.getElementById("mytext").style.fontSize == "") { document.getElementById("mytext").style.fontSize = "1.0em"; } document.getElementById("mytext").style.fontSize = parseFloat(document.getElementById("mytext").style.fontSize) + (multiplier * 0.2) + "em";}</script></html>
<!DOCTYPE html><html><head><style>p {font-size: "large";}</style></head><body>
<div><p id="mytext">Hello World</p></div>
</body>
<script>window.setInterval(function(){ if (window.AppInventor.getWebViewString() == "plus" ) { resizeText(1); window.AppInventor.setWebViewString("null"); } else if (window.AppInventor.getWebViewString() == "minus" ) { resizeText(-1); window.AppInventor.setWebViewString("null"); } }, 500);
The aia files will be attached after I submit this post.