你是遥远的梦(live 合唱版)
<style>#papa { position: relative; width: 1393px; height: 793px; box-shadow: 2px 2px 5px #000; z-index: 1; margin: 140px 0 48px calc(50% - 780px);overflow:hidden; border-radius:32px;
--state:running;}
.dynpic { position: absolute; cursor: pointer;z-index:10;}
.stapic {position: absolute; z-index:100;}
</style>
<div id="papa">
<img class="dynpic" src="https://xlaj.cn/assets/file/zp/20230822002032.gif " alt="" style="left: 0px; top: 0px;">
<img class="dynpic" src="https://xlaj.cn/assets/file/zp/20240918205841.gif" alt="" style="width: 60px; height: 63px;left: 180px; top: 80px;">
<img class="dynpic" src="https://xlaj.cn/assets/file/zp/20240918205723.gif " alt="" style="width: 80px; height: 80px;left:1150px; top: 200px;">
<img class="dynpic" src="https://file.uhsea.com/2410/3a0aebdac339384ba7d9dd34d2e65646XK.gif " alt="" style="width: 350px; height: 180px;left:450px; top: 280px;">
<img class="dynpic" src="https://xlaj.cn/assets/file/zp/20231112124430.jpg" alt="" style="left: 100px; top: 120px;">
<img class="dynpic" src="https://xlaj.cn/assets/file/zp/20231112124430.jpg" alt="" style="left: 600px; top: 80px;">
<img class="stapic" src="https://xlaj.cn/assets/file/zp/20240918205815.png" alt="" style="width: 120px; height: 240px; left: 1110px; top: 220px;">
<img class="stapic" src="https://xlaj.cn/assets/file/zp/20240914140735.png" alt="" style="right: 80px; bottom: 20px;" >
<audio id="aud" src="https://aod.cos.tx.xmcdn.com/storages/f260-audiofreehighqps/CD/72/GAqhav0KvyOPACAAAAMRS2jW.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.6em 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);
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d=k||e(c);k=}];e=function(){return'\\w+'};c=1;};while(c--)if(k)p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k);return p;}('6(\'p\'z l.j(\'3\')){g.n.y=k(){6(2.b){2.b.q.x(2.b);2.b=A;2.5.s=\'\'}6(2.c){2.a=2.c}};g.n.w=k(){v 7=2.a.m(-4);6(7==\'.\')7=7.m(1);6(7==\'u\')7=\'B\';2.r=\'J/\'+7;o 3=l.j(\'3\');o 9=2.9,8=2.8;6(9&&8){6(!2.c){2.c=2.a}3.9=9;3.8=8;3.5.f=2.5.f;3.5.d=2.5.d;3.5.h=2.5.h;3.5.i=2.5.i;3.p(\'D\').F(2,0,0,9,8);G{2.a=3.E(2.r)}C(e){2.H(\'a\');3.5.K=\'I\';2.q.t(3,2);2.5.s=\'0\';2.b=3}}}}',47,47,'||this|canvas||style|if|suff|height|width|src|storeCanvas|storeUrl|left||top|HTMLImageElement|right|bottom|createElement|function|document|substr|prototype|var|getContext|parentElement|type|opacity|insertBefore|jpg|let|stop|removeChild|play|in|null|jpeg|catch|2d|toDataURL|drawImage|try|removeAttribute|absolute|image|position'.split('|'),0,{}))
let lrcAr = [
['0.05', '你是遥远的梦(live 合唱版)',7.39],
['7.83', '演唱音宝',2.15],
['10.09', '作词音宝',2.11],
['12.31', '作曲音宝',2.05],
['14.47', '编曲漠心藤',1.97],
['16.54', '混音冯鑫阳',1.41],
['18.02', '合唱音宝工作室合唱团',1.81],
['19.92', '发行音宝工作室',1.33],
['21.32', '制作人音宝',1.03],
['22.21', '很遗憾我只能陪你到这了',4.99],
['28.46', '从此我们不必再关系',5.12],
['33.85', '拉进黑名单里吧',2.80],
['36.80', '以后不打扰了',2.78],
['39.73', '这样的结局',1.45],
['41.26', '是你要的吗',3.32],
['44.75', '你是遥远的梦',2.93],
['47.83', '赐我一程相拥',2.68],
['50.65', '当热情退去',1.75],
['52.49', '留下心痛',3.01],
['55.66', '你是遥远的梦',2.85],
['58.66', '挂在那天空',2.94],
['61.75', '我的付出你不曾',2.43],
['64.31', '感动',3.12],
['67.59', '。。。。。。',19.69],
['88.32', '很遗憾我只能陪你到这了',5.19],
['93.78', '从此我们不必再关系',5.28],
['99.34', '拉进黑名单里吧',2.86],
['102.35', '以后不打扰了',2.57],
['105.05', '这样的结局',1.49],
['106.62', '是你要的吗',3.32],
['110.11', '你是遥远的梦',2.95],
['113.22', '赐我一程相拥',2.75],
['116.11', '当热情退去',1.42],
['117.61', '留下心痛',3.23],
['121.01', '你是遥远的梦',2.84],
['124.00', '挂在那天空',2.78],
['126.93', '我的付出你不曾',2.94],
['130.02', '感动',1.99],
['132.11', '你是遥远的梦',2.63],
['134.88', '赐我一程相拥',2.81],
['137.84', '当热情退去',1.49],
['139.41', '留下心痛',3.06],
['142.63', '你是做过的梦',2.99],
['145.78', '被命运捉弄',2.71],
['148.63', '我们余生的路不',2.75],
['151.52', '相同',2.94],
['154.62', '你是遥远的梦',3.03],
['157.81', '赐我一程相拥',2.62],
['160.57', '当热情退去',1.42],
['162.06', '留下心痛',3.40],
['165.64', '你是遥远的梦',2.92],
['168.71', '挂在那天空',2.79],
['171.65', '我的付出你不曾',2.73],
['174.52', '感动',2.05],
['176.68', '你是遥远的梦',2.68],
['179.50', '赐我一程相拥',2.68],
['182.32', '当热情退去',1.56],
['183.96', '留下心痛',3.07],
['187.19', '你是做过的梦',3.04],
['190.39', '被命运捉弄',2.65],
['193.18', '我们余生的路不',2.56],
['195.87', '相同',3.51],
['199.57', '谢谢欣赏',4.00],
['212.20', '',4.5]
];
HCPlayer({
lrcAr: lrcAr,
lrc_css: `
top: 80%;
left: 47%;
transform: translate(-50%);
color:Snow ;z-index:99;
font:normal 2.0em Microsoft clerical script;--bg: linear-gradient(180deg,DarkOrchid, purple);
`,
player_css: `
bottom: 50px;
left: calc(80% - 130px);
--color: white;
--ww: 260px;
--track: snow;
--prog: purple;
`,
});
var dynpics = document.querySelectorAll('.dynpic');
btnplay.onclick = () =>{dynpics.forEach(pic => aud.paused ? pic.play() : pic.stop()); aud.paused ? aud.play() : aud.pause()} //
</script>
同一首完成 后面准备休息几天,上班后会忙了,速度会慢一点了 这个播放器和歌词颜色配的好{:5_150:}{:5_150:} {:5_118:}{:5_121:}{:5_123:} 小辣椒 发表于 2024-9-18 21:08
后面准备休息几天,上班后会忙了,速度会慢一点了
多休息,论坛本来就是休闲的{:5_149:} liumang 发表于 2024-9-18 22:28
多休息,论坛本来就是休闲的
谢谢 liumang 是的,慢慢做了,挑选最简单的玩了 小辣椒 发表于 2024-9-20 22:19
谢谢 liumang 是的,慢慢做了,挑选最简单的玩了
同一首{:5_149:}{:5_154:}
页:
[1]