1/** 2 * @file 3 * A JavaScript file for the theme. 4 * 5 * In order for this JavaScript to be loaded on pages, see the instructions in 6 * the README.txt next to this file. 7 */ 8 9// JavaScript should be made compatible with libraries other than jQuery by 10// wrapping it with an "anonymous closure". See: 11// - https://drupal.org/node/1446420 12// - http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth 13(function (Drupal) { 14 15 'use strict'; 16 17 // To understand behaviors, see https://drupal.org/node/756722#behaviors 18 Drupal.behaviors.dev_behavior = { 19 attach: function (context, settings) { 20 21 // Place your code here. 22 // .field--name-field-slides 23 // new Siema({ 24 // selector: '.field--name-field-slides', 25 // duration: 200, 26 // easing: 'ease-out', 27 // perPage: 1, 28 // startIndex: 0, 29 // draggable: true, 30 // multipleDrag: true, 31 // threshold: 20, 32 // loop: true, 33 // rtl: false, 34 // onInit: () => {}, 35 // onChange: () => {}, 36 // }); 37 38 } 39 }; 40 41 // We pass the parameters of this anonymous function are the global variables 42 // that this script depend on. For example, if the above script requires 43 // jQuery, you should change (Drupal) to (Drupal, jQuery) in the line below 44 // and, in this file's first line of JS, change function (Drupal) to 45 // (Drupal, $) 46})(Drupal);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.