小辣椒 发表于 2024-9-15 21:54

只谈风生不谈情 (DJ Eva版)

本帖最后由 小辣椒 于 2024-10-3 19:42 编辑 <br /><br /><meta charset="UTF-8">
<style>
#papa { transform: translateX(-50%); width: 1265px; height: 634px; background: #000 url('https://wj.zp68.com/lxx/yunhua/2024/09/10/1.jpg');
      box-shadow: 2px 2px 4px #000; z-index: 1; margin: 150px 0 10px calc(50% - 90px); overflow:hidden; border-radius:32px;}

#dt3{ position: absolute; width: 177px; height: 79px; top: 535px; left: 1068px; }
</style>
<div id="papa">
      <img id="dt1" src=" https://wj1.zp68.com:812/lxx/yunhua/2024/09/10/1.gif" alt="" style="width:100%; height:100%; " />

   <img id="dt3" src="https://xlaj.cn/assets/file/zp/20240915032249.png" alt="" style=" " />
      <audio id="aud" src="https://file.uhsea.com/2410/79064c879b5a5f31ad0bb892aa6577143H.m4a" autoplay loop></audio>
</div>
<script>
(function(mkPlayer) {let defaults = {lrcAr: [],lrc_css: 'top: 10px; left: 50%; transform: translateX(-50%);',player_css: 'bottom: 20px; left: 50%; transform: translateX(-50%);',playerCode: `<style>#mplayer {position: absolute;grid-template-areas: 'cur btnplay dur''prog prog prog';gap: 8px 4px;display: grid;place-items: end center;color: var(--color);font: normal 16px sans-serif;z-index: 999;--bgColor: linear-gradient(to right, var(--prog) 0%, var(--prog) 0%, var(--track) 0%, var(--track));--ww: 260px;--color: hsla(100,10%,80%,.95);--track: hsla(90, 100%, 95%, .65);--prog: hsla(50,50%,50%,.65);--btn_size: 40px;}#btnplay {--dis1: block;--dis2: none;grid-area: btnplay;width: 35px;height: 35px;border: 3px solid var(--color);border-radius: 50%;opacity: .95;cursor: pointer;transition: .3s;position: relative;}#btnplay:hover { opacity: 1; box-shadow: 0 0 5px var(--color), inset 0 0 5px var(--color); }#btnplay:hover::before, #btnplay:hover::after { opacity: 1; }#btnplay::before, #btnplay::after {position: absolute;content: '';width: 100%;height: 100%;background: var(--color);opacity: .85;}#btnplay::before { display: var(--dis1); clip-path: polygon(35% 30%, 75% 50%, 35% 70%); }#btnplay::after {display: var(--dis2);clip-path: polygon(35% 30%, 45% 30%, 45% 70%, 35% 70%, 55% 70%, 65% 70%, 65% 30%, 55% 30%, 55% 70%, 35% 70%);}#prog {grid-area: prog;-webkit-appearance: none;width: var(--ww);outline: none;background: none;position: relative;}#prog::-webkit-slider-thumb {-webkit-appearance: none;position: relative;width: 20px;height: 20px;border: 6px solid var(--color);border-radius: 50%;background: var(--prog);top: calc(50% - 10px);cursor: pointer;z-index: 888;}#prog::-moz-range-thumb {-webkit-appearance: none;width: 12px;height: 12px;border: 6px solid var(--color);border-radius: 50%;background: var(--prog);cursor: pointer;z-index: 888;}#prog::-webkit-slider-runnable-track { height: 6px; border-radius: 10px; background: var(--bgColor); }#prog::-moz-range-track { height: 6px; border-radius: 10px; background: var(--bgColor); }#cur { grid-area: cur; color: var(--color); }#dur { grid-area: dur; color: var(--color); }#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;font: bold 2.0em sans-serif;color: hsl(0, 10%, 90%);white-space: pre;-webkit-background-clip: text;filter: drop-shadow(1px 1px 1px 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(360deg); } }</style><div id="lrc" data-lrc="HCPlayer">HCPlayer</div><div id="mplayer"><span id="cur">00:00</span><span id="dur">00:00</span><span id="btnplay"></span><input type="range" id="prog" step="0.1" max="100" value="0" /></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, mDrag = false;btnplay.onclick = () => aud.paused ? aud.play() : aud.pause();prog.onmousedown = () =>mDrag =true;prog.onmouseout = () => mDrag = false;prog.onchange = () => { aud.currentTime = aud.duration * prog.value / 100; mDrag = false; };prog.onmousemove = () => prog.style.setProperty('--bgColor', `linear-gradient(to right, var(--prog) 0%, var(--prog) ${prog.value}%, var(--track) ${prog.value}%, var(--track))`);aud.addEventListener('timeupdate', () => {cur.innerText = toMin(aud.currentTime);dur.innerText = toMin(aud.duration);prog.style.setProperty('--bgColor', `linear-gradient(to right, var(--prog) 0%, var(--prog) ${prog.value}%, var(--track) ${prog.value}%, var(--track))`);if(mDrag===false) prog.value = aud.currentTime / aud.duration * 100;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('--dis1','block'), btnplay.style.setProperty('--dis2','none')): (lrc.style.setProperty('--state','running'),btnplay.style.setProperty('--dis1','none'), btnplay.style.setProperty('--dis2','block'));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;}};mkPlayer.HCPlayer = playCode;})(this);


if('getContext'in document.createElement('canvas')){HTMLImageElement.prototype.play=function(){if(this.storeCanvas){this.storeCanvas.parentElement.removeChild(this.storeCanvas);this.storeCanvas=null;dt1.style.opacity=''}if(this.storeUrl){this.src=this.storeUrl}};HTMLImageElement.prototype.stop=function(){var canvas=document.createElement('canvas');var width=this.width,height=this.height;if(width&&height){if(!this.storeUrl){this.storeUrl=this.src}canvas.width=width;canvas.height=height;canvas.getContext('2d').drawImage(this,0,0,width,height);try{this.src=canvas.toDataURL("image/gif")}catch(e){this.removeAttribute('src');canvas.style.position='absolute';this.parentElement.insertBefore(canvas,this);this.style.opacity='0';this.storeCanvas=canvas}}}}

let lrcAr = [
               ['0.00', '只谈风生不谈情 (DJ Eva版)',0.58],
['0.69', ' 歌手:黄静美 ',0.45],
['1.00', '从此以后 只谈风生不谈情',3.56],
['4.83', '这世界上 爱谁不如爱自己',3.56],
['8.58', '眼泪只会 为值得的人哭泣',3.76],
['12.54', '世上总会有人心疼你',3.58],
['16.54', ' ',14.58],
['32.10', '厌倦你的谎',1.23],
['33.39', '习惯你的敷衍',2.02],
['35.52', '你犯的错都装看不见',3.56],
['39.27', '照顾好自己',1.54],
['40.89', '再互不相欠',2.02],
['43.02', '爱错了人就当瞎了眼',3.45],
['46.65', '往事化作烟',1.65],
['48.39', '旧人旧事翻篇',1.97],
['50.46', '我会和更好的人遇见',3.59],
['54.24', '既然不珍惜',1.62],
['55.95', '又何必留恋',1.94],
['57.99', '何必为你浪费时间',2.91],
['61.05', '从此以后 只谈风生不谈情',3.59],
['64.83', '这世界上 爱谁不如爱自己',3.53],
['68.55', '眼泪只会 为值得的人哭泣',3.79],
['72.54', '世上总会有人心疼你',3.36],
['76.08', '从此以后 谈笑风生不动情',3.58],
['79.85', '再不为谁 一个人夜夜伤心',3.49],
['83.52', '承诺只是 骗子说给傻子听',3.79],
['87.51', '说完管它谁爱信谁信',3.30],
['90.51', ' ',15.30],
['106.77', '往事化作烟',1.57],
['108.42', '旧人旧事翻篇',2.00],
['110.52', '我会和更好的人遇见',3.53],
['114.24', '既然不珍惜',1.62],
['115.95', '又何必留恋',1.94],
['117.99', '何必为你浪费时间',2.91],
['121.05', '从此以后 只谈风生不谈情',3.59],
['124.83', '这世界上 爱谁不如爱自己',3.56],
['128.58', '眼泪只会 为值得的人哭泣',3.76],
['132.54', '世上总会有人心疼你',3.33],
['136.05', '从此以后 谈笑风生不动情',3.59],
['139.83', '再不为谁 一个人夜夜伤心',3.53],
['143.55', '承诺只是 骗子说给傻子听',3.79],
['147.54', '说完管它谁爱信谁信',3.36],
['151.08', '从此以后 只谈风生不谈情',3.59],
['154.86', '这世界上 爱谁不如爱自己',3.56],
['158.61', '眼泪只会 为值得的人哭泣',3.73],
['162.54', '世上总会有人心疼你',3.33],
['166.05', '从此以后 谈笑风生不动情',3.59],
['169.83', '再不为谁 一个人夜夜伤心',3.51],
['173.52', '承诺只是 骗子说给傻子听',3.82],
['177.54', '说完管它谁爱信谁信',3.35],
['185.28', '谢谢欣赏',4.5]
];
      HCPlayer({
                lrcAr: lrcAr,
                lrc_css: `
                top: 40px;
                left: 38%;
                transform: translate(-50%);
                color: purple;
               --bg: linear-gradient(180deg,Snow, Honeydew);
      `,
      player_css: `
                bottom: 40px;
                left: 850px;
                --color: Honeydew;
                --ww: 260px;
                --track: snow;
                --prog: purple;
      `,
});
btnplay.onclick = () =>aud.paused ?( aud.play(), dt1.play()) : ( aud.pause(), dt1.stop()) ;

</script>













小辣椒 发表于 2024-9-15 21:55

同一首完成{:5_147:}

liumang 发表于 2024-9-15 23:02

双频谱,动感音乐欣赏{:5_152:}{:5_152:}{:5_152:}

liumang 发表于 2024-9-15 23:03

去找一下和谁同一首

liumang 发表于 2024-9-15 23:05

@ bgmnet进来看看
页: [1]
查看完整版本: 只谈风生不谈情 (DJ Eva版)