PageSourceSearch

https://www.herningbib.dk/sites/default/files/asset_injector/js/li…-8b62fe7ccb731f56ed4c67d308ec9c9e.js?tlu0n7

js herningbib.dk collected 2026-09-24 21:10:59 UTC 628 bytes, 17 lines download raw bytes

1/* TRACKER LINKS INDE PÅ SELVE SIDEN - I <ARTICLE> */
2 if (document.querySelector('article')) {
3	document.querySelector('article').addEventListener('mouseup', function(event) {
4	  // Find nærmeste <a> element fra det klikkede element
5	  let link = event.target.closest('a');
6	  
7	  // Hvis et <a> element blev fundet indenfor artiklen
8	  if (link) {
9	    // Gem den aktuelle side-URL og href-attributten fra <a>
10	    const currentPageUrl = window.location.pathname;
11	    const linkHref = link.href;
12	    if (currentPageUrl != "" && linkHref != "") {
13	    	bstat('Klik på links', currentPageUrl, linkHref);
14	    }
15	  }
16	});
17}

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.