drupal.init.js 727 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/2815083
  5. * @preserve
  6. **/
  7. if (window.jQuery) {
  8. jQuery.noConflict();
  9. }
  10. document.documentElement.className += ' js';
  11. (function (Drupal, drupalSettings) {
  12. var domReady = function domReady(callback) {
  13. if (document.readyState !== 'loading') {
  14. callback();
  15. } else {
  16. var listener = function listener() {
  17. callback();
  18. document.removeEventListener('DOMContentLoaded', listener);
  19. };
  20. document.addEventListener('DOMContentLoaded', listener);
  21. }
  22. };
  23. domReady(function () {
  24. Drupal.attachBehaviors(document, drupalSettings);
  25. });
  26. })(Drupal, window.drupalSettings);