PageSourceSearch

https://survivalbrasil.org/assets/controllers/numiko/mobile_nav_controller-9d45cd78.js

js survivalbrasil.org collected 2026-09-25 18:53:32 UTC 718 bytes, 24 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2
3// Connects to data-controller="numiko--mobile-nav"
4export default class extends Controller {
5  static targets = ['mobileNav']
6
7  connect () {
8    this.mobileNavTarget.addEventListener('show.bs.collapse', this.showMobileNav);
9    this.mobileNavTarget.addEventListener('hidden.bs.collapse', this.hideMobileNav);
10  }
11
12  disconnect () {
13    this.mobileNavTarget.removeEventListener('show.bs.collapse', this.showMobileNav)
14    this.mobileNavTarget.removeEventListener('hidden.bs.collapse', this.hideMobileNav)
15  }
16
17  showMobileNav () {
18    document.body.classList.add('with-mobile-nav')
19  }
20
21  hideMobileNav () {
22    document.body.classList.remove('with-mobile-nav')
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.