{# /** * @file * Default theme implementation for the JavaScript Example module's description. */ #} {% set js_colors = path('js_example.colors') %} {% set js_accordion = path('js_example.accordion') %} {% trans %}
Drupal includes jQuery and jQuery UI.
We have two examples of using these:
An accordion-style section reveal effect: This demonstrates calling a JavaScript function using Drupal rendering system.
Sorting according to numeric weight: This demonstrates attaching your own JavaScript code to individual page elements using Drupal rendering system.