You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Creative Commons License Chooser is meant to help people learn about CC licenses, and select the license that best fits their needs. The new version in this repo places greater importance on usability, and an educational experience of the six CC licenses.
About
Repository containing the source code for the new Creative Commons License Chooser.
The Creative Commons team is committed to fostering a welcoming community.
This project and all other Creative Commons open source projects are governed
by our Code of Conduct. Please report unacceptable
behavior to conduct@creativecommons.org
per our reporting guidelines.
Once changes are implemented here, they need to be updated within the /chooser directory within vocabulary-theme.
Final production changes are deployed within vocabulary-theme Releases, updated within index-dev-env, and finally deployed to index__stage and then index__prod environments; going LIVE at https://creativecommons.org/chooser.
Setup
open the src/index.html file within a browser to view the Chooser.
Structure
The initial markup is rendered via the index.html file. Visual display is derived from the style.css rules. Styles extend from src/vocabulary.
On initlialization the scripts.js functions set the correct fieldsets to default display; based on user provided actions through the stepper fieldsets will display or hide, exposing the relevant pathways to getting a tool recommendation. Correct pathways are located within the rawStatePathRoutes array. When a correct pathway matches the current state, the appropriate tool is matched and recommended, if the current state is not a known pathway the tool is set to unknown until the required input is given.
The main tool recommendation content is pulled via the appropriate <template> markup located within HTML. Additional information for the marking formats is also sourced from these <template> elements and the contents of the Attribution Details fields.
Marking formats are pulled from a combination of HTML markup and JS string interpolation found within the scripts.js file within the renderMarkingFormats function.