1/* Source and licensing information for the line(s) below can be found at https://www.cusquena.com/modules/custom/abi_legal_d8/js/abi_legal_d8.js. */ 2// document.addEventListener('DOMContentLoaded', deployLegalDiv, false); 3 4// function deployLegalDiv () { 5// var acc = document.getElementsByClassName("legal_accordion"); 6// var i; 7 8// for (i = 0; i < acc.length; i++) { 9// acc[i].addEventListener("click", function() { 10// this.classList.toggle("active"); 11// var panel = this.nextElementSibling; 12// if (panel.style.display === "block") { 13// panel.style.display = "none"; 14// } else { 15// panel.style.display = "block"; 16// } 17// }); 18// } 19// } 20(function ($, Drupal, settings) { 21 'use strict'; 22 Drupal.behaviors.legal = { 23 attach: function (context, settings) { 24 if($(".legal_accordion").length){ 25 var acc = document.getElementsByClassName("legal_accordion"); 26 var i; 27 28 for (i = 0; i < acc.length; i++) { 29 acc[i].addEventListener("click", function() { 30 this.classList.toggle("active"); 31 var panel = this.nextElementSibling; 32 if (panel.style.display === "block") { 33 panel.style.display = "none"; 34 } else { 35 panel.style.display = "block"; 36 } 37 }); 38 } 39 } 40 }, 41 } 42})(jQuery, Drupal, drupalSettings); 43 44 45/* Source and licensing information for the above line(s) can be found at https://www.cusquena.com/modules/custom/abi_legal_d8/js/abi_legal_d8.js. */
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.