大王叫我来巡山 TO:花潮的小羊人儿们
<style>#papa { margin: 120px 0 0 calc(50% - 583px); display: grid; place-items: center; width: 1039px; height: 566px; background: lightblue url('https://yinhua.ru/20230101/xunsGIF.gif') no-repeat center/cover; box-shadow: 6px 3px 20px #000; user-select: none; position: relative; z-index: 1; }
#papa::before { position: absolute; content: url('https://yinhua.ru/20230101/xunsF.gif'); bottom: 120px;left: 450px;filter:blur (.-5px); mix-blend-mode:multiply; }
</style>
<div id="papa"></div>
<audio id="aud" src="https://yinhua.ru/20230101/xuns01.mp3" loop autoplay></audio>
<script >
(function() {
(function(mkPlayer) {let defaults = {lrcAr: [],lrc_css: 'top: 65px; left: 60%; transform: translate(-50%)',player_css: 'bottom: 10px; left: 60%; transform: translate(-50%)',playerCode: `<style>#mplayer { --ww: 300px; --color1: hsla(120,40%,50%,.95); --color2: hsla(120,100%,85%,.75); position: absolute; z-index: 901; }#lrc { --motion: cover2; --tt: 1s; --state: running; --bg: linear-gradient(180deg,hsla(120,10%,50%,.75),hsla(120,100%,20%,.65)); position: absolute; font: bold 2.0em sans-serif; color: hsl(100, 100%, 90%); white-space: pre; -webkit-background-clip: text; filter: drop-shadow(1px 1px 2px hsla(0, 100%, 0%, .85)); z-index: 900; }#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%; } }</style><canvas id="mplayer" width="300" height="60"></canvas><div id="lrc" data-lrc="HCPlayer">HCPlayer</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;let mKey = 0, mFlag = true, btfFlag = false;let getCssVal = (e,v) => getComputedStyle(e).getPropertyValue(v);let ctx = mplayer.getContext('2d');let w = mplayer.width = getCssVal(mplayer,'--ww').replace(/[^0-9]/ig,''), h = mplayer.height = 60;let btnFlag = false;let player = {prog: 0,track: w,color: ,cur: '00:00',dur: '00:00'};let drawCircle = (x,y,r,color) => {ctx.beginPath();ctx.strokeStyle = color;ctx.lineWidth = 2;ctx.arc(x,y,r,0,2*Math.PI);ctx.stroke();};let drawTriangle = (x,y,len,color) => {ctx.beginPath();ctx.fillStyle = color;ctx.moveTo(x,y);ctx.lineTo(x, y+len);ctx.lineTo(x+len, y + len/2);ctx.lineTo(x,y);ctx.fill();};let drawRect = (x,y,ww,hh,color) => {ctx.beginPath();ctx.fillStyle = color;ctx.fillRect(x,y,ww,hh);};let drawTxt = (text,x,y,align,color) => {ctx.beginPath();ctx.font = '16px sans-serif';ctx.textAlign = align;ctx.textBaseline = 'middle';ctx.fillStyle = color;ctx.fillText(text,x,y);};let drawAll = () => {ctx.clearRect(0,0,w,h);let btnColor = btnFlag ? player.color : player.color;drawRect(0,10,w, 4, player.color);drawRect(0,10,player.prog, 4, player.color);drawTxt(player.cur,w/2-26,h-20,'right',player.color);drawCircle(w/2,h-20,16,btnColor);drawTxt(player.dur,w/2 + 26,h-20,'left',player.color);aud.paused ? drawTriangle(w/2-6,h-28,16,btnColor) : (drawRect(w/2-6, h-28,4,16,btnColor), drawRect(w/2+2, h-28,4,16,btnColor));};let overBtn = (e) => Math.sqrt((e.offsetX-w/2) ** 2 + (e.offsetY-(h-20)) ** 2) < 16;let overProg = (e) => e.offsetY > 0 && e.offsetY < 15;mplayer.onmousemove = (e) => {mplayer.style.cursor = overBtn(e) || overProg(e) ? 'pointer' : 'default';mplayer.title = overProg(e) ? toMin(e.offsetX*aud.duration/w) : '';overBtn(e) ? (btnFlag = true,drawAll()) : (btnFlag = false,drawAll());};mplayer.onclick = (e) => {if(overBtn(e)) { aud.paused ? aud.play() : aud.pause(); drawAll(); }if(overProg(e)) aud.currentTime = aud.duration * e.offsetX / w;};aud.addEventListener('timeupdate', () => {player.prog = aud.currentTime * w /aud.duration;player.cur = toMin(aud.currentTime);player.dur = toMin(aud.duration);drawAll();for (j = 0; j < data.lrcAr.length; j++) {if (aud.currentTime >= data.lrcAr) {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')) : (lrc.style.setProperty('--state', 'running'));let showLrc = (time) => {let name = mFlag ? 'cover1' : 'cover2';lrc.innerHTML = data.lrcAr;lrc.dataset.lrc = data.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;};drawAll();};mkPlayer.HCPlayer = playCode;})(this);
let lrcAr = [
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
];
HCPlayer({lrcAr: lrcAr});
})();
</script>
首先慰问一下论坛的小羊人,有了羊也是不爽的,那大王派我来巡山,大王让我送来了仙丹你们快吃,可以早日康复。仙丹很多,你们尽量吃{:4_170:}
https://pic.imgdb.cn/item/63a17fe7b1fccdcd3697a46a.png https://pic.imgdb.cn/item/63a1801bb1fccdcd36980da3.png
@东篱闲人 @樵哥哥
老头应该年龄比樵哥哥年龄大了,你们2人要多吃一点,特别注意身体,祝早日康复! @红影 @小九 @大猫咪 @辫子哥哥
你们年轻身体好可以抵挡一下,仙丹可以吃但让老头 樵哥哥多吃一点小辣椒也是祝福你们早日康复 艾特其他还不清楚的论坛的朋友们如果羊了也是进来吃仙丹,同样祝福你们早日康复! 仙丹巡山了就有,放心吃,想吃多少吃多少{:4_170:} 马黑黑 发表于 2022-12-20 17:47
仙丹巡山了就有,放心吃,想吃多少吃多少
吃了仙丹远离羊羊了{:4_170:} 小辣椒 发表于 2022-12-20 17:50
吃了仙丹远离羊羊了
关键是,羊来了吃了仙丹羊走不走呢 马黑黑 发表于 2022-12-20 17:52
关键是,羊来了吃了仙丹羊走不走呢
羊看见仙丹就会自己离开了{:4_170:}羊惧怕仙丹的仙气和魔法 吃仙丹可以预防吗{:4_203:} 一只凶悍的羊羊来了,快跑{:4_173:} 很好又趣味的画面,我去吃仙丹了{:4_173:} 小辣椒 发表于 2022-12-20 17:53
羊看见仙丹就会自己离开了羊惧怕仙丹的仙气和魔法
说的有道理 我咋听不到呢? 千羽 发表于 2022-12-20 18:52
吃仙丹可以预防吗
可以{:4_170:}花潮特产仙丹 千羽 发表于 2022-12-20 18:53
一只凶悍的羊羊来了,快跑
没事不用跑,现在备有大批仙丹,够大家吃{:4_170:} 千羽 发表于 2022-12-20 18:56
很好又趣味的画面,我去吃仙丹了
尽量吃,仙丹多的 马黑黑 发表于 2022-12-20 19:15
说的有道理
{:4_172:}