{# /** * @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:

  1. An accordion-style section reveal effect: This demonstrates calling a JavaScript function using Drupal rendering system.

  2. Sorting according to numeric weight: This demonstrates attaching your own JavaScript code to individual page elements using Drupal rendering system.

{% endtrans %}