PageSourceSearch

https://www.elle.pl/assets/bundles/publishermedia/js/components/media/mediaGalleryValidation-PpsXL8y.js

js elle.pl collected 2026-10-02 04:06:03 UTC 742 bytes, 1 lines download raw bytes

1import{showFlashMessages,deleteFlashMessages}from"publishercore/flashes";import{translations}from"./translation.js";const MIN_IMAGE_WIDTH=1200,ALERT_HIGHLIGHT_DURATION=1e4;export function addImageListener(e){const t=$("#"+e+"_collection");t.on("sortupdate.gallery gallery:changed",function(){deleteFlashMessages();const e=t.find(".inline-gallery-item").first();if(!e.length)return;let n;try{n=JSON.parse(e.attr("data-media"))}catch{return}n.width<MIN_IMAGE_WIDTH&&(showFlashMessages({warning:translations.warningMessage}),window.scrollTo({top:0,behavior:"smooth"}),e.addClass("alert-image-border"),clearTimeout(e.data("alertTimer")),e.data("alertTimer",setTimeout(function(){e.removeClass("alert-image-border")},ALERT_HIGHLIGHT_DURATION)))})}

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.