醉美水芙蓉 发表于 2026-5-28 21:10:02

姜丝儿花一样静谧《雨亦翻唱集锦》

<style>
#papa { margin: 130px 0 0 calc(50% - 881px); display: grid; place-items: center; width: 1700px; height:1100px; background: gray url('http://cccimg.com/view.php/04dc81f3f66fbdf3fd278f5af271f228.png') no-repeat center/cover; background-blend-mode: normal, color; box-shadow: 3px 3px 20px #000; overflow: hidden; user-select: none; position: relative; perspective: 3000px; z-index: 1; }
#papa::before, #papa::after { position: absolute; content: ''; pointer-events: none; }
#vid {
        position: absolute;
        width: 110%;
        height: 100%;
        top:-80px;
        object-fit: cover;
        pointer-events: none;
        mix-blend-mode: screen;
        z-index: 2;
        opacity: .96;
}

</style>
<div id="papa"><video id="vid" src="https://assets.mixkit.co/videos/32982/32982-720.mp4" autoplay="" loop="" muted=""></video>
        </div>

<script >
(function() {
        (function(mkPlayer) {let defaults = {player_css: 'bottom: 0; left: 50%; transform: translateX(-50%);',mlist_css: 'top: 0; left: 0;',fs_btn: 'left: 0; top: 0;',playerCode: `<style>#mplayer {position: absolute;display: grid;grid-template-areas: 'cur btnplay dur''prog prog prog';gap: 8px 2px;place-items: end center;color: var(--color);font: normal 16px sans-serif;padding-bottom: 20px;z-index: 999;--ww: 260px;--color: hsla(0,0%,100%,.75);--track: hsla(90,100%,95%,.65);--prog: linear-gradient(90deg,hsla(90,30%,50%,.55),hsla(280,40%,50%,.75),hsla(30,100%,50%,.65));}#cur { grid-area: cur; color: var(--color); }#dur { grid-area: dur; color: var(--color); }#btnplay {--state: paused;grid-area: btnplay;background: conic-gradient(red,orange,yellow,green,teal,blue,purple);mask: radial-gradient(transparent 3px,red 0);-webkit-mask: radial-gradient(transparent 3px,red 0);border-radius: 50%;width: 35px;height: 35px;cursor: pointer;animation: rot linear 3s infinite;animation-play-state: var(--state);}#prog {--xx: 0px;grid-area: prog;width: var(--ww);height: 4px;background: var(--track);position: relative;display: grid;place-items: center;border-radius: 4px;}#prog::before, #prog::after { position: absolute; content: ''; }#prog::before {left: 0;width: var(--xx);height: 100%;border-radius: 6px;background: var(--prog);border-radius: 4px;}#prog::after {left: calc(var(--xx) - 12px);opacity: .85;width: 16px;height: 16px;background: radial-gradient(transparent 2px, teal 0, black);border-radius: 50%;cursor: pointer;}#mlist { --color1: lightgreen; --color2: pink;position: absolute; padding: 20px; }#mlist > a { color: var(--color1); cursor: pointer; text-shadow: 1px 1px 2px black; text-decoration: none; }#mlist >a:hover { color: var(--color2); }.sColor { color: var(--color2); }#btnMsg {position: absolute;color: snow;background: black;opacity: 0;border: 2px solid snow;border-radius: 8px;padding: 4px;transition: all .75s;cursor: pointer;z-index: 1000;}@keyframes rot { to { transform: rotate(1turn); } }</style><div id="mlist"></div><div id="mplayer"><span id="btnplay"></span><span id="prog"></span><span id="cur">00:00</span><span id="dur">00:00</span></div><span id="btnMsg">全屏观赏</span>`,};let playCode = (user_config) => {let data = Object.assign({}, defaults, user_config);papa.innerHTML += data.playerCode;mplayer.style.cssText += data.player_css;mlist.style.cssText += data.mlist_css;btnMsg.style.cssText += data.fs_btn;let mDrag = false, timerId, fs = false;let aud = document.createElement('audio');papa.appendChild(aud);(function addList() {let str = '';data.m_ar.forEach( (item,key) => {str += `<a onclick="javascript:mplay(${key})">${key+1} ${data.m_ar}</a><br>`;});mlist.innerHTML = str;})();btnplay.onclick = () => aud.paused ? aud.play() : aud.pause();btnMsg.onclick = () => fs ? document.exitFullscreen() : papa.requestFullscreen();papa.onmousemove = (e) => {clearTimeout(timerId);btnMsg.style.opacity = '.95';timerId = setTimeout('btnMsg.style.opacity = "0"', 3000);};aud.addEventListener('timeupdate', () => {cur.innerText = toMin(aud.currentTime);dur.innerText = toMin(aud.duration);if(mDrag===false) prog.style.setProperty('--xx', aud.currentTime * prog.offsetWidth / aud.duration + 'px');});aud.addEventListener('pause', () => mState());aud.addEventListener('play', () => mState());aud.addEventListener('ended', () => mplay());aud.onerror = () => mplay();prog.onmousedown = () => mDrag = true;document.onmouseup = () => mDrag = false;mplayer.onmouseup = (e) => { if(mDrag) aud.currentTime = aud.duration * e.offsetX / prog.offsetWidth; };mplayer.onmousemove = (e) => { if(mDrag) moveBar(e.offsetX); };let mState = () => aud.paused ? btnplay.style.setProperty('--state', 'paused'): btnplay.style.setProperty('--state', 'running');mplay = (idx=-1) => {if (idx < 0) idx = Math.floor(Math.random() * data.m_ar.length);aud.src = data.m_ar;aud.play();setRed(idx);};document.addEventListener("fullscreenchange", () => {if (document.fullscreenElement !== null) {fs = true;btnMsg.innerText = '退出全屏';} else {fs = false;btnMsg.innerText = '全屏观赏';}});let setRed= (idx) => {let str = mlist.innerHTML;str = str.replace(/<\/?span[^\>]*\>/g,'');str = str.replace(`${idx+1} ${m_ar}`, `${idx+1} <span class="sColor">${m_ar}</span>`);mlist.innerHTML = str;};let moveBar = (x) => {if(x < 0) x = 0;if(x > prog.offsetWidth - 5) x = prog.offsetWidth - 5;prog.style.setProperty('--xx', x + 'px');};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;};mplay();};mkPlayer.HCPlayer = playCode;})(this);
        let m_ar = [
                ['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=BbFpBdB0-t_CUBDm','我们在蓝色海上飘'],
                ['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=F_BtFkFhi03ybFui','我在春天等你'],
                ['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=z7s2zPzGwWyI4zmL','希望你被这个世界爱着'],
                ['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=Ys7wYqYfub7z6Yyh','是你治愈了我的孤单'],
                ['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=O-aROnO1wYg_XORt ','匆匆'],
                ['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=6Xu86H6J7gxMo60R&amp;shareuid','红 蔷 薇'],
                ['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=mHLEmXmAPgiSBmq1','你知道我在等你吗'],
                ['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=yY1HRtyXR05z6y4g&g_f','雪落寂静海'],
                ['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=JyRaJ5J6o1-F7JrO','去有风的地方'],
                ['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=VRy-V9Vga0jZnV3B','岁岁'],       
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=O-aROnO1CYZ1UOh4','肩上的云'],       
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=QdeGQbQ2jiG_fQq8','我们好像在哪儿见过'],       
['https://qiniuuwmp3.changba.com/2cdd25bcc1517fea41136e099ce9472d.mp3','花妖'],       
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=rNELrIrlH30d1rrq','胡广生'],       
['https://qiniuuwmp3.changba.com/434eabab574a4063cabbe8ba62d0e24c.mp3','繁花依旧 '],       
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=yJVWyAyXOdNXjyYg','万物温柔相依'],       
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=rNELrIrlHCXHwrsC','归来的燕子'],       
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=C0KPC2CbEHklHCkr','荷花一样静谧 '],       
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=z7s2zPzGwyXxmzt8','春夏秋冬'],       
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=ug61u4uRjY0hSu1i','风的四季'],       
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=0ChU0M0B_Yuaq0l5','我只要你'],       
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=qoUhqYqtyZUjcqSF','追月亮的人'],       
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=PUoCPzPimERWQPkm','叶塞尼亚(片段) '],       
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=RVJORcRufYaRvRFe','落了白'],       
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=PUoCPzPiR5IbAPjg','九月'],       
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=O-aROnO1w1IKrOt5','幸福可以很简单'],       
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=j8IXjEjWQ4XrujbW','凡人诀'],       
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=O-aROnO1wcvZtOSQ','半生雪'],       
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=DfGeDxDs7IjMNDax','朝云暮雨'],       
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=qoUhqYqt4yan6qqb','时光谣'],
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=X6gjXmXyGwV1cXkV','莫怕莫怕'],
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=yJVWyAyXO2V35ykN','我的孤独认出你的孤独'],
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=QdeGQbQ2j0eUAQqW','浅遇深藏'],
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=9cAl9V9LxhdKq9a8','向 云 端'],
['http://cgi.kg.qq.com/fcgi-bin/fcg_get_play_url?shareid=BbFpBdB0x_3F7BBr','朝夕四季'],




];
        HCPlayer({

                m_ar: m_ar,
                mlist_css: '--color1: lightgreen; --color2: orange; top: 0; right: 0;',
                fs_btn: 'left: 20px; bottom: 20px; background: transparent;',
        });
})();

</script>
页: [1]
查看完整版本: 姜丝儿花一样静谧《雨亦翻唱集锦》