rivet-1.0.x-dev/js/init.js

js/init.js
/**
 * @file
 * Initializes Rivet in the context of a Drupal site.
 */
(function (Drupal, once, Rivet) {
  Drupal.behaviors.rivet_init = {
    attach(context) {
      // Only initialize Rivet once on the document
      if (context === document) {
        once('rivet-init', 'body', context).forEach(function () {
          Rivet.init();
        });
      }
    },
  };
})(Drupal, once, window.Rivet);

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc