https://littlebirdelectronics.com.au/assets/controllers/ecommerce/auto_scroll_controller-c3ca922b.js
1import { Controller } from "@hotwired/stimulus" 2 3export default class extends Controller { 4 connect() { 5 this.scrollToBottom() 6 this.observer = new MutationObserver(() => this.scrollToBottom()) 7 this.observer.observe(this.element, { childList: true, subtree: true }) 8 } 9 10 disconnect() { 11 if (this.observer) this.observer.disconnect() 12 } 13 14 scrollToBottom() { 15 requestAnimationFrame(() => { 16 this.element.scrollTop = this.element.scrollHeight 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.