PageSourceSearch

https://laguna22.ru/templates/template96/js/flowtype.js?1787329963&v=20260902d

js laguna22.ru collected 2026-09-28 22:45:26 UTC 1,461 bytes, 48 lines download raw bytes

1/*
2* FlowType.JS v1.1
3* Copyright 2013-2014, Simple Focus http://simplefocus.com/
4*
5* FlowType.JS by Simple Focus (http://simplefocus.com/)
6* is licensed under the MIT License. Read a copy of the
7* license in the LICENSE.txt file or at
8* http://choosealicense.com/licenses/mit
9*
10* Thanks to Giovanni Difeterici (http://www.gdifeterici.com/)
11*/
12
13(function($) {
14   $.fn.flowtype = function(options) {
15
16// Establish default settings/variables
17// ====================================
18      var settings = $.extend({
19         maximum   : 9999,
20         minimum   : 1,
21         maxFont   : 9999,
22         minFont   : 1,
23         fontRatio : 35
24      }, options),
25
26// Do the magic math
27// =================
28      changes = function(el) {
29         var $el = $(el),
30            elw = $el.width(),
31            width = elw > settings.maximum ? settings.maximum : elw < settings.minimum ? settings.minimum : elw,
32            fontBase = width / settings.fontRatio,
33            fontSize = fontBase > settings.maxFont ? settings.maxFont : fontBase < settings.minFont ? settings.minFont : fontBase;
34         $el.css('font-size', fontSize + 'px');
35      };
36
37// Make the magic visible
38// ======================
39      return this.each(function() {
40      // Context for resize callback
41         var that = this;
42      // Make changes upon resize
43         $(window).resize(function(){changes(that);});
44      // Set changes on load
45         changes(this);
46      });
47   };
48}(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.