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.