PageSourceSearch

https://astrologia.kobieta.pl/assets/bundles/publishermedia/js/con…/image_placeholder_controller-Mk6Pwqp.js

js kobieta.pl collected 2026-10-02 10:40:46 UTC 874 bytes, 1 lines download raw bytes

1import{Controller}from"@hotwired/stimulus";export default class extends Controller{static targets=["image"];connect(){if(!this.hasImageTarget||!this.imageTarget.complete)return;if(this.imageTarget.naturalWidth>0){this.markAsLoaded(this.imageTarget);return}this.markAsError(this.imageTarget)}load(e){this.markAsLoaded(e.currentTarget)}error(e){this.markAsError(e.currentTarget)}markAsLoaded(e){e.classList.add("publisher-image__img--loaded"),this.element.classList.remove("publisher-image-wrapper--loading","publisher-image-wrapper--error"),this.element.classList.add("publisher-image-wrapper--loaded")}markAsError(e){const t=e.closest("picture");this.element.classList.remove("publisher-image-wrapper--loading","publisher-image-wrapper--loaded"),this.element.classList.add("publisher-image-wrapper--error"),t&&t.querySelectorAll("source").forEach(e=>e.remove()),e.remove()}}

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.