Permalink
Browse files

javascript library and demo for wordclouds

  • Loading branch information...
1 parent eb885db commit afc07e070a3a88e064254c1382cc4a024518aa23 @jessykate committed Jul 30, 2012
Showing with 10,713 additions and 0 deletions.
  1. +31 −0 wordjs/index.html
  2. +9,404 −0 wordjs/js/vendor/jquery-1.7.2.js
  3. +999 −0 wordjs/js/vendor/underscore.js
  4. +233 −0 wordjs/js/vendor/word.js
  5. +46 −0 wordjs/todo
View
@@ -0,0 +1,31 @@
+<html>
+ <head>WordJS Demo</head>
+ <style>
+ #67509 .some-class {
+ background-color: red;
+ }
+ </style>
+ <body>
+ <div id="67509">
+ <div>
+ <div class="some-class">
+ <textarea id="demotext" rows=20 cols=80></textarea>
+ <br>
+ <input id="wordcloud-demo" type="submit" value="Try It">
+ </div>
+ </div>
+ </div>
+ <div id="wordcloud">
+ </div>
+ <script type="text/javascript" src="js/vendor/jquery-1.7.2.js"></script>
+ <script type="text/javascript" src="js/vendor/underscore.js"></script>
+ <script type="text/javascript" src="js/vendor/word.js"></script>
+ <script>
+ $("#wordcloud-demo").click(function() {
+ content = $("#demotext").val();
+ var cloud = wordcloud(content, "700px","500px");
+ $("#wordcloud").html(cloud);
+ });
+ </script>
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit afc07e0

Please sign in to comment.