ScrollMagic v2.0.8 (#1277)

This commit is contained in:
nobody 2023-01-02 18:20:02 +01:00
parent 8d3c93ca4e
commit bce1f15562
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
11 changed files with 29 additions and 2 deletions

View File

@ -1497,6 +1497,10 @@ https://cdnjs.cloudflare.com/ajax/libs/rickshaw/1.7.1/rickshaw.min.css
https://cdnjs.cloudflare.com/ajax/libs/rickshaw/1.7.1/rickshaw.min.js
https://cdnjs.cloudflare.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js
https://cdnjs.cloudflare.com/ajax/libs/script.js/2.5.9/script.min.js
https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.8/plugins/animation.gsap.min.js
https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.8/plugins/animation.velocity.min.js
https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.8/plugins/jquery.ScrollMagic.min.js
https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.8/ScrollMagic.min.js
https://cdnjs.cloudflare.com/ajax/libs/select2/3.5.4/select2-bootstrap.min.css
https://cdnjs.cloudflare.com/ajax/libs/select2/3.5.4/select2_locale_ar.min.js
https://cdnjs.cloudflare.com/ajax/libs/select2/3.5.4/select2_locale_az.min.js

View File

@ -739,6 +739,8 @@ function create_url() {
url="$JSDELIVR/npm/in-view@$version/dist/in-view.min.js"
elif [ "$folder" = "knockout" ] && [ "$version" = "3.5.1" ];then
url="$CLOUDFLARE/$folder/$version/knockout-latest.min.js"
elif [ "$folder" = "ScrollMagic" ] && [ "$jfile" != "ScrollMagic.min.js" ];then
url="$CLOUDFLARE/$folder/$version/plugins/$jfile"
# --------------------------------------------------------------------------
else
if [ "$subfile" = "$jfile" ]; then

View File

@ -463,6 +463,7 @@ mappings.cdn = {
'rickshaw/{version}/rickshaw.min.js': resources.rickshawJS,
'script.js/{version}/script.': resources.scriptJS,
'scriptaculous/{version}/scriptaculous.': resources.scriptaculous,
'ScrollMagic/{version}/': resources.scrollMagic,
'select2/{version}/': resources.select2,
'semantic-ui/{version}/': resources.semanticUi,
'showdown/{version}/showdown.': resources.showdown,
@ -682,6 +683,8 @@ mappings.cdn = {
'react-dom@{version}/umd/react-dom.production.min.js': resources.reactDOM,
'react-intl@{version}/react-intl.iife.': resources.reactIntl,
'react@{version}/umd/react.production.min.js': resources.react,
'scrollmagic@{version}/scrollmagic/uncompressed/': resources.scrollMagic,
'scrollmagic@{version}/scrollmagic/minified/': resources.scrollMagic,
'search-insights@{version}/dist/search-insights.': resources.searchInsights,
'select2@{version}/': resources.select2,
'swagger-ui-dist@{version}/swagger-ui.js': resources.swaggerUiJS,

View File

@ -241,7 +241,9 @@ requestAnalyzer._getPathOfBundle = function (initiator, channelHost, channelPath
} else if (bundle === 'TinyMCE (Bundle)' && filename !== 'tinymce.min.js') {
filename = requestAnalyzer._handleTinyMCE(channelPath, channelHost, initiator);
} else if (bundle === 'DataTables (Bundle)') {
filename = requestAnalyzer._handleDataTables(filename);
filename = requestAnalyzer._handleUncompressedFiles(filename);
} else if (bundle === 'ScrollMagic (Bundle)' && !filename.endsWith('.min.js')) {
filename = requestAnalyzer._handleUncompressedFiles(filename);
}
if (filename === false) {
@ -271,7 +273,7 @@ requestAnalyzer._handleMathJax = function (channelPath, channelHost, initiator)
return filename;
};
requestAnalyzer._handleDataTables = function (filename) {
requestAnalyzer._handleUncompressedFiles = function (filename) {
if (!filename.endsWith('.min.js') && filename.endsWith('.js')) {
return filename.replace('.js', '.min.js');
} else if (!filename.endsWith('.min.css') && filename.endsWith('.css')) {

View File

@ -972,6 +972,10 @@ var resources = {
'scriptaculous': {
'path': 'resources/scriptaculous/{version}/scriptaculous.jsm'
},
// ScrollMagic (Bundle)
'scrollMagic': {
'path': 'resources/ScrollMagic/{version}/'
},
// Search Insights
'searchInsights': {
'path': 'resources/search-insights/{version}/search-insights.min.jsm'

View File

@ -67,6 +67,8 @@ targets.determineBundle = function (path) {
val = 'vex';
} else if (path.startsWith('/tinymce/')) {
val = 'TinyMCE';
} else if (path.startsWith('/ScrollMagic/')) {
val = 'ScrollMagic';
}
return val === '' ? val : `${val} (Bundle)`;
@ -414,6 +416,7 @@ targets.setLastVersion = function (type, version) {
if (type.startsWith('/rickshaw/1.')) return '1.7.1';
if (type.startsWith('/script.js/2.')) return '2.5.9';
if (type.startsWith('/scriptaculous/1.')) return '1.9.0';
if (type.startsWith('/ScrollMagic/2.')) return '2.0.8';
if (type.startsWith('/search-insights/1.')) return '1.8.0';
if (type.startsWith('/search-insights/2.')) return '2.2.3';
if (type.startsWith('/select2/3.')) return '3.5.4';

View File

@ -49,6 +49,7 @@
<ul>
<li>nprogress v0.2.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/1254">#1254</a>)</li>
<li>tensorflow v4.1.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/1264">#1264</a>)</li>
<li>ScrollMagic (Bundle) v2.0.8 (<a href="https://codeberg.org/nobody/LocalCDN/issues/1277">#1277</a>)</li>
</ul>
<p>Improved</p>
<ul>

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,2 @@
/*! ScrollMagic v2.0.8 | (c) 2020 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */
!function(e,n){var r;"function"==typeof define&&define.amd?define(["ScrollMagic","gsap","TweenMax","TimelineMax"],n):"object"==typeof exports?(r=require("gsap/dist/gsap")||require("gsap"),n(require("scrollmagic"),r,TweenMax||r,TimelineMax||r)):n(e.ScrollMagic||e.jQuery&&e.jQuery.ScrollMagic,e.gsap,e.gsap||e.TweenMax||e.TweenLite,e.gsap||e.TimelineMax||e.TimelineLite)}(this,function(e,n,p,u){"use strict";var g=n&&3<=parseFloat(n.version);e.Scene.addOption("tweenChanges",!1,function(e){return!!e}),e.Scene.extend(function(){var o,i=this;i.on("progress.plugin_gsap",function(){s()}),i.on("destroy.plugin_gsap",function(e){i.removeTween(e.reset)});var s=function(){var e,n;o&&(e=i.progress(),n=i.state(),o.repeat&&-1===o.repeat()?"DURING"===n&&o.paused()?o.play():"DURING"===n||o.paused()||o.pause():e!=o.progress()&&(0===i.duration()?0<e?o.play():o.reverse():i.tweenChanges()&&o.tweenTo?o.tweenTo(e*o.duration()):o.progress(e).pause()))};i.setTween=function(e,n,r){var t,a;1<arguments.length&&(a="number"==typeof arguments[1],g?(a||(r=n),r.hasOwnProperty("duration")||(r.duration=a?n:1)):arguments.length<3&&(r=n,n=1),e=g?p.to(e,r):p.to(e,n,r));try{(t=u&&!g?new u({smoothChildTiming:!0}).add(e):e).pause()}catch(e){return i}return o&&i.removeTween(),o=t,e.repeat&&-1===e.repeat()&&(o.repeat(-1),o.yoyo(e.yoyo())),s(),i},i.removeTween=function(e){return o&&(e&&o.progress(0).pause(),o.kill(),o=void 0),i}})});

View File

@ -0,0 +1,2 @@
/*! ScrollMagic v2.0.8 | (c) 2020 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */
!function(e,i){"function"==typeof define&&define.amd?define(["ScrollMagic","velocity"],i):"object"==typeof exports?i(require("scrollmagic"),require("velocity")):i(e.ScrollMagic||e.jQuery&&e.jQuery.ScrollMagic,e.Velocity||e.jQuery&&e.jQuery.Velocity)}(this,function(e,y){"use strict";var v=0;e.Scene.extend(function(){var o,r,u,n,c=this,l=e._util,i=0;c.on("progress.plugin_velocity",function(){f()}),c.on("destroy.plugin_velocity",function(e){c.off("*.plugin_velocity"),c.removeVelocity(e.reset)});var s=function(e,i,t){l.type.Array(e)?e.forEach(function(e){s(e,i,t)}):(y.Utilities.data(e,n)||y.Utilities.data(e,n,{reverseProps:l.css(e,Object.keys(r))}),y(e,i,t),void 0!==t.queue&&y.Utilities.dequeue(e,t.queue))},a=function(e,i){var t;l.type.Array(e)?e.forEach(function(e){a(e,i)}):(t=y.Utilities.data(e,n))&&t.reverseProps&&(y(e,t.reverseProps,i),void 0!==i.queue&&y.Utilities.dequeue(e,i.queue))},f=function(){var e;!o||(e=c.progress())!=i&&(0===c.duration()&&(0<e?s(o,r,u):a(o,u)),i=e)};c.setVelocity=function(e,i,t){return o&&c.removeVelocity(),o=l.get.elements(e),r=i||{},n="ScrollMagic.animation.velocity["+v+++"]",void 0!==(u=t||{}).queue&&(u.queue=n+"_queue"),f(),c},c.removeVelocity=function(e){return o&&(void 0!==u.queue&&y(o,"stop",u.queue),e&&a(o,{duration:0}),o.forEach(function(e){y.Utilities.removeData(e,n)}),o=r=u=n=void 0),c}})});

View File

@ -0,0 +1,2 @@
/*! ScrollMagic v2.0.8 | (c) 2020 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */
!function(e,i){"function"==typeof define&&define.amd?define(["ScrollMagic","jquery"],i):"object"==typeof exports?i(require("scrollmagic"),require("jquery")):i(e.ScrollMagic,e.jQuery)}(this,function(e,t){"use strict";e._util.get.elements=function(e){return t(e).toArray()},e._util.addClass=function(e,i){t(e).addClass(i)},e._util.removeClass=function(e,i){t(e).removeClass(i)},t.ScrollMagic=e});