I am new to moodle. I have a requirement to run a js every time a user clicks on a download file or watch a video. I don't know where or how to add these files.
I have seen how $page is used.
But is there a global location, like the, master page in .net?