PageSourceSearch

https://tichehrozby.cz/wp-content/themes/skrollex/assets/js/widgets/fluid.js

js tichehrozby.cz collected 2026-10-07 00:19:02 UTC 632 bytes, 22 lines download raw bytes

1"use strict"; var $ = jQuery;
2module.exports = new (function(){
3	this.setup = function($context){
4		$context.find('.fluid *').each(function() {
5			var $el = $(this);
6			var $wrap = $el.parent('.fluid');
7			var newWidth = $wrap.width();
8			var ar = $el.attr('data-aspect-ratio');
9			if(!ar){
10				ar = this.height / this.width;
11				$el
12					// jQuery .data does not work on object/embed elements
13					.attr('data-aspect-ratio', ar)
14					.removeAttr('height')
15					.removeAttr('width');
16			}
17			var newHeight = Math.round(newWidth * ar);
18			$el.width(Math.round(newWidth)).height(newHeight);
19			$wrap.height(newHeight);
20		});
21	};
22})();

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.