Currently, all the code related to the modals and feedback functionality exists in a single file, _exercise_functions.html_. This approach can make the codebase harder to maintain and update in the future. It would be beneficial to refactor the code into seperate files, following a more modular approach.
Proposed solution
Create seperate HTML and Javascript files for each modal and functionality.
Abstract out common code, such as modal open/close functions, into a shared utility file.
Place these files in the relevant directories.
Related files
_exercise_functions.html_
Note:
Consider backward compatibtility and ensure any neccessary changes to existing code references are addressed during the refactoring process.
Include placeholder data types for the dummy variables, since these will eventually be connected to the backend
Currently, all the code related to the modals and feedback functionality exists in a single file, _exercise_functions.html_. This approach can make the codebase harder to maintain and update in the future. It would be beneficial to refactor the code into seperate files, following a more modular approach.
Proposed solution
Related files
_exercise_functions.html_
Note:
Consider backward compatibtility and ensure any neccessary changes to existing code references are addressed during the refactoring process.
Include placeholder data types for the dummy variables, since these will eventually be connected to the backend