This demo: Access ArcGIS Online items using OAuthentication - 4.13
is my starting sample to build my own application.
It uses require(), what seems to be requireJS.
I am new to that, sorry.
I want to set onclickhandlers in the example, so clicking on the thumbnail should open a new map.
How can I call a function in the scope of the require() statement, from an HTML element (onclick), that is outside the scope of the require() statement?
Help appreciated.