PageSourceSearch

https://windi.njatob.org/assets/controllers/dropdown_controller-9b…c9100dd362156e5b4987f3b4538a7c8e6b2bab04.js

js njatob.org collected 2026-10-02 06:40:48 UTC 444 bytes, 20 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2import { useTransition } from 'stimulus-use'
3
4export default class extends Controller {
5  static targets = [ "dropdown" ]
6
7  connect() {
8    useTransition(this, { element: this.dropdownTarget })
9  }
10
11  toggle() {
12    this.toggleTransition()
13  }
14
15  hide (event) {
16    if (!this.element.contains(event.target) && !this.dropdownTarget.classList.contains('hidden')) {
17      this.leave()
18    }
19  }
20};

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.