Last active
December 8, 2016 15:41
-
-
Save jenter/a9e995a800fbac384a75 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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