小辣椒 发表于 2024-9-27 22:26

苹果香(合唱Live版)-黑大婶回乡带娃

<style>
    #papa { position: relative; width: 1271px; height: 677px;background: #000 url('https://xlaj.cn/upfile/202409/27/4.png 81.jpg');box-shadow: 4px 4px 10px #000; z-index: 1; margin: 140px 0 48px calc(50% - 720px);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/upfile/202409/27/81.gif" alt="" style="left: 0px; top: 0px;">
      <img class="dynpic" src="https://xlaj.cn/assets/file/zp/20231112124430.jpg " alt="" style="width: 32px; height: 32px; top: 150px; left: 1100px; ">
      <img class="dynpic" src="https://xlaj.cn/upfile/202409/27/bt.png" alt="" style="150px; height: 400px;   top: 140px;   left: 1000px;">      
      <img class="dynpic" src="https://xlaj.cn/upfile/202409/27/ma.png" alt="" style="width: 257px; height: 315px;bottom: 0px;left: 0px;">
      <img class="dynpic" src="https://xlaj.cn/upfile/202409/27/4.png " alt="" style="width: 198px; height: 98px;bottom: 0px;left: 1079px; ">
      
      
      <audio id="aud" src="https://file.uhsea.com/2410/ffa551f5e5d26eea7f720f8624c66c03CS.mp3" 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 版)',6.42],
['6.86', '作词:狼戈',1.51],
['8.45', '作曲:狼戈',2.28],
['10.85', '原唱:狼戈',2.77],
['12.77', '演唱:黑大婶回乡带娃 ',4.05],
['16.98', '红嘴雁啊飞回芦苇随风摆',5.53],
['24.85', '河对面的莎吾烈泰 ',3.29],
['28.31', '今天在不在',2.47],
['31.96', '那年我饮马来到了 ',3.23],
['35.36', '你的白毡房',2.50],
['37.73', '我曾看到你弹着冬布拉 ',3.38],
['42.29', '听过你把歌唱',4.22],
['47.78', '单纯的相逢 平凡的晚上',5.68],
['54.81', '我就在那个时候啊 ',2.58],
['57.05', '傻傻的等到了天亮',3.50],
['61.73', '月亮作证 你毡帽上的羽毛',5.87],
['68.96', '亲吻着晚风飘啊飘 ',2.06],
['71.18', '啊飘到了我的心上',3.27],
['76.68', '。。。。。。',8.10],
['84.21', '六星街里还传来 ',3.07],
['88.44', '巴扬琴声吗',2.42],
['92.04', '阿力克桑德拉的面包房 ',3.11],
['95.31', '列巴出炉了吗',2.06],
['98.95', '南苑卤香是舌尖上的故事啊',5.37],
['105.65', '你让浪迹天涯的孩子啊 ',3.71],
['109.56', '梦中回家吧',4.21],
['115.04', '儿时的万花筒里 有野鸽在飞翔',5.37],
['121.75', '这让我想起二哥 和他心爱的弹弓叉',5.92],
['129.03', '湖蓝色的院墙 我生命里的院落',5.40],
['135.77', '我的妈妈在那里给我的爱 ',3.25],
['139.19', '叫我永生不忘啊',3.34],
['144.81', '。。。。。',28.46],
['174.77', '心中有个地方 刻进了你的名字',5.86],
['181.99', '草原 河谷 月季花香 都是我的歌',5.63],
['188.97', '儿时离开你 正逢花开时',4.41],
['195.72', '如今往事 远了 模糊了 ',3.00],
['199.30', '我却忘不了苹果香',3.15],
['204.72', '如今往事 远了 模糊了 ',3.02],
['208.95', '我却忘不了苹果香',3.38],
['214.61', '谢谢欣赏',3.98],
['229.33', '',4.5]

];
      HCPlayer({
                lrcAr: lrcAr,
                lrc_css: `
                top: 60px;
                left: 55%;
                transform: translate(-50%);
                color:Snow ;z-index:99;
                font:normal 1.8em Microsoft clerical script;--bg: linear-gradient(180deg,DarkOrchid, purple);
                `,
                player_css: `
                        bottom: 40px;
                        left: calc(70% - 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>

小辣椒 发表于 2024-9-27 22:26

同一首完成

bgmnet 发表于 2024-9-27 23:54

好听,,赞👍🏻{:5_149:}辛苦了

liumang 发表于 2024-9-28 09:32

小辣椒同一首{:5_150:}

liumang 发表于 2024-9-28 09:33

这个播放器和前面那个一样,可以一键停止{:5_150:}

liumang 发表于 2024-9-28 09:34

{:5_149:}{:5_149:}{:5_149:}

liumang 发表于 2024-10-22 10:08

这个也是苹果香{:5_125:}
页: [1]
查看完整版本: 苹果香(合唱Live版)-黑大婶回乡带娃