Skip to content

Instantly share code, notes, and snippets.

@jenter
Last active December 8, 2016 15:41
Show Gist options
  • Save jenter/a9e995a800fbac384a75 to your computer and use it in GitHub Desktop.
Save jenter/a9e995a800fbac384a75 to your computer and use it in GitHub Desktop.
(function ($, Drupal, window, document, undefined) {
/**
* Functionality for Nav bar
*/
Drupal.behaviors.NavigationBar = {
attach: function (context, settings) {
if (context === document) { // only fires on document load
// JS code goes in here
}
}
};
/**
* Adjustments for footer menu
*/
Drupal.behaviors.FooterMenu = {
attach: function (context, settings) {
if (context === document) { // only fires on document load
// JS code goes in here
}
}
};
})(jQuery, Drupal, this, this.document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment