diff --git a/web/public/css/tfm.css b/web/public/css/tfm.css index 4febaa1..ccf6f73 100644 --- a/web/public/css/tfm.css +++ b/web/public/css/tfm.css @@ -91,12 +91,17 @@ form { width: 160px; height: 160px; border-radius: 20px; - background-size: cover; - background-position: center; overflow: hidden; cursor: pointer; } +.sasa .thumb { + width: 100%; + height: 100%; + object-fit: cover; + object-position: center; +} + .sasa .overlay { position: absolute; top: 0; diff --git a/web/public/js/jquery.lazy.min.js b/web/public/js/jquery.lazy.min.js new file mode 100644 index 0000000..7c5adde --- /dev/null +++ b/web/public/js/jquery.lazy.min.js @@ -0,0 +1,2 @@ +/*! jQuery & Zepto Lazy v1.7.10 - http://jquery.eisbehr.de/lazy - MIT&GPL-2.0 license - Copyright 2012-2018 Daniel 'Eisbehr' Kern */ +!function(t,e){"use strict";function r(r,a,i,u,l){function f(){L=t.devicePixelRatio>1,i=c(i),a.delay>=0&&setTimeout(function(){s(!0)},a.delay),(a.delay<0||a.combined)&&(u.e=v(a.throttle,function(t){"resize"===t.type&&(w=B=-1),s(t.all)}),u.a=function(t){t=c(t),i.push.apply(i,t)},u.g=function(){return i=n(i).filter(function(){return!n(this).data(a.loadedName)})},u.f=function(t){for(var e=0;ee.top&&-ne.left&&-n=0?w:w=n(t).width()}function h(){return B>=0?B:B=n(t).height()}function m(t){return t.tagName.toLowerCase()}function b(t,e){if(e){var r=t.split(",");t="";for(var a=0,n=r.length;at||!a.enableThrottle||u?l():n=setTimeout(l,t-f)}}function p(){--z,i.length||z||y("onFinishedAll")}function y(t,e,n){return!!(t=a[t])&&(t.apply(r,[].slice.call(arguments,1)),!0)}var z=0,w=-1,B=-1,L=!1,T="afterLoad",D="load",I="error",N="img",E="src",F="srcset",C="sizes",O="background-image";"event"===a.bind||o?f():n(t).on(D+"."+l,f)}function a(a,o){var u=this,l=n.extend({},u.config,o),f={},c=l.name+"-"+ ++i;return u.config=function(t,r){return r===e?l[t]:(l[t]=r,u)},u.addItems=function(t){return f.a&&f.a("string"===n.type(t)?n(t):t),u},u.getItems=function(){return f.g?f.g():{}},u.update=function(t){return f.e&&f.e({},!t),u},u.force=function(t){return f.f&&f.f("string"===n.type(t)?n(t):t),u},u.loadAll=function(){return f.e&&f.e({all:!0},!0),u},u.destroy=function(){return n(l.appendScroll).off("."+c,f.e),n(t).off("."+c),f={},e},r(u,l,a,f,c),l.chainable?a:u}var n=t.jQuery||t.Zepto,i=0,o=!1;n.fn.Lazy=n.fn.lazy=function(t){return new a(this,t)},n.Lazy=n.lazy=function(t,r,i){if(n.isFunction(r)&&(i=r,r=[]),n.isFunction(i)){t=n.isArray(t)?t:[t],r=n.isArray(r)?r:[r];for(var o=a.prototype.config,u=o._f||(o._f={}),l=0,f=t.length;l { - $(".contents-wrapper").append(`
`); + $(".contents-wrapper").append(`
`); }); sappyou_load(); sappyou.forEach((tanzaku) => { diff --git a/web/public/js/tfm-tags.js b/web/public/js/tfm-tags.js index 9b65001..552dd30 100644 --- a/web/public/js/tfm-tags.js +++ b/web/public/js/tfm-tags.js @@ -5,7 +5,7 @@ $(window).on("load", function () { }); sasahyou_load(); sasahyou.forEach((sasa) => { - $(".list").append(`
`); + $(".list").append(`
`); }); }); diff --git a/web/public/tfm/files.html b/web/public/tfm/files.html index 0874758..0338fe5 100644 --- a/web/public/tfm/files.html +++ b/web/public/tfm/files.html @@ -25,6 +25,7 @@ + diff --git a/web/public/tfm/tags.html b/web/public/tfm/tags.html index 078491d..988a02c 100644 --- a/web/public/tfm/tags.html +++ b/web/public/tfm/tags.html @@ -25,6 +25,7 @@ +