PageSourceSearch

https://filmhubnorth.org.uk/assets/controllers/dropdown_controller-87d6f78a.js

js filmhubnorth.org.uk collected 2026-10-02 07:01:15 UTC 508 bytes, 24 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2
3export default class extends Controller {
4  static targets = ["menu"];
5  static values = { open: Boolean };
6
7  connect() {
8    if (this.openValue) {
9      this.menuTarget.classList.remove("hidden");
10    } else {
11      this.menuTarget.classList.add("hidden");
12    }
13  }
14
15  toggle() {
16    this.menuTarget.classList.toggle("hidden");
17  }
18
19  hide(event) {
20    if (!this.element.contains(event.target)) {
21      this.menuTarget.classList.add("hidden");
22    }
23  }
24}

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.