Drupal investigation

drupal.init.js 539B

1234567891011121314151617181920
  1. // Allow other JavaScript libraries to use $.
  2. if (window.jQuery) {
  3. jQuery.noConflict();
  4. }
  5. // Class indicating that JS is enabled; used for styling purpose.
  6. document.documentElement.className += ' js';
  7. // JavaScript should be made compatible with libraries other than jQuery by
  8. // wrapping it in an anonymous closure.
  9. (function (domready, Drupal, drupalSettings) {
  10. 'use strict';
  11. // Attach all behaviors.
  12. domready(function () { Drupal.attachBehaviors(document, drupalSettings); });
  13. })(domready, Drupal, window.drupalSettings);