Chris@0: // Allow other JavaScript libraries to use $. Chris@0: if (window.jQuery) { Chris@0: jQuery.noConflict(); Chris@0: } Chris@0: Chris@0: // Class indicating that JS is enabled; used for styling purpose. Chris@0: document.documentElement.className += ' js'; Chris@0: Chris@0: // JavaScript should be made compatible with libraries other than jQuery by Chris@0: // wrapping it in an anonymous closure. Chris@0: Chris@17: (function(domready, Drupal, drupalSettings) { Chris@0: // Attach all behaviors. Chris@0: domready(() => { Chris@0: Drupal.attachBehaviors(document, drupalSettings); Chris@0: }); Chris@17: })(domready, Drupal, window.drupalSettings);