I don't know what and how to edit the code, but i know how to get the code.
Go to this website:
https://github.com/SebLague/Digital-Logic-Sim
Then click on the green "Code" button and then click "Download zip".
Then go to your file explorer and right click on the file and click "Unzip".
Then, finally go into the folder to edit the code.
(I don't know what to change in the folder though).