PageSourceSearch

https://dialog.bamble.kommune.no/scroll-buttons-92d42db7.js

js bamble.kommune.no collected 2026-09-24 21:26:49 UTC 1,400 bytes, 1 lines download raw bytes

1import{r as t,i as o,x as e,E as i,_ as s,t as n}from"./custom-element-f942355b.js";import{n as l}from"./property-98bc03ee.js";import{T as r}from"./traversal.helper-0bd2d65c.js";import{m as a}from"./main-5f540a2f.js";import{u as c,l as p}from"./localized-decorator-954945dd.js";let u=class extends t{static{this.styles=o`:host{display:block}.action-buttons button{left:-999px;position:absolute;top:auto;width:1px;height:1px;overflow:hidden;z-index:-999}.action-buttons button:focus{background:#fff;color:#00f;left:0;top:0;width:auto;height:auto;overflow:auto;margin:10px;padding:5px;font-size:1.4em;z-index:999}`}scrollToElement(t){const o=r.findElementInShadowDom(t,document);if(o){const t=r.findAllFocusableElements(o);t.length>0&&(t[0].focus(),o.scrollIntoView({behavior:"smooth"}))}}constructor(){super(),this.isPreview=!1,c(this)}render(){return e`<div class="action-buttons"><button @click="${()=>this.scrollToElement("header")}">${a("Hopp til header")}</button> ${this.isPreview?e`<button @click="${()=>this.scrollToElement("navigation")}">${a("Hopp til navigasjon")}</button>`:i} <button @click="${()=>this.scrollToElement("main")}">${a("Hopp til hovedinnhold")}</button> <button @click="${()=>this.scrollToElement("footer")}">${a("Hopp til bunntekst")}</button></div>`}};s([l({type:Boolean})],u.prototype,"isPreview",void 0),u=s([p(),n("ia-scroll-buttons")],u);var d=u;export{d as default};

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.