PageSourceSearch

https://thompson.hr/components/com_tz_portfolio_plus/templates/tz_musika/js/resizeimage.js

js thompson.hr collected 2026-10-02 10:27:22 UTC 1,766 bytes, 1 lines download raw bytes

1var resizeImage = function (widthImage, heightImage, widthStage, heightStage) {    var escImageX = widthStage / widthImage;    var escImageY = heightStage / heightImage;    var escalaImage = (escImageX > escImageY) ? escImageX : escImageY;    var widthV = widthImage * escalaImage;    var heightV = heightImage * escalaImage;    var posImageY = 0;    var posImageX = 0;    if (heightV > heightStage) {        posImageY = (heightStage - heightV) / 2;    }    if (widthV > widthStage) {        posImageX = (widthStage - widthV) / 2;    }    return {top: posImageY, left: posImageX, width: widthV, height: heightV};};function TzTemplateResizeImage(obj) {    var widthStage;    var heightStage;    var widthImage;    var heightImage;    obj.each(function (i, el) {        heightStage = jQuery(this).height();        widthStage = jQuery(this).width();        widthImage = jQuery(this).find('img').width();        heightImage = jQuery(this).find('img').height();        var tzimg = new resizeImage(widthImage, heightImage, widthStage, heightStage);        jQuery(this).find('img').css({top: tzimg.top, left: tzimg.left, width: tzimg.width, height: tzimg.height});    });}function TzTemplateResizeImageFlexSlideHome3(obj) {    var widthStage;    var heightStage;    var widthImage;    var heightImage;    obj.each(function (i, el) {        heightStage = jQuery(window).height();        widthStage = jQuery(window).width();        widthImage = jQuery(this).find('img').width();        heightImage = jQuery(this).find('img').height();        console.log(widthImage);        var tzimg = new resizeImage(widthImage, heightImage, widthStage, heightStage);        jQuery(this).find('img').css({top: tzimg.top, left: tzimg.left, width: tzimg.width, height: tzimg.height});    });}

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.