PageSourceSearch

https://atilekt.ru/Moduls/Wysiwyg/wysiwig-image-fitsizes.js

js atilekt.ru collected 2026-10-02 17:11:59 UTC 956 bytes, 23 lines download raw bytes

1// Скрипт, который подгоняет размеры изображений
2/*
3$(function() {
4   var images = $('.box img');
5   images.bindImageLoad(function () {
6      var img = $(this);
7      var imgParent = img.parent();
8      if (imgParent != undefined) {
9         var maxWidth = imgParent.innerWidth();
10         if (maxWidth < img.outerWidth()) {
11            // если доступная ширина меньше картинки то меняем ее размер
12            img.removeAttr("style");
13            img.css({ "max-width": "100%", "width": 'expression("auto")' });
14         }
15         //console.log('src=' + img.attr('src') + "  width=:" + img.outerWidth() + "  height=:" + img.css("height") + " parent-width=:" + imgParent.innerWidth());
16      } else {
17         //console.log('src=' + img.attr('src') + "  width=:" + img.outerWidth() + "  height=:" + img.css("height"));
18      }
19   });
20
21});
22
23*/

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.