danielebarchiesi@2: /** danielebarchiesi@2: * @file danielebarchiesi@2: * A JavaScript file for the theme. danielebarchiesi@2: * danielebarchiesi@2: * In order for this JavaScript to be loaded on pages, see the instructions in danielebarchiesi@2: * the README.txt next to this file. danielebarchiesi@2: */ danielebarchiesi@2: danielebarchiesi@2: // JavaScript should be made compatible with libraries other than jQuery by danielebarchiesi@2: // wrapping it with an "anonymous closure". See: danielebarchiesi@2: // - https://drupal.org/node/1446420 danielebarchiesi@2: // - http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth danielebarchiesi@2: (function ($, Drupal, window, document, undefined) { danielebarchiesi@2: danielebarchiesi@2: danielebarchiesi@2: // To understand behaviors, see https://drupal.org/node/756722#behaviors danielebarchiesi@2: Drupal.behaviors.my_custom_behavior = { danielebarchiesi@2: attach: function(context, settings) { danielebarchiesi@2: danielebarchiesi@2: // Place your code here. danielebarchiesi@2: danielebarchiesi@2: } danielebarchiesi@2: }; danielebarchiesi@2: danielebarchiesi@2: danielebarchiesi@2: })(jQuery, Drupal, this, this.document);