remove FitText.js

This commit is contained in:
nobody 2024-04-12 06:23:25 +02:00
parent 354e519ae9
commit cc9dacbde6
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
5 changed files with 2 additions and 18 deletions

View File

@ -321,7 +321,6 @@ mappings.cdn = {
'fancybox/{version}/jquery.fancybox.css': resources.fancyBoxCSS, 'fancybox/{version}/jquery.fancybox.css': resources.fancyBoxCSS,
'fastclick/{version}/fastclick.': resources.fastclick, 'fastclick/{version}/fastclick.': resources.fastclick,
'feather-icons/{version}/feather.': resources.feather, 'feather-icons/{version}/feather.': resources.feather,
'FitText.js/{version}/jquery.fittext.': resources.fitTextJs,
'flickity/{version}/flickity.pkgd.': resources.flickity, 'flickity/{version}/flickity.pkgd.': resources.flickity,
'font-awesome/{version}/css/font-awesome': resources.fontawesome, 'font-awesome/{version}/css/font-awesome': resources.fontawesome,
'font-awesome/{version}/css/': resources.fontawesome5CSS, 'font-awesome/{version}/css/': resources.fontawesome5CSS,

View File

@ -423,10 +423,6 @@ var resources = {
'feather': { 'feather': {
'path': 'resources/feather-icons/{version}/feather.min.jsm' 'path': 'resources/feather-icons/{version}/feather.min.jsm'
}, },
// FitText.js [Deprecated]
'fitTextJs': {
'path': 'resources/FitText.js/{version}/jquery.fittext.min.jsm'
},
// flickity // flickity
'flickity': { 'flickity': {
'path': 'resources/flickity/{version}/flickity.pkgd.min.jsm' 'path': 'resources/flickity/{version}/flickity.pkgd.min.jsm'

View File

@ -203,7 +203,6 @@ targets.setLastVersion = function (type, version) {
if (type.startsWith('/fancybox/2.')) return '2.1.7'; if (type.startsWith('/fancybox/2.')) return '2.1.7';
if (type.startsWith('/fancybox/3.')) return '3.5.7'; if (type.startsWith('/fancybox/3.')) return '3.5.7';
if (type.startsWith('/feather-icons/4.')) return '4.29.1'; if (type.startsWith('/feather-icons/4.')) return '4.29.1';
if (type.startsWith('/FitText.js/1.')) return '1.2.0';
if (type.startsWith('/flickity/3.')) return '3.0.0'; if (type.startsWith('/flickity/3.')) return '3.0.0';
if (type.startsWith('/flv.js/')) return '1.6.2'; if (type.startsWith('/flv.js/')) return '1.6.2';
if (type.startsWith('/font-awesome/3.')) return '3.2.1'; if (type.startsWith('/font-awesome/3.')) return '3.2.1';

View File

@ -25,9 +25,9 @@
<h2>New in LocalCDN:</h2> <h2>New in LocalCDN:</h2>
</div> </div>
<div class="release-notes-area"> <div class="release-notes-area">
<p></p> <p>Removed</p>
<ul> <ul>
<li></li> <li>FitText.js</li>
</ul> </ul>
</div> </div>
<div id="generator-section"> <div id="generator-section">

View File

@ -1,10 +0,0 @@
/*!
* 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(a){a.fn.fitText=function(d,b){var e=d||1,c=a.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},b);return this.each(function(){var f=a(this);var g=function(){f.css("font-size",Math.max(Math.min(f.width()/(e*10),parseFloat(c.maxFontSize)),parseFloat(c.minFontSize)))};g();a(window).on("resize.fittext orientationchange.fittext",g)})}})(jQuery);