madelinelise
2/21/2020 - 2:21 PM

Drupal Behaviors

!((document, Drupal, $) => {
  'use strict';

  /**
   * Use this to describe what your behavior does.
   */
  Drupal.behaviors.heroVideo = {

    attach: function(context) {
      // If you don't need jQuery:
      // 1. Remove the `jQuery` and `$` refrences from this file.
      // 2. Remove the `core/jquery` dependency from the heroVideo library
      //    within the au_theme.libraries.yml file.
    }
  };
})(document, Drupal, jQuery);
hero-video:
  css:
    component:
      dist/css/hero-video.css: {}
  js:
    dist/js/hero-video.js: {}
  dependencies:
    - core/drupal
    - core/jquery