mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 10:56:15 -08:00
- Created a new documentation file for language settings in i18n. - Added examples for setting default languages and importing additional languages. - Included instructions for adding and modifying languages in the ArtPlayer plugin. - Introduced a new plugin: artplayer-plugin-liquid-glass with various build formats (legacy, mjs, etc.).
8 lines
4.5 KiB
JavaScript
8 lines
4.5 KiB
JavaScript
|
|
/*!
|
|
* artplayer-plugin-liquid-glass.js v1.0.0
|
|
* Github: https://github.com/zhw2590582/ArtPlayer
|
|
* (c) 2017-2025 Harvey Zack
|
|
* Released under the MIT License.
|
|
*/
|
|
!function(e,t,r,n,o,i,a,l){var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},u="function"==typeof d[n]&&d[n],s=u.i||{},c=u.cache||{},f="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function p(t,r){if(!c[t]){if(!e[t]){if(o[t])return o[t];var i="function"==typeof d[n]&&d[n];if(!r&&i)return i(t,!0);if(u)return u(t,!0);if(f&&"string"==typeof t)return f(t);var a=Error("Cannot find module '"+t+"'");throw a.code="MODULE_NOT_FOUND",a}s.resolve=function(r){var n=e[t][1][r];return null!=n?n:r},s.cache={};var l=c[t]=new p.Module(t);e[t][0].call(l.exports,s,l,l.exports,d)}return c[t].exports;function s(e){var t=s.resolve(e);if(!1===t)return{};if(Array.isArray(t)){var r={__esModule:!0};return t.forEach(function(e){var t=e[0],n=e[1],o=e[2]||e[0],i=p(n);"*"===t?Object.keys(i).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}})}):"*"===o?Object.defineProperty(r,t,{enumerable:!0,value:i}):Object.defineProperty(r,t,{enumerable:!0,get:function(){return"default"===o?i.__esModule?i.default:i:i[o]}})}),r}return p(t)}}p.isParcelRequire=!0,p.Module=function(e){this.id=e,this.bundle=p,this.require=f,this.exports={}},p.modules=e,p.cache=c,p.parent=u,p.distDir=void 0,p.publicUrl=void 0,p.devServer=void 0,p.i=s,p.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(p,"root",{get:function(){return d[n]}}),d[n]=p;for(var g=0;g<t.length;g++)p(t[g]);if(r){var y=p(r);"object"==typeof exports&&"undefined"!=typeof module?module.exports=y:"function"==typeof define&&define.amd&&define(function(){return y})}}({dOYQ3:[function(e,t,r,n){var o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(r),o.export(r,"default",()=>l);var i=e("bundle-text:./style.less"),a=o.interopDefault(i);function l(e={}){return t=>{let{constructor:r}=t,{addClass:n,append:o,createElement:i}=r.utils,{$bottom:a,$progress:l,$controls:d,$player:u}=t.template,s=i("div");return n(u,"artplayer-plugin-liquid-glass"),n(s,"art-liquid-glass"),o(a,s),o(s,l),o(s,d),t.on("control",t=>{t?(s.style.width=e.width,s.style["max-width"]=e["max-width"],s.style["min-width"]=e["min-width"]):(s.style.width="",s.style["max-width"]="",s.style["min-width"]="")}),{name:"artplayerPluginLiquidGlass"}}}if("undefined"!=typeof document){let e="artplayer-plugin-liquid-glass",t=document.getElementById(e);t||((t=document.createElement("style")).id=e,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{document.head.appendChild(t)}):(document.head||document.documentElement).appendChild(t)),t.textContent=a.default}"undefined"!=typeof window&&(window.artplayerPluginLiquidGlass=l)},{"bundle-text:./style.less":"kzvrd","@parcel/transformer-js/src/esmodule-helpers.js":"6ykb1"}],kzvrd:[function(e,t,r,n){t.exports=".artplayer-plugin-liquid-glass.art-control-show{--art-control-height:42px;--art-control-icon-size:24px;--art-control-icon-scale:1.1}.artplayer-plugin-liquid-glass.art-control-show .art-bottom{padding-bottom:var(--art-padding);background-image:none;align-items:center}.artplayer-plugin-liquid-glass.art-control-show .art-bottom .art-liquid-glass{backdrop-filter:blur(12px);padding:var(--art-padding)calc(var(--art-padding)*1.5)5px;background-color:#00000040;border-radius:8px}.artplayer-plugin-liquid-glass.art-control-show .art-bottom .art-control-progress-inner{border-radius:5px;overflow:hidden}.artplayer-plugin-liquid-glass.art-control-show .art-settings{bottom:calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-padding))}.artplayer-plugin-liquid-glass.art-control-show .art-layer-auto-playback{bottom:calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-padding)*4 + 10px)}"},{}],"6ykb1":[function(e,t,r,n){r.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},r.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.exportAll=function(e,t){return Object.keys(e).forEach(function(r){"default"===r||"__esModule"===r||Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),t},r.export=function(e,t,r){Object.defineProperty(e,t,{enumerable:!0,get:r})}},{}]},["dOYQ3"],"dOYQ3","parcelRequire4dc0",{}); |