Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function ($, Drupal) {
- Drupal.behaviors.promotionalOverlayBlock = {
- attach: function(context, settings) {
- console.log("hello world")
- }
- };
- })(jQuery, Drupal);
- mymodule/js/overlayblock.js
- mymodule:
- js:
- js/overlayblock.js: {}
- dependencies:
- - core/jquery
- - core/jquery.once
- - core/drupalSettings
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement