红影 发表于 2024-2-15 12:58

【七九消寒】第二天 · 后

<style>
#papa {
      width: 640px;      
      min-height: 1120px;
      padding: 40px;
      box-sizing: border-box;
      border-radius: 12px;
      box-shadow: 0 0 8px #000;
      position: relative;
      margin: 60px auto 80px auto;
      top: 0px;
      display: grid; user-select: none;
      place-items: center;
      user-select: none;
}
#tit {
      position: absolute;
      left: 155px;
      top: 400px;
      font: bold 20px/26px 'FangSong',serif;
      color: Sienna;
}
#papa::before, #papa::after {
      position: absolute;
      content: '';
}
#papa::before {
      left: 10px;
      top: 10px;
      right: 10px;
      bottom: 10px;
      border: 2px dashed Brown;
      border-radius: inherit;
}
#papa::after {
      content: '七九消寒第二天 后 ';
      padding: 10px 40px 10px 10px;
      left: -10px;
      top: 20px;
      border-radius: 10px 0 0 10px;
      background: Sienna;
      opacity: .85;
      font: bold 16px/24px sans-serif;
      color: white;
      clip-path: polygon(0 0,100% 0,90% 50%, 100% 100%, 0 100%);
}
#pic {
      position: absolute;
      left: 70px;
      top: 90px;
      width: 500px;
      height: 260px;
}
.mpic { position: absolute; right: -10px; bottom: -10px; width: 300px; height: 183px; }
.mpic1 { position: absolute; width: 100%; height: 100%; left: 0px; top: 0px; opacity: .35;
      background: url('https://pic.imgdb.cn/item/647c033ef024cca17313a454.gif'); }
@keyframes swing { from { transform: rotate(3deg); } to { transform: rotate(-2deg); } }
</style>

<div id="papa">
       <div class="mpic1"></div>
       <img id="pic" src="https://pic.imgdb.cn/item/6599fc66871b83018ac50373.jpg" alt="">
       <img src="https://pic.imgdb.cn/item/6482db5b1ddac507ccaa9ddd.gif" alt="" class="mpic">
      <div id="tit">七九用联:屋后流泉复响盼绕南<br>
  2024-2-15文字:红影<br><br><br>
醉生梦死 一个个身影匆忙牵手<br>
被哨子安排的情侣或原本的预谋<br>
都在虚拟的舞池张扬 忙着做秀<br>
厚重的面具 让人仿佛不至于蒙羞<br><br>
玩一场精神出轨 爱字频频出口<br>
饮鸩止渴 彼此递送着情之毒酒<br>
浓妆让本色难参 虚情蒙蔽着双眸<br>
谁理下一场谁又和谁换位唱酬<br><br>
当终场的哨音响起 零落满地的<br>
荷尔蒙谁舍谁收 洒几滴不舍的泪<br>
这场轮回就被丢到 天涯尽头<br>
人生如戏 聚散悲欢 不需要理由<br><br>

</div><br>

<audio id="aud" src="https://music.163.com/song/media/outer/url?id=1875941511.mp3" loop="" autoplay=""></audio>
<script >
(function() {
      (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;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;z-index: 999;--ww: 240px;--color: SaddleBrown;--track: hsla(90,100%,95%,.65);--prog: linear-gradient(90deg,hsla(90,30%,50%,.55),hsla(0,100%,50%,.75),hsla(180,100%,50%,.65));}#cur { grid-area: cur; color: var(--color); }#dur { grid-area: dur; color: var(--color); }#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::before, #btnplay::after {position: absolute;content: '';width: 100%;height: 100%;background: var(--color);}#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 {--xx: 0px;grid-area: prog;width: var(--ww);height: 4px;background: var(--track);position: relative;display: grid;place-items: center;}#prog::before, #prog::after { position: absolute; content: ''; }#prog::before {left: 0;width: var(--xx);height: 100%;border-radius: 6px;background: var(--prog);}#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;}#lrc {--motion: cover2;--tt: 2s;--state: paused;--bg: linear-gradient(180deg, hsla(90, 50%, 50%, .45), hsla(0, 100%, 50%, .75));position: absolute;font: bold 1.0em serif;color: rgba(160,82,45, .95);white-space: pre;-webkit-background-clip: text; z-index: 1000;}#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=" "> </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>`,};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();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');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());prog.onmousedown = (e) => mDrag = true;prog.onmousemove = (e) => { if(mDrag) prog.style.setProperty('--xx',e.offsetX + 'px'); };prog.onmouseup = (e) => {aud.currentTime = aud.duration * e.offsetX / prog.offsetWidth;mDrag = false;};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 = 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;}};mkPlayer.HCPlayer = playCode;})(this);
      let lrcAr = [
                ,
      ];
      HCPlayer({
                lrcAr: lrcAr,
                lrc_css: 'left: calc(50% - 102px); bottom: 64px; --bg: rgba(160,82,45, .95);',
                player_css: 'left: 170px; bottom: 100px;--track: hsla(0,0%,80%,.95); --prog: linear-gradient(90deg,hsla(120,100%,50%,.55),hsla(0,100%,50%,.55),hsla(120,100%,50%,.65));',
      });
})();
</script>

小辣椒 发表于 2024-2-15 13:15

音乐很刺激呢,打开帖子就听到这么劲爆的舞曲{:4_208:}

小辣椒 发表于 2024-2-15 13:17

一个后字 引出这么热烈的舞会场景{:4_173:}

小辣椒 发表于 2024-2-15 13:17

亲爱的,写的真好,音乐也是好听{:4_199:}

樵歌 发表于 2024-2-15 13:21

人生如戏,其实我们都或多或少参与了这场舞会,只不过等清醒之后,有的人谨守内心,有的人依旧麻木继续作秀。

樵歌 发表于 2024-2-15 13:25

写得很是生动,把一场场作戏本质揭了底朝天了。{:4_173:}想起也曾掺和的两三场坛上舞会,竟然也成师妹诗中角儿了{:4_170:}

红影 发表于 2024-2-15 15:09

小辣椒 发表于 2024-2-15 13:15
音乐很刺激呢,打开帖子就听到这么劲爆的舞曲

这歌我也第一次听,想呼应一下内容,就找了这个{:4_173:}

红影 发表于 2024-2-15 15:10

小辣椒 发表于 2024-2-15 13:17
一个后字 引出这么热烈的舞会场景

那些不过是虚的呢,等散场了,各回各家各找各妈{:4_173:}

红影 发表于 2024-2-15 15:10

小辣椒 发表于 2024-2-15 13:17
亲爱的,写的真好,音乐也是好听

谢谢亲爱的鼓励{:4_187:}

红影 发表于 2024-2-15 15:21

樵歌 发表于 2024-2-15 13:21
人生如戏,其实我们都或多或少参与了这场舞会,只不过等清醒之后,有的人谨守内心,有的人依旧麻木继续作秀 ...

呵呵,这个字让我想到了舞会之后的事。那些天长地久,下一场就对另一个人说了{:4_173:}

红影 发表于 2024-2-15 15:22

樵歌 发表于 2024-2-15 13:25
写得很是生动,把一场场作戏本质揭了底朝天了。想起也曾掺和的两三场坛上舞会,竟然也成师妹诗中 ...

哪里,师兄那是偶尔的玩啊,又不是沉迷{:4_173:}

梦油 发表于 2024-2-15 16:38

被人揭下面具是一种失败,而自己揭下面具却是一种勇气,一种胜利。

红影 发表于 2024-2-15 16:56

梦油 发表于 2024-2-15 16:38
被人揭下面具是一种失败,而自己揭下面具却是一种勇气,一种胜利。

不过,化妆舞会都是带面具的啊,这个不存在揭开的事呢{:4_173:}

小辣椒 发表于 2024-2-15 19:48

红影 发表于 2024-2-15 15:09
这歌我也第一次听,想呼应一下内容,就找了这个

好听,第一次欣赏

小辣椒 发表于 2024-2-15 19:49

红影 发表于 2024-2-15 15:10
那些不过是虚的呢,等散场了,各回各家各找各妈

就要这样的精彩呈现,舞会是开心的玩

小辣椒 发表于 2024-2-15 19:50

红影 发表于 2024-2-15 15:10
谢谢亲爱的鼓励

越来越佩服你了,威武双全{:4_199:}

梦油 发表于 2024-2-15 20:02

红影 发表于 2024-2-15 16:56
不过,化妆舞会都是带面具的啊,这个不存在揭开的事呢

对,游戏不在此列。

红影 发表于 2024-2-15 20:53

小辣椒 发表于 2024-2-15 19:48
好听,第一次欣赏

嗯嗯,节奏很轻快{:4_173:}

红影 发表于 2024-2-15 20:54

小辣椒 发表于 2024-2-15 19:49
就要这样的精彩呈现,舞会是开心的玩

也是,不以牵手为目的的纯玩还是不错的{:4_173:}

红影 发表于 2024-2-15 20:55

小辣椒 发表于 2024-2-15 19:50
越来越佩服你了,威武双全

哪里啊,黑黑已经把我归为文科生了,学代码没天分了{:4_173:}
页: [1] 2 3 4
查看完整版本: 【七九消寒】第二天 · 后