PageSourceSearch

https://ocupat.es/assets/controllers/queue_panel_controller-110e4569.js

js ocupat.es collected 2026-09-27 10:11:10 UTC 873 bytes, 24 lines download raw bytes

1// app/javascript/controllers/queue_panel_controller.js
2import { Controller } from "@hotwired/stimulus"
3
4export default class extends Controller {
5  static targets = ["container", "chevron", "frame"]
6  static values = { src: String, open: Boolean }
7
8  loadAndToggle() {
9    // Abrir
10    if (!this.openValue) {
11      this.openValue = true
12      if (this.hasContainerTarget) this.containerTarget.classList.remove("hidden")
13      if (this.hasFrameTarget && !this.frameTarget.hasAttribute("src")) {
14        this.frameTarget.setAttribute("src", this.srcValue)
15      }
16      if (this.hasChevronTarget) this.chevronTarget.textContent = "▲"
17      return
18    }
19    // Cerrar
20    this.openValue = false
21    if (this.hasContainerTarget) this.containerTarget.classList.add("hidden")
22    if (this.hasChevronTarget) this.chevronTarget.textContent = "▼"
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.