Skip to content

Modularize Script in boneset.html#115

Merged
jacksayshi merged 2 commits intomainfrom
OneHundredThirteen
May 5, 2025
Merged

Modularize Script in boneset.html#115
jacksayshi merged 2 commits intomainfrom
OneHundredThirteen

Conversation

@Balijah
Copy link

@Balijah Balijah commented Apr 28, 2025

Fixes #113

Description

Addresses Issue #113 where we must modularize the js script in bonset.html. This includes breaking it up into separate files holding their own functionalities providing clear and concise structure.

1. What was Changed

bonset.html file was changed. The script was removed and split into separate files. A new directory named "js" was created which stores all the relevant js functions. Also "sidebar.js" was moved into the new js directory.

2. Why it was Changed

This change was made in order to follow proper software design principles. We modularized the functions to provide clear structure which allows for help in debugging and future extensions.

3. How it was Changed

This change was made by breaking the script within boneset.html into its own separate files that each hold their own functionality. All relevant files are kept in "js" directory under "templates" (check screenshot below"

4. Screenshots (if applicable)

Screenshot 2025-04-28 at 10 48 01 AM

…y. Same functionality should still apply and also moved sidebar into new directory that holds all relevant js files.
@Balijah Balijah requested a review from jacksayshi as a code owner April 28, 2025 15:48
Copy link
Collaborator

@jacksayshi jacksayshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Balijah for working on the issue. Here are couple of things :

  • In js directory, please make sure the file names are 'description.js' and 'dropdowns.js' (Because of the typo the functionality is not available in webpage)

  • Also, the original sidebar logic contained its own DOM it makes it hard to modularize. Please make this into an export function and import this in main.js so that we can maintain the sidebar and its functionality.

Other modules are well modularized. Thank you again for working on this. Please work on these changes so that we can close this issue

…on.js and dropdowns.js, changed sidebar.js and main.js so that sidebar.js can be exported and main.js can import. Full modularization should be acheived.
@jacksayshi jacksayshi merged commit e0206fa into main May 5, 2025
1 check failed
@leandrumartin leandrumartin deleted the OneHundredThirteen branch February 23, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Break down scrript.js logic into separate JS modules

2 participants