PageSourceSearch

https://www.vitec-fixit.com/Dist/announcement-bar.e89781f4de5a6e0d2354.js

js vitec-fixit.com collected 2026-10-09 05:22:55 UTC 1,089 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkvitectemplatesite=self.webpackChunkvitectemplatesite||[]).push([[382],{3228:(e,t,s)=>{s.r(t),s.d(t,{AnnouncementBar:()=>i});class i{constructor(){if(this.el=document.querySelector(".announcement-bar"),!this.el)return;this.removed=!1,this.id=this.el.dataset.id,this.storageName="AnnouncementBar",this.items=[],this.offset=115;const e=sessionStorage.getItem(this.storageName);e&&(this.items=JSON.parse(e),this.items.includes(this.id))?this.remove():(setTimeout(this.show,1e3),this.closeBtn=this.el.querySelector(".announcement-bar__close"),this.closeBtn&&this.closeBtn.addEventListener("click",e=>{e.preventDefault(),this.hide()}),window.addEventListener("scroll",()=>{window.scrollY>this.offset?this.el.classList.add("hidden"):this.el.classList.remove("hidden")}))}show(){document.body.dataset.announcementbar=!0}hide(){this.store(),document.body.dataset.announcementbar=!1,setTimeout(()=>{this.remove()},2e3)}store(){this.items.push(this.id),sessionStorage.setItem(this.storageName,JSON.stringify(this.items))}remove(){this.el.remove(),this.removed=!0}}}}]);

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.