FitText.js v1.2.0 (#615)

This commit is contained in:
nobody 2021-08-11 06:45:48 +02:00
parent ea567e76d8
commit 1840ca1283
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
6 changed files with 20 additions and 0 deletions

View File

@ -374,6 +374,7 @@ https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css
https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js
https://cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js
https://cdnjs.cloudflare.com/ajax/libs/feather-icons/4.28.0/feather.min.js
https://cdnjs.cloudflare.com/ajax/libs/FitText.js/1.2.0/jquery.fittext.min.js
https://cdnjs.cloudflare.com/ajax/libs/flv.js/1.6.1/flv.min.js
https://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.1/css/font-awesome.min.css
https://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.2.1/font/fontawesome-webfont.woff

View File

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

View File

@ -396,6 +396,10 @@ var resources = {
'findifyBundle': {
'path': 'resources/findify-bundle/{version}/'
},
// FitText.js [Deprecated]
'fitTextJs': {
'path': 'resources/FitText.js/{version}/jquery.fittext.min.jsm'
},
// flv.js [Deprecated]
'flvJS': {
'path': 'resources/flv.js/{version}/flv.min.jsm'

View File

@ -291,6 +291,8 @@ targets.setLastVersion = function (type, version) {
return '3.5.7';
} else if (type.startsWith('/feather-icons/4.')) {
return '4.28.0';
} else if (type.startsWith('/FitText.js/1.')) {
return '1.2.0';
} else if (type.startsWith('/flv.js/')) {
return '1.6.1';
} else if (type.startsWith('/font-awesome/3.')) {
@ -664,6 +666,7 @@ targets.determineResourceName = function (filename) {
};
const ListOfFiles = {
'jquery.fittext.min.jsm': 'FitText.js',
'aos.css': 'aos (CSS)',
'aos.jsm': 'aos (JS)',
'exif.min.jsm': 'Exif.js',

View File

@ -59,6 +59,7 @@
<ul>
<li>exif-js v2.3.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/590">#590</a>)</li>
<li>aos JS & CSS v2.3.4 (<a href="https://codeberg.org/nobody/LocalCDN/issues/598">#598</a>)</li>
<li>FitText.js v1.2.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/615">#615</a>)</li>
</ul>
<p>Fixed</p>
<ul>

View File

@ -0,0 +1,10 @@
/*!
* 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);