PageSourceSearch

https://docs.mredutainment.com/assets/controllers/fullscreen_controller-e4a3fba2.js

js mredutainment.com collected 2026-10-09 22:14:12 UTC 412 bytes, 19 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2
3export default class extends Controller {
4  static targets = ["button"]
5
6  connect() {
7    if (!this.element.requestFullscreen) {
8      this.buttonTarget.remove()
9    }
10  }
11
12  toggle() {
13    if (!document.fullscreenElement) {
14      document.documentElement.requestFullscreen()
15    } else if (document.exitFullscreen) {
16      document.exitFullscreen()
17    }
18  }
19}

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.