Skip to content

Commit

Permalink
LO: add license
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaong committed Feb 2, 2011
1 parent b12159c commit e39e0f5
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 9 deletions.
20 changes: 20 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright (c) 2011 Luca Ongaro

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 changes: 9 additions & 9 deletions README.textile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
h1. jQCloud: beautiful word clouds with jQuery

jQCloud is a jQuery plugin that draws pure HTML and CSS word clouds shaped like a cloud (otherwise, why would we call them word clouds?). Words can optionally be linked to URLs.
jQCloud is a jQuery plugin that builds pure HTML and CSS word clouds shaped like a cloud (otherwise, why would we call them word clouds?). Words can optionally be linked to URLs.

h2. Installation

Expand All @@ -16,14 +16,14 @@ Once you imported the .js an .css files, drawing a cloud is as simple as this:
<pre><code>
<div id="wordcloud" style="width: 750px; height: 500px; position: relative;"></div>
<script type="text/javascript">
//
// Create an array of word objects to be passed to jQCloud, specifying for each word in the cloud the following attributes:
//
// text: [mandatory] string containing the word(s)
// weight: [mandatory] number (integer or float) defining the relative importance of the word
// (such as the number of occurrencies, etc.). The range of values is arbitrary.
// url: [optional] a URL to which the word must be linked. It will be used as the href attribute of an HTML anchor.
//
/*!
* Create an array of word objects to be passed to jQCloud, specifying for each word in the cloud the following attributes:
*
* text: [mandatory] string containing the word(s)
* weight: [mandatory] number (integer or float) defining the relative importance of the word
* (such as the number of occurrencies, etc.). The range of values is arbitrary.
* url: [optional] a URL to which the word must be linked. It will be used as the href attribute of an HTML anchor.
*/
var word_list = new Array(
{text: "Lorem", weight: 15},
{text: "Ipsum", weight: 9, url: "http://jquery.com/"},
Expand Down
8 changes: 8 additions & 0 deletions jqcloud/jqcloud.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*!
* jQCloud Plugin for jQuery
*
* Copyright 2011, Luca Ongaro
* Licensed under the MIT license.
*
* Date: Wed Feb 02 11:12:34 2011 +0100
*/
(function( $ ){
$.fn.jQCloud = function(word_array) {
// Reference to the container element
Expand Down
8 changes: 8 additions & 0 deletions jqcloud/jqcloud.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e39e0f5

Please sign in to comment.