同桌的你
<style>#papa {position:relative;margin-top:140px;margin-left: calc(50% - 681px);width: 1200px;height: 650px;box-shadow:0px 0px 1px 2px #0000CD, 0px 0px 0px 6px #ADFF2F,0px 0px 0px 13px #0000CD;overflow:hidden;border-radius:0%;background-image:url('http://tuku.link/imgs/2022/11/605fe579162e104e.gif');}
#papa::after { position: absolute; content: '同桌的你'; white-space:pre; font: bold 3em sans-serif; font-style: italic; color: #668cff; top: 30px; left: 50px; text-shadow: 2px 2px 4px #000; }
</style>
<div id="papa"></div>
<audio id="aud" src="https://www.kumeiwp.com/sub/filestores/2022/11/06/34737e91652dd3fca00118e86c3c2377.mp3" autoplay loop></audio>
<div style="position:absolute;width:1200px;margin-top: 0px; margin-left: -183px;">
<div style="MARGIN-TOP: -550px; MARGIN-LEFT: 0px;"><marquee height="550" scrollamount="7" scrolldelay="30" style="width: 100%; height: 550px;"><img alt="" src="https://pic.imgdb.cn/item/63920628b1fccdcd367c2a51.png
" title="" width="358" /></marquee></div>
<div style="MARGIN-TOP: -550px; MARGIN-LEFT: 0px;"><marquee height="550" scrollamount="6" scrolldelay="30" style="width: 100%; height: 550px;"><img alt="" src="https://pic.imgdb.cn/item/63920628b1fccdcd367c2a51.png
" title="" width="358" /></marquee></div>
<div style="MARGIN-TOP: -550px; MARGIN-LEFT: 0px;"><marquee height="550" scrollamount="5" scrolldelay="30" style="width: 100%; height: 550px;"><img alt="" src="https://pic.imgdb.cn/item/63920628b1fccdcd367c2a51.png
" title="" width="358" /></marquee></div>
<div style="MARGIN-TOP: -550px; MARGIN-LEFT: 0px;"><marquee height="550" scrollamount="4" scrolldelay="30" style="width: 100%; height: 550px;"><img alt="" src="https://pic.imgdb.cn/item/63920628b1fccdcd367c2a51.png
" title="" width="358" /></marquee></div>
<div style="MARGIN-TOP: -550px; MARGIN-LEFT: 0px;"><marquee height="550" scrollamount="3" scrolldelay="30" style="width: 100%; height: 550px;"><img alt="" src="https://pic.imgdb.cn/item/63920628b1fccdcd367c2a51.png
" title="" width="358" /></marquee></div>
<div style="MARGIN-TOP: -550px; MARGIN-LEFT: 0px;"><marquee height="550" scrollamount="2" scrolldelay="30" style="width: 100%; height: 550px;"><img alt="" src="https://pic.imgdb.cn/item/63920628b1fccdcd367c2a51.png
" title="" width="358" /></marquee></div>
</div>
<script >(function(mkPlayer) {let defaults = {lrcAr: [],lrc_css: 'top: 20px; left: 50%; transform: translateX(-50%);',player_css: ' top: 20px; right: -100px; transform: translateX(-50%);',playerCode: `<style>#mplayer {position: absolute;display: grid;grid-template-areas: 'cur btnplay dur''prog prog prog';gap: 0 4px;place-items: end center;font-size: 14px;--ww: 260px;--color: snow;}#cur {grid-area: cur;color: var(--color);}#dur {grid-area: dur;color: var(--color);}#btnplay {grid-area: btnplay;display: grid;grid-auto-flow: column;place-items: end center;gap: 4px;height: 60px;cursor: pointer;}#btnplay>span {background: red;width: 4px;transition: .6s;}#prog {grid-area: prog;width: var(--ww);height: 20px;opacity: .65;cursor: pointer;position: relative;}#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%; } }</style><div id="lrc" data-lrc="HCPlayer">HCPlayer</div><div id="mplayer"><div id="cur">00:00</div><div id="btnplay"></div><div id="dur">00:00</div><progress id="prog" max="100"></progress></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;(function() {for (j = 0; j < 20; j++) {let pinpu = document.createElement('span');pinpu.className = 'pinpu';pinpu.style.cssText += `height: ${Math.floor(Math.random()*50) + 10}px; background: #${Math.random().toString(16).substr(-6)};`;btnplay.appendChild(pinpu);}})();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;cur.innerText = toMin(aud.currentTime);dur.innerText = toMin(aud.duration);setPinpu();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 = () => lrc.style.setProperty('--state', aud.paused ? 'paused' : '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 = [['0.37', ' 《 同 桌 的 你 》',6.9],
['7.65', ' 词/曲:高晓松',5.1],
['13.03', ' 演唱:梦之旅演唱组合',3.4],
['16.59', ' 明天你是否会想起',3.9],
['20.66', ' 昨天你写的日记',3.5],
['24.33', ' 明天你是否还惦记',3.8],
['28.30', ' 曾经最爱哭的你',3.6],
['32.08', ' 老师们都已想不起',3.6],
['35.85', ' 猜不出问题的你',3.4],
['39.38', ' 我也是偶然翻相片',3.5],
['43.02', ' 才想起同桌的你',3.5],
['46.65', ' 谁娶了多愁善感的你',3.7],
['50.57', ' 谁看了你的日记',3.6],
['54.39', ' 谁把你的长发盘起',3.5],
['58.02', ' 谁给你做的嫁衣',3.8],
['62.02', ' LRC歌词制作:相约爱晚亭',14.1],
['76.80', ' 你从前总是很小心',3.6],
['80.62', ' 向我借半块橡皮',3.4],
['84.19', ' 你也曾无意中说起',3.5],
['87.90', ' 喜欢跟我在一起',3.5],
['91.54', ' 那时候天总是很蓝',3.5],
['95.25', ' 日子总过得太慢',3.7],
['99.18', ' 你总说毕业遥遥无期',3.5],
['102.81', ' 转眼就各奔东西',3.7],
['106.65', ' 谁娶了多愁善感的你',3.5],
['110.28', ' 谁安慰爱哭的你',3.5],
['114.01', ' 谁看了我给你写的信',3.6],
['117.79', ' 谁把它丢在风里',4.9],
['122.89', ' ☆ ★ ☆ ★ ☆ ★ ☆ ★ ☆ ★ ☆',13.1],
['136.69', ' 从前的日子都远去',3.3],
['140.18', ' 我也将有我的妻',3.6],
['143.95', ' 我也曾给她看相片',3.5],
['147.62', ' 给她讲同桌的你',3.6],
['151.45', ' 谁娶了多愁善感的你',3.5],
['155.14', ' 谁安慰爱哭的你',3.5],
['158.80', ' 谁把你的长发盘起',3.5],
['162.53', ' 谁给你做的嫁衣',3.7],
['166.45', ' 谁娶了多愁善感的你',3.6],
['170.23', ' 谁安慰爱哭的你',3.4],
['173.85', ' 谁把你的长发盘起',3.4],
['177.47', ' 谁给你做的嫁衣',4.5],
['182.24', ' 啦 啦 啦 啦',3.0],
['185.36', ' 啦 啦 啦 啦',3.2],
['188.75', ' 啦 啦 啦 啦',3.5],
['192.43', ' 啦 啦 啦 啦',4.5],
['197.12', ' 啦 啦 啦 啦',4.8],
['202.12', ' 啦 啦 啦 啦',4.8],
['207.12', '',4.5]];
HCPlayer({
lrcAr: lrcAr,
/*
lrc_css: `
top: 20px;
left: 50%;
transform: translate(-50%);
--bg: linear-gradient(tan, red);
color: tan;
`,
player_css: `
bottom: 20px;
--color: snow;
--ww: 260px;
--track: snow;
--prog: purple;
`,
*/
});
</script>
<br><br><br><br><br><br><br><br><br><br><br><br> 欣赏一下,谢谢。 蓝魔 发表于 2022-12-1 20:33
欣赏一下,谢谢。
谢谢您的关注和支持! 欣赏老师的新作好听又好看,点赞! 非常开心 发表于 2022-12-2 19:20
欣赏老师的新作好听又好看,点赞!
谢谢您的支持和鼓励!
页:
[1]