{"id":18610174,"url":"https://github.com/creativecommons/cc-license-chooser","last_synced_at":"2026-01-24T14:40:56.877Z","repository":{"id":4976015,"uuid":"46296768","full_name":"creativecommons/cc-license-chooser","owner":"creativecommons","description":"Creative Commons JavaScript license selector in the form of a JavaScript widget","archived":false,"fork":false,"pushed_at":"2024-04-01T15:13:17.000Z","size":1093,"stargazers_count":16,"open_issues_count":3,"forks_count":24,"subscribers_count":12,"default_branch":"main","last_synced_at":"2024-12-27T01:40:24.124Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"XSLT","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/creativecommons.png","metadata":{"funding":{"github":["creativecommons"],"custom":["https://creativecommons.org/donate"]},"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null}},"created_at":"2015-11-16T19:24:04.000Z","updated_at":"2024-08-13T10:44:39.000Z","dependencies_parsed_at":"2023-07-06T13:46:23.650Z","dependency_job_id":null,"html_url":"https://github.com/creativecommons/cc-license-chooser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creativecommons%2Fcc-license-chooser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creativecommons%2Fcc-license-chooser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creativecommons%2Fcc-license-chooser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creativecommons%2Fcc-license-chooser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/creativecommons","download_url":"https://codeload.github.com/creativecommons/cc-license-chooser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239400604,"owners_count":19632050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T03:08:47.670Z","updated_at":"2025-11-02T20:30:37.041Z","avatar_url":"https://github.com/creativecommons.png","language":"XSLT","funding_links":["https://github.com/sponsors/creativecommons","https://creativecommons.org/donate"],"categories":[],"sub_categories":[],"readme":"# cc-license-chooser\n\nThis is the Creative Commons JavaScript license selector in the form of a\nJavaScript widget.\n\nWeb browsers can only be expected to load a single file from us.\n\n## Code of conduct\n\n[`CODE_OF_CONDUCT.md`][org-coc]:\n\u003e The Creative Commons team is committed to fostering a welcoming community.\n\u003e This project and all other Creative Commons open source projects are governed\n\u003e by our [Code of Conduct][code_of_conduct]. Please report unacceptable\n\u003e behavior to [conduct@creativecommons.org](mailto:conduct@creativecommons.org)\n\u003e per our [reporting guidelines][reporting_guide].\n\n[org-coc]: https://github.com/creativecommons/.github/blob/main/CODE_OF_CONDUCT.md\n[code_of_conduct]: https://opensource.creativecommons.org/community/code-of-conduct/\n[reporting_guide]: https://opensource.creativecommons.org/community/code-of-conduct/enforcement/\n\n\n## Contributing\n\nSee [`CONTRIBUTING.md`][org-contrib].\n\n[org-contrib]: https://github.com/creativecommons/.github/blob/main/CONTRIBUTING.md\n\n## Updates\n\nThis is an updated version of the JavaScript license chooser.\n- It only shows 4.0 licenses\n- It can show CC0 as well\n- Only in en_US right now\n\nIf you're already using the code, you might find this hosted version useful:\n- http://api.creativecommons.org/jswidget/tags/mattl/complete.js?locale=en_US\n\n\n## Overview\n\nThe code is structured as follows:\n- An HTML page includes `complete.js`, which PHP renders\n  - they can pass a variable on the query string to set the language, which is\n    why we involve PHP\n  - an alternate design would be to include different static files:\n    `complete.en.js`, etc.\n- `complete.js` loads the CSS and static JS files that hardly change\n- `complete.js` loads `template.js.var` (for Apache Content Negotiation to pick\n  a language) or `template.js.LANG_ID` if a language was specified\n\nAll of our JS and HTML and CSS is prefixed with `cc_js_` to avoid namespace\ncollisions with others' applications.\n\nEvery night, if you run `make -s` here, it'll update the translations and\njurisdiction info.\n\n\n## Local Development\n\nTo run this project locally, install Python requirements listed in `requirements.txt` using:\n`pip install -r requirements.txt`.\n\n[SimpleTAL](https://www.owlfish.com/software/simpleTAL/) is not available on\nPyPI and must be installed manually by downloading the latest release and\ninstalling it using `python setup.py install` (make sure to download the Python\n2.7 compatible release, not the latest release). Using a virtualenv is\nrecommended, if you don't install SimpleTAL in a virtualenv, you may have to\nadd its install location to your environment's `PYTHONPATH`.\n\n\n## Renamed\n\nThis project was previously named `LicenseChooser.js`. The name was updated to\n`cc-license-chooser` in 2019 March to follow current JavaScript best\npractices.\n\n\n## Old Version\n\nThe old version of the JavaScript license chooser:\n- [cc-archive/jswidget](https://github.com/cc-archive/jswidget)\n\n\n## Credits\n\n- http://www.html2dom.com/html2dom.js gave me `html2dom.js`. The author writes:\n\u003e I’m not familiar with the all license options, so I don’t even bother.\n\u003e Everything on posted this site is public domain\n\u003e (http://www.phpied.com/html2dom/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreativecommons%2Fcc-license-chooser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcreativecommons%2Fcc-license-chooser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreativecommons%2Fcc-license-chooser/lists"}