PageSourceSearch

https://cnhc.org.uk/assets/controllers/board_member_grid_controlle…8ed749994677b35bdc2782199cac39643a936a9b.js

js cnhc.org.uk collected 2026-10-02 03:31:58 UTC 662 bytes, 26 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2
3// Connects to data-controller="board-member-grid"
4export default class extends Controller {
5  static targets = ["expanded"]
6  connect() {
7    this.gridId = this.element.id
8  }
9  
10  open(e){
11    this.closeAll();
12    let memberId = e.target.getAttribute("member-id");
13    this.element.querySelector(`#grid-${this.gridId}-member-${memberId}`).hidden = false;
14    $('html,body').animate({
15      scrollTop: $(`#grid-${this.gridId}-member-${memberId}`).offset().top - 60
16   });
17  }
18  close(){
19    this.closeAll();
20  }
21  closeAll(){
22    this.expandedTargets.forEach(target => {
23      target.hidden = true
24    })
25  }
26};

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.