I have several buttons that perform similar tasks. Here’s a live example:
export function index001_mouseIn(event) {inDEXTmp = "001"; indexInit();}
export function index002_mouseIn(event) {inDEXTmp = "002"; indexInit();}
export function index003_mouseIn(event) {inDEXTmp = "003"; indexInit();}
export function index004_mouseIn(event) {inDEXTmp = "004"; indexInit();}
export function index005_mouseIn(event) {inDEXTmp = "005"; indexInit();}
I have many more buttons in this set. Is there a way to have all buttons in this set use the same export function or some variation of it? I want to “shrink” my code.