祝大家兔年大吉
<meta charset="utf-8">
<style>
#papa {
margin: 150px 0 0 calc(50% - 740px);
width: 1327px;
height: 745px;
background: #666 url('https://pan.doliy.cn/filestores/2023/01/17//1188dc942110a66f05ff2536f19439f5.gif') no-repeat center/cover;
box-shadow: 3px 3px 20px #000;
position: relative;
}
hsl(20,10%,80%);animation: sh 16s var(--delay) linear infinite; opacity: .1; }
@keyframes sh{ 20% { opacity: .1; } 40% { opacity: 1; transform: translate(20px,310px);}100% { opacity: .1;transform: translate(0px,-500px); }}
</style>
<div id="papa">
</div>
<audio id="aud" src="https://pan.doliy.cn/filestores/2023/01/17//5e98d481b90e498975c37a04dce67d6a.mp3" loop autoplay></audio>
<script >
(function(mkPlayer) {let defaults = {lrcAr: [],lrc_css: 'top: 550px; left: 50%; transform: translateX(-50%);',player_css: 'bottom: 20px; left: 50%; transform: translateX(-50%);',btn_size: '40px',playerCode: `<style>#mplayer {position: absolute;bottom: 20px;grid-template-columns: auto auto auto;gap: 6px;display: grid;place-items: center;color: var(--color);font: normal 16px sans-serif;z-index: 999;--ww: 200px;--color: hsl(0, 100%, 100%);}#btnplay {--state: paused;width: 40px;height: 40px;background: conic-gradient(red,orange,yellow,green,teal,blue,purple);mask: radial-gradient(transparent 4px,red 0);-webkit-mask: radial-gradient(transparent 4px,red 0);border-radius: 50%;cursor: pointer;animation: rot 2s linear infinite;animation-play-state: var(--state);}#prog {width: var(--ww);height: 20px;opacity: .95;cursor: pointer;}#lrc {--motion: cover2;--tt: 2s;--state: paused;--bg: linear-gradient(180deg, hsla(60, 50%, 50%, .45), hsla(80, 70%, 50%, .6), hsla(0, 100%, 50%, .75));position: absolute;left: 20px;top: 10px;font: bold 2.4em sans-serif;color: hsl(0, 10%, 90%);white-space: pre;-webkit-background-clip: text;filter: drop-shadow(1px 1px 2px hsla(0, 0%, 0%, .95));}#lrc::before {position: absolute;content: attr(data-lrc);width: 20%;height: 100%;color: transparent;overflow: hidden;white-space: pre;background: var(--bg);filter: inherit;-webkit-background-clip: text;animation: var(--motion) var(--tt) linear forwards;animation-play-state: var(--state);}@keyframes cover1 { from { width: 0; } to { width: 100%; } }@keyframes cover2 { from { width: 0; } to { width: 100%; } }@keyframes rot { to { transform: rotate(1turn); } }</style><div id="lrc" data-lrc="HCPlayer">HCPlayer</div><div id="mplayer"><span id="btnplay"></span><meter id="prog" max="100" low="25" high="75" optimum="85" value="0"></meter><span id="tmsg">00:00 | 00:00</span></div>`,};let playCode = (user_config) => {let data = Object.assign({}, defaults, user_config);papa.innerHTML += data.playerCode;mplayer.style.cssText += data.player_css;lrc.style.cssText += data.lrc_css;btnplay.style.width = btnplay.style.height = data.btn_size || '40px';let mKey = 0, mFlag = true;btnplay.onclick = () => aud.paused ? aud.play() : aud.pause();prog.onclick = (e) => aud.currentTime = aud.currentTime = aud.duration * e.offsetX / prog.offsetWidth;aud.addEventListener('timeupdate', () => {prog.value = aud.currentTime / aud.duration * 100;tmsg.innerText = `${toMin(aud.currentTime)} | ${toMin(aud.duration)}`;for (j = 0; j < data.lrcAr.length; j++) {if (aud.currentTime >= data.lrcAr) {cKey = j;if (mKey === j) showLrc(data.lrcAr);else continue;}}});aud.addEventListener('pause', () => mState());aud.addEventListener('play', () => mState());aud.addEventListener('seeked', () => calcKey());let mState = () => aud.paused ? (lrc.style.setProperty('--state','paused'),btnplay.style.setProperty('--state', 'paused')) : (lrc.style.setProperty('--state','running'),btnplay.style.setProperty('--state', 'running'));let showLrc = (time) => {let name = mFlag ? 'cover1' : 'cover2';lrc.innerHTML = lrcAr;lrc.dataset.lrc = lrcAr.replace(/<br>/, '\n');lrc.style.setProperty('--motion', name);lrc.style.setProperty('--tt', time + 's');lrc.style.setProperty('--state', 'running');mKey += 1;mFlag = !mFlag;};let calcKey = () => {for (j = 0; j < data.lrcAr.length; j++) {if (aud.currentTime <= data.lrcAr) {mKey = j - 1;break;}}if (mKey < 0) mKey = 0;if (mKey > data.lrcAr.length - 1) mKey = data.lrcAr.length - 1;let time = data.lrcAr - (aud.currentTime - data.lrcAr);showLrc(time);};let toMin = (val) => {if (!val) return '00:00';val = Math.floor(val);let min = parseInt(val / 60),sec = parseFloat(val % 60);if (min < 10) min = '0' + min;if (sec < 10) sec = '0' + sec;return min + ':' + sec;}};let setPinpu = () => {let eles = document.querySelectorAll('.pinpu');eles.forEach((item) => item.style.height = `${Math.floor(Math.random()*50) + 10}px`);};mkPlayer.HCPlayer = playCode;})(this);
let lrcAr = [
,
];
HCPlayer({
lrcAr: lrcAr,
//btn_size: '45px',
//lrc_css: 'top: 20px; left: 20px; --bg: #fcff00;',
//player_css: 'bottom: 20px; left: 200px; --color: #ccc; --ww: 180px;',
});
</script>
<br><br><br><br> 祝论坛是朋友们兔年大吉{:10_403:} 撒雨兔年大吉!{:10_402:} 蜻蜓 发表于 2023-1-23 10:40
撒雨兔年大吉!
蜻蜓新年好{:10_402:}
撒哈拉的雨 发表于 2023-1-23 10:41
蜻蜓新年好
我们都好!哈哈{:10_402:}
蜻蜓 发表于 2023-1-23 10:42
我们都好!哈哈
必须的{:9001:}
撒哈拉的雨 发表于 2023-1-23 10:43
必须的
那就吃好喝好,身体好!哈哈{:10_402:}
蜻蜓 发表于 2023-1-23 10:44
那就吃好喝好,身体好!哈哈
对,多吃高蛋白,增强抵抗力,为抵抗以后的其他毒株做好准备{:9001:}
撒哈拉的雨 发表于 2023-1-23 10:46
对,多吃高蛋白,增强抵抗力,为抵抗以后的其他毒株做好准备
对啊,不过过年,看菜就饱了{:9005:}
蜻蜓 发表于 2023-1-23 10:47
对啊,不过过年,看菜就饱了
多吃就是硬道理,现在吃得下就尽量多吃