GithubHelp home page GithubHelp logo

bhanditz / licensechooser.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from creativecommons/cc-license-chooser

0.0 2.0 0.0 959 KB

License: GNU General Public License v2.0

Makefile 4.59% PHP 0.64% JavaScript 8.42% C# 4.36% Emacs Lisp 4.63% Hy 4.35% MAXScript 4.37% NewLisp 4.39% Perl 6 4.35% Slash 4.39% HTML 2.07% SystemVerilog 4.36% Python 4.48% CSS 0.36% XSLT 40.32% Shell 0.02% Smalltalk 3.90%

licensechooser.js's Introduction

Updates

This is an updated version of the JavaScript license chooser.

  • It only shows 4.0 licenses
  • It can show CC0 as well
  • Only in en_US right now

If you're already using the code, you might find this hosted version useful:

http://api.creativecommons.org/jswidget/tags/mattl/complete.js?locale=en_US


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.

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.js loads the CSS and static JS files that hardly change
  • complete.js loads template.js.var (for Apache Content Negotiation to pick a language) or template.js.LANG_ID if 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.

CREDITS

http://www.html2dom.com/html2dom.js gave me html2dom.js. The author writes at http://www.phpied.com/html2dom/: "I’m not familiar with the all license options, so I don’t even bother. Everything on posted this site is public domain"

licensechooser.js's People

Contributors

mattl avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.