1import { Controller } from "@hotwired/stimulus" 2 3// Connects to data-controller="numiko--tab" 4export default class extends Controller { 5 static targets = ["tabAnchor"] 6 7 tabAnchorTargetConnected(element) { 8 if(element.getAttribute('href') === window.location.hash) { 9 element.scrollIntoView({ 10 behavior: 'smooth', 11 block: 'center', 12 inline: 'nearest' 13 }) 14 let tab = new bootstrap.Tab(element) 15 tab.show() 16 } 17 } 18}
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.