Added: inview (Protonet) v1.1.2 (#172)

This commit is contained in:
nobody 2020-11-11 18:20:55 +01:00
parent e9b7bc1d57
commit eb0f499217
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
5 changed files with 11 additions and 0 deletions

View File

@ -329,6 +329,7 @@ mappings.cdn = {
'plyr/{version}/plyr.js': resources.plyrJS,
'plyr/{version}/plyr.min.js': resources.plyrJS,
'popper.js/{version}/umd/popper.min.js': resources.popperJS,
'protonet-jquery.inview/{version}/jquery.inview.': resources.protonetJqueryInview,
'raven.js/{version}/raven.min.js': resources.ravenJS,
'raven.js/{version}/plugins/angular.min.js': resources.ravenPluginAngularJS,
'react/{version}/umd/react.production.min.js': resources.react,

View File

@ -715,6 +715,11 @@ var resources = {
'path': 'resources/prop-types/{version}/prop-types.min.jsm',
'type': 'application/javascript'
},
// protonet-jquery.inview
'protonetJqueryInview': {
'path': 'resources/protonet-jquery.inview/{version}/jquery.inview.min.jsm',
'type': 'application/javascript'
},
// Prototype
'prototypeJS': {
'path': 'resources/prototype/{version}/prototype.jsm',

View File

@ -312,6 +312,8 @@ targets.setLastVersion = function (type, version) {
return '2.5.4';
} else if (type.startsWith('/prop-types/15.')) {
return '15.7.2';
} else if (type.startsWith('/protonet-jquery.inview/1.')) {
return '1.1.2';
} else if (type.startsWith('/prototype/1.')) {
return '1.7.3.0';
} else if (type.startsWith('/raven.js/3.')) {
@ -409,6 +411,7 @@ targets.determineResourceName = function (filename) {
};
const ListOfFiles = {
'jquery.inview.min.jsm': 'inview (Protonet)',
'modaal.min.jsm': 'Modaal (JS)',
'modaal.min.css': 'Modaal (CSS)',
'jquery.magnific-popup.min.jsm': 'magnific-popup.js',

View File

@ -42,6 +42,7 @@
<li>Added: Font Awesome (Fonts only) (<a href="https://codeberg.org/nobody/LocalCDN/issues/170">#170</a>)</li>
<li>Added: GSAP Bundle (<a href="https://codeberg.org/nobody/LocalCDN/issues/171">#171</a>)</li>
<li>Added: Modaal v0.4.4 (<a href="https://codeberg.org/nobody/LocalCDN/issues/172">#172</a>)</li>
<li>Added: inview (Protonet) v1.1.2 (<a href="https://codeberg.org/nobody/LocalCDN/issues/172">#172</a>)</li>
</ul>
<div id="generator-section">
<div class="topic-label">

View File

@ -0,0 +1 @@
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){function i(){var b,c,d={height:f.innerHeight,width:f.innerWidth};return d.height||(b=e.compatMode,(b||!a.support.boxModel)&&(c="CSS1Compat"===b?g:e.body,d={height:c.clientHeight,width:c.clientWidth})),d}function j(){return{top:f.pageYOffset||g.scrollTop||e.body.scrollTop,left:f.pageXOffset||g.scrollLeft||e.body.scrollLeft}}function k(){if(b.length){var e=0,f=a.map(b,function(a){var b=a.data.selector,c=a.$element;return b?c.find(b):c});for(c=c||i(),d=d||j();e<b.length;e++)if(a.contains(g,f[e][0])){var h=a(f[e]),k={height:h[0].offsetHeight,width:h[0].offsetWidth},l=h.offset(),m=h.data("inview");if(!d||!c)return;l.top+k.height>d.top&&l.top<d.top+c.height&&l.left+k.width>d.left&&l.left<d.left+c.width?m||h.data("inview",!0).trigger("inview",[!0]):m&&h.data("inview",!1).trigger("inview",[!1])}}}var c,d,h,b=[],e=document,f=window,g=e.documentElement;a.event.special.inview={add:function(c){b.push({data:c,$element:a(this),element:this}),!h&&b.length&&(h=setInterval(k,250))},remove:function(a){for(var c=0;c<b.length;c++){var d=b[c];if(d.element===this&&d.data.guid===a.guid){b.splice(c,1);break}}b.length||(clearInterval(h),h=null)}},a(f).bind("scroll resize scrollstop",function(){c=d=null}),!g.addEventListener&&g.attachEvent&&g.attachEvent("onfocusin",function(){d=null})});