PageSourceSearch

https://szabo.jp/public/js/lightboxforimages.js

js szabo.jp collected 2026-10-07 21:52:11 UTC 654 bytes, 20 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function() {
2  var elements = document.querySelectorAll('img[src$="#lb"]');
3  elements.forEach(image => {
4    //image.classList.add("autogallery-img");
5    var parent = image.parentElement;
6    parent.classList.add("inline-image-parent");
7    var url = image.getAttribute('src');
8    var alt = image.getAttribute('alt');
9    var a = document.createElement("a");
10    a.href = url;
11    parent.replaceChild(a, image);
12    a.appendChild(image);
13    if(alt){
14      var p = document.createElement("p");
15      p.innerText = alt;
16      p.classList.add("text-after-img");
17      parent.appendChild(p);
18    }
19  });
20});

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.