Sha256: bffd6dffb88c4e56a7d6a2ec1f287cc906c24c0a1ceb1fbcf96cde821e319b3c

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

// JQCloud
// ----------------------------------- 


(function(window, document, $, undefined){

  $(function(){

    //Create an array of word objects, each representing a word in the cloud
    var word_array = [
      {
        text: 'Lorem',
        weight: 13
        //link: 'http://themicon.co'
      }, {
        text: 'Ipsum',
        weight: 10.5
      }, {
        text: 'Dolor',
        weight: 9.4
      }, {
        text: 'Sit',
        weight: 8
      }, {
        text: 'Amet',
        weight: 6.2
      }, {
        text: 'Consectetur',
        weight: 5
      }, {
        text: 'Adipiscing',
        weight: 5
      }, {
        text: 'Sit',
        weight: 8
      }, {
        text: 'Amet',
        weight: 6.2
      }, {
        text: 'Consectetur',
        weight: 5
      }, {
        text: 'Adipiscing',
        weight: 5
      }
    ];

    if($.fn.jQCloud)
      $("#jqcloud").jQCloud(word_array, {
        width: 240,
        height: 200,
        steps: 7
      });

  });

})(window, document, window.jQuery);

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
radius-rails-3.1.4 app/assets/javascripts/radius-theme/modules/demo/demo-jqcloud.js