$w.onReady(function () { // Function to increase font size $w("#buttonIncreaseFontSize").onClick(() => { let currentSize = $w("#content").style.fontSize; $w("#content").style.fontSize = (parseInt(currentSize) + 1) + "px"; }); // Function to toggle high contrast $w("#buttonToggleHighContrast").onClick(() => { $w("#content").style.backgroundColor = "black"; $w("#content").style.color = "white"; }); });
top of page
bottom of page