PageSourceSearch

https://www.impactpool.org/assets/controllers/see_more_controller-b171e6f9.js

js impactpool.org collected 2026-09-24 18:26:42 UTC 538 bytes, 23 lines download raw bytes

1import { Controller } from "@hotwired/stimulus";
2
3export default class extends Controller {
4  static targets = ["events", "button"];
5
6  more(event) {
7    event.preventDefault();
8
9    this.eventsTarget.querySelectorAll(".event.hidden").forEach((event, index) => {
10      if (index < 3) {
11        event.classList.remove("hidden");
12      }
13    });
14
15    this.toggleButton();
16  }
17
18  toggleButton() {
19    if (this.eventsTarget.querySelectorAll(".event.hidden").length === 0) {
20      this.buttonTarget.setAttribute("disabled", true);
21    }
22  }
23}

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.