PageSourceSearch

https://volsker.ru/wp-content/themes/pen/assets/js/plugins/jquery.fittext.js?ver=1.2

js volsker.ru collected 2026-10-08 13:01:20 UTC 976 bytes, 42 lines download raw bytes

vendor: 976 bytes, lines 1-42
1/*global jQuery */
2/*!
3* FitText.js 1.2
4*
5* Copyright 2011, Dave Rupert http://daverupert.com
6* Released under the WTFPL license
7* http://sam.zoy.org/wtfpl/
8*
9*/
10
11(function( $ ){
12
13	$.fn.fitText = function( kompressor, options ) {
14
15		// Setup options
16		var compressor = kompressor || 1,
17				settings = $.extend({
18					'minFontSize' : Number.NEGATIVE_INFINITY,
19					'maxFontSize' : Number.POSITIVE_INFINITY
20				}, options);
21
22		return this.each(function(){
23
24			// Store the object
25			var $this = $(this);
26
27			// Resizer() resizes items based on the object width divided by the compressor * 10
28			var resizer = function () {
29				$this.css('font-size', Math.max(Math.min($this.width() / (compressor*10), parseFloat(settings.maxFontSize)), parseFloat(settings.minFontSize)));
30			};
31
32			// Call once to set.
33			resizer();
34
35			// Call on resize. Opera debounces their resize by default.
36			$(window).on('resize.fittext orientationchange.fittext', resizer);
37
38		});
39
40	};
41
42})( jQuery );

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.