This is the Creative Commons JavaScript license selector in the form of a JavaScript widget.
Web browsers can only be expected to load a single file from us.
⛔ This project is deprecated by creativecommons/cc-license-chooser
The code is structured as follows:
- An HTML page includes
complete.js, which PHP renders- they can pass a variable on the query string to set the language, which is why we involve PHP
- an alternate design would be to include different static files:
complete.en.js, etc.
complete.jsloads the CSS and static JS files that hardly changecomplete.jsloadstemplate.js.var(for Apache Content Negotiation to pick a language) ortemplate.js.LANG_IDif a language was specified
All of our JS and HTML and CSS is prefixed with cc_js_ to avoid namespace
collisions with others' applications.
Every night, if you run make -s here, it'll update the translations and
jurisdiction info.
- http://www.html2dom.com/html2dom.js gave me
html2dom.js. The author writes:
I’m not familiar with the all license options, so I don’t even bother. Everything on posted this site is public domain (http://www.phpied.com/html2dom/)