Mercurial > hg > mpiwgzen_wide
diff js/script.js @ 0:a3750d724105 default tip
initital
author | Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 02 Jun 2015 09:16:36 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/script.js Tue Jun 02 09:16:36 2015 +0200 @@ -0,0 +1,26 @@ +/** + * @file + * A JavaScript file for the theme. + * + * In order for this JavaScript to be loaded on pages, see the instructions in + * the README.txt next to this file. + */ + +// JavaScript should be made compatible with libraries other than jQuery by +// wrapping it with an "anonymous closure". See: +// - https://drupal.org/node/1446420 +// - http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth +(function ($, Drupal, window, document, undefined) { + + +// To understand behaviors, see https://drupal.org/node/756722#behaviors +Drupal.behaviors.my_custom_behavior = { + attach: function(context, settings) { + + // Place your code here. + + } +}; + + +})(jQuery, Drupal, this, this.document);