added: featherlight v1.7.13 (#1644)

This commit is contained in:
nobody 2024-09-16 09:00:33 +02:00
parent 732a5a3f41
commit 6ec375a39f
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
8 changed files with 61 additions and 0 deletions

View File

@ -643,6 +643,14 @@ mappings.cdn = {
'docsify@{version}/lib/docsify.min.js': resources.docsify,
'ethjs@{version}/dist/ethjs.': resources.ethJs,
'exif-js@{version}/exif.': resources.exifJS,
'featherlight@{version}/release/featherlight.gallery.min.css': resources.featherlightGalleryCSS,
'featherlight@{version}/release/featherlight.gallery.css': resources.featherlightGalleryCSS,
'featherlight@{version}/release/featherlight.gallery.min.js': resources.featherlightGalleryJS,
'featherlight@{version}/release/featherlight.gallery.js': resources.featherlightGalleryJS,
'featherlight@{version}/release/featherlight.min.css': resources.featherlightCSS,
'featherlight@{version}/release/featherlight.css': resources.featherlightCSS,
'featherlight@{version}/release/featherlight.min.js': resources.featherlightJS,
'featherlight@{version}/release/featherlight.js': resources.featherlightJS,
'flv.js/dist/flv.min.js': resources.flvJS,
'font-awesome@{version}/css/font-awesome.': resources.fontawesome,
'fork-awesome@{version}/css/fork-awesome.': resources.forkawesome,

View File

@ -400,6 +400,19 @@ let resources = {
'feather': {
'path': 'resources/feather-icons/{version}/feather.min.jsm'
},
// featherlight
'featherlightJS': {
'path': 'resources/featherlight/{version}/featherlight.min.jsm'
},
'featherlightCSS': {
'path': 'resources/featherlight/{version}/featherlight.min.css'
},
'featherlightGalleryJS': {
'path': 'resources/featherlight/{version}/featherlight.gallery.min.jsm'
},
'featherlightGalleryCSS': {
'path': 'resources/featherlight/{version}/featherlight.gallery.min.css'
},
// flickity
'flickity': {
'path': 'resources/flickity/{version}/flickity.pkgd.min.jsm'

View File

@ -200,6 +200,7 @@ targets.setLastVersion = function (type, version) {
if (type.startsWith('/fancybox/2.')) return '2.1.7';
if (type.startsWith('/fancybox/3.')) return '3.5.7';
if (type.startsWith('/feather-icons/4.')) return '4.29.2';
if (type.startsWith('/featherlight/1.')) return '1.7.13';
if (type.startsWith('/flickity/3.')) return '3.0.0';
if (type.startsWith('/flv.js/')) return '1.6.2';
if (type.startsWith('/font-awesome/3.')) return '3.2.1';
@ -521,6 +522,10 @@ targets.determineResourceName = function (filename) {
};
const ListOfFiles = {
'featherlight.min.css': 'featherlight (CSS)',
'featherlight.min.jsm': 'featherlight (JS)',
'featherlight.gallery.min.css': 'featherlight Gallery (CSS)',
'featherlight.gallery.min.jsm': 'featherlight Gallery (JS)',
'mousetrap.min.jsm': 'mousetrap',
'jquery.powertip.min.jsm': 'jquery-powertip',
'jsrender.min.jsm': 'jsrender',

View File

@ -34,6 +34,10 @@
<li>cdn.jsdelivr.net -> popperjs (<a href="https://codeberg.org/nobody/LocalCDN/issues/1644">#1644</a>)</li>
<li>cdn.jsdelivr.net -> video.js (<a href="https://codeberg.org/nobody/LocalCDN/issues/1644">#1644</a>)</li>
</ul>
<p>Added</p>
<ul>
<li>featherlight v1.7.13 (<a href="https://codeberg.org/nobody/LocalCDN/issues/1644">#1644</a>)</li>
</ul>
</div>
<div id="generator-section">
<div class="topic-label">

View File

@ -0,0 +1,8 @@
/**
* Featherlight Gallery an extension for the ultra slim jQuery lightbox
* Version 1.7.13 - http://noelboss.github.io/featherlight/
*
* Copyright 2018, Noël Raoul Bossart (http://www.noelboss.com)
* MIT Licensed.
**/
.featherlight-next,.featherlight-previous{display:block;position:absolute;top:25px;right:25px;bottom:0;left:80%;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:rgba(0,0,0,0)}.featherlight-previous{left:25px;right:80%}.featherlight-next:hover,.featherlight-previous:hover{background:rgba(255,255,255,.25)}.featherlight-next span,.featherlight-previous span{display:none;position:absolute;top:50%;left:5%;width:82%;text-align:center;font-size:80px;line-height:80px;margin-top:-40px;text-shadow:0 0 5px #fff;color:#fff;font-style:normal;font-weight:400}.featherlight-next span{right:5%;left:auto}.featherlight-next:hover span,.featherlight-previous:hover span{display:inline-block}.featherlight-first-slide.featherlight-last-slide .featherlight-next,.featherlight-first-slide.featherlight-last-slide .featherlight-previous,.featherlight-loading .featherlight-next,.featherlight-loading .featherlight-previous,.featherlight-swipe-aware .featherlight-next,.featherlight-swipe-aware .featherlight-previous{display:none}@media only screen and (max-device-width:1024px){.featherlight-next:hover,.featherlight-previous:hover{background:0 0}.featherlight-next span,.featherlight-previous span{display:block}}@media only screen and (max-width:1024px){.featherlight-next,.featherlight-previous{top:10px;right:10px;left:85%}.featherlight-previous{left:10px;right:85%}.featherlight-next span,.featherlight-previous span{margin-top:-30px;font-size:40px}}

View File

@ -0,0 +1,7 @@
/**
* Featherlight Gallery an extension for the ultra slim jQuery lightbox
* Version 1.7.13 - http://noelboss.github.io/featherlight/
*
* Copyright 2018, Noël Raoul Bossart (http://www.noelboss.com)
* MIT Licensed.
**/!function(a){"use strict";function b(c,d){if(!(this instanceof b)){var e=new b(a.extend({$source:c,$currentTarget:c.first()},d));return e.open(),e}a.featherlight.apply(this,arguments),this.chainCallbacks(h)}var c=function(a){window.console&&window.console.warn&&window.console.warn("FeatherlightGallery: "+a)};if("undefined"==typeof a)return c("Too much lightness, Featherlight needs jQuery.");if(!a.featherlight)return c("Load the featherlight plugin before the gallery plugin");var d="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,e=a.event&&a.event.special.swipeleft&&a,f=window.Hammer&&function(a){var b=new window.Hammer.Manager(a[0]);return b.add(new window.Hammer.Swipe),b},g=d&&(e||f);d&&!g&&c("No compatible swipe library detected; one must be included before featherlightGallery for swipe motions to navigate the galleries.");var h={afterClose:function(a,b){var c=this;return c.$instance.off("next."+c.namespace+" previous."+c.namespace),c._swiper&&(c._swiper.off("swipeleft",c._swipeleft).off("swiperight",c._swiperight),c._swiper=null),a(b)},beforeOpen:function(a,b){var c=this;return c.$instance.on("next."+c.namespace+" previous."+c.namespace,function(a){var b="next"===a.type?1:-1;c.navigateTo(c.currentNavigation()+b)}),g&&(c._swiper=g(c.$instance).on("swipeleft",c._swipeleft=function(){c.$instance.trigger("next")}).on("swiperight",c._swiperight=function(){c.$instance.trigger("previous")}),c.$instance.addClass(this.namespace+"-swipe-aware",g)),c.$instance.find("."+c.namespace+"-content").append(c.createNavigation("previous")).append(c.createNavigation("next")),a(b)},beforeContent:function(a,b){var c=this.currentNavigation(),d=this.slides().length;return this.$instance.toggleClass(this.namespace+"-first-slide",0===c).toggleClass(this.namespace+"-last-slide",c===d-1),a(b)},onKeyUp:function(a,b){var c={37:"previous",39:"next"}[b.keyCode];return c?(this.$instance.trigger(c),!1):a(b)}};a.featherlight.extend(b,{autoBind:"[data-featherlight-gallery]"}),a.extend(b.prototype,{previousIcon:"&#9664;",nextIcon:"&#9654;",galleryFadeIn:100,galleryFadeOut:300,slides:function(){return this.filter?this.$source.find(this.filter):this.$source},images:function(){return c("images is deprecated, please use slides instead"),this.slides()},currentNavigation:function(){return this.slides().index(this.$currentTarget)},navigateTo:function(b){var c=this,d=c.slides(),e=d.length,f=c.$instance.find("."+c.namespace+"-inner");return b=(b%e+e)%e,c.$currentTarget=d.eq(b),c.beforeContent(),a.when(c.getContent(),f.fadeTo(c.galleryFadeOut,.2)).always(function(a){c.setContent(a),c.afterContent(),a.fadeTo(c.galleryFadeIn,1)})},createNavigation:function(b){var c=this;return a('<span title="'+b+'" class="'+this.namespace+"-"+b+'"><span>'+this[b+"Icon"]+"</span></span>").click(function(d){a(this).trigger(b+"."+c.namespace),d.preventDefault()})}}),a.featherlightGallery=b,a.fn.featherlightGallery=function(a){return b.attach(this,a),this},a(document).ready(function(){b._onReady()})}(jQuery);

View File

@ -0,0 +1,8 @@
/**
* Featherlight - ultra slim jQuery lightbox
* Version 1.7.13 - http://noelboss.github.io/featherlight/
*
* Copyright 2018, Noël Raoul Bossart (http://www.noelboss.com)
* MIT Licensed.
**/
html.with-featherlight{overflow:hidden}.featherlight{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483647;text-align:center;white-space:nowrap;cursor:pointer;background:#333;background:rgba(0,0,0,0)}.featherlight:last-of-type{background:rgba(0,0,0,.8)}.featherlight:before{content:'';display:inline-block;height:100%;vertical-align:middle}.featherlight .featherlight-content{position:relative;text-align:left;vertical-align:middle;display:inline-block;overflow:auto;padding:25px 25px 0;border-bottom:25px solid transparent;margin-left:5%;margin-right:5%;max-height:95%;background:#fff;cursor:auto;white-space:normal}.featherlight .featherlight-inner{display:block}.featherlight link.featherlight-inner,.featherlight script.featherlight-inner,.featherlight style.featherlight-inner{display:none}.featherlight .featherlight-close-icon{position:absolute;z-index:9999;top:0;right:0;line-height:25px;width:25px;cursor:pointer;text-align:center;font-family:Arial,sans-serif;background:#fff;background:rgba(255,255,255,.3);color:#000;border:0;padding:0}.featherlight .featherlight-close-icon::-moz-focus-inner{border:0;padding:0}.featherlight .featherlight-image{width:100%}.featherlight-iframe .featherlight-content{border-bottom:0;padding:0;-webkit-overflow-scrolling:touch}.featherlight iframe{border:0}.featherlight *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@media only screen and (max-width:1024px){.featherlight .featherlight-content{margin-left:0;margin-right:0;max-height:98%;padding:10px 10px 0;border-bottom:10px solid transparent}}@media print{html.with-featherlight>*>:not(.featherlight){display:none}}

File diff suppressed because one or more lines are too long