brown.js 296 B

123456789
  1. (function ($) {
  2. Drupal.behaviors.jsWeightsBrown = {
  3. attach: function (context, settings) {
  4. var weight = settings.jsWeights.brown;
  5. var newDiv = $('<div />').css('color', 'brown').html('I have a weight of ' + weight);
  6. $('#js-weights').append(newDiv);
  7. }
  8. };
  9. })(jQuery);