From 7a7131e4ceec7067cb5594fa604ae409dc44617f Mon Sep 17 00:00:00 2001 From: BRNSystems <70092437+BRNSystems@users.noreply.github.com> Date: Sun, 16 Jan 2022 18:24:13 +0100 Subject: [PATCH] remove unnecsesary lib --- index.html | 1 - jquery.fittext.js | 43 ------------------------------------------- 2 files changed, 44 deletions(-) delete mode 100644 jquery.fittext.js diff --git a/index.html b/index.html index 09ee8bc..66120da 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,6 @@ - diff --git a/jquery.fittext.js b/jquery.fittext.js deleted file mode 100644 index 0b3ddef..0000000 --- a/jquery.fittext.js +++ /dev/null @@ -1,43 +0,0 @@ -/*global jQuery */ -/*! -* FitText.js 1.2 -* -* Copyright 2011, Dave Rupert http://daverupert.com -* Released under the WTFPL license -* http://sam.zoy.org/wtfpl/ -* -* Date: Thu May 05 14:23:00 2011 -0600 -*/ - -(function( $ ){ - - $.fn.fitText = function( kompressor, options ) { - - // Setup options - var compressor = kompressor || 1, - settings = $.extend({ - 'minFontSize' : Number.NEGATIVE_INFINITY, - 'maxFontSize' : Number.POSITIVE_INFINITY - }, options); - - return this.each(function(){ - - // Store the object - var $this = $(this); - - // Resizer() resizes items based on the object width divided by the compressor * 10 - var resizer = function () { - $this.css('font-size', Math.max(Math.min($this.width() / (compressor*10), parseFloat(settings.maxFontSize)), parseFloat(settings.minFontSize))); - }; - - // Call once to set. - resizer(); - - // Call on resize. Opera debounces their resize by default. - $(window).on('resize.fittext orientationchange.fittext', resizer); - - }); - - }; - -})( jQuery );