【三九消寒】第四天 思
<style>#papa {
width: 640px;
min-height: 1020px;
padding: 40px;
box-sizing: border-box;
border-radius: 12px;
box-shadow: 0 0 8px #000;
position: relative;
margin: 20px auto;
top: 50px;
display: grid; user-select: none;
place-items: center;
user-select: none;
}
#tit {
position: absolute;
left: 175px;
top: 400px;
font: bold 22px/26px 'FangSong',serif;
color: SlateBlue;
}
#papa::before, #papa::after {
position: absolute;
content: '';
}
#papa::before {
left: 10px;
top: 10px;
right: 10px;
bottom: 10px;
border: 2px dashed DarkBlue;
border-radius: inherit;
}
#papa::after {
content: '【三九消寒】第四天 思';
padding: 10px 40px 10px 10px;
left: -10px;
top: 20px;
border-radius: 10px 0 0 10px;
background: MediumBlue;
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: 50px;
top: 90px;
width: 500px;
height: 281px;
}
.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/659cd4b7871b83018a1464b3.jpg""" alt="" />
<img src="https://pic.imgdb.cn/item/6482db5b1ddac507ccaa9ddd.gif" alt="" class="mpic" />
<div id="tit">三九用联:临亭相思昵浓送恬音<br>
2024-01-12•樵歌<br><br>
第四天 思<br><br>
偶然翻开柏拉图的书<br>
那篇“精神恋爱”的方法<br>
依然遭遇批判<br>
然后坚决地,从笛卡尔理论里反动<br>
我思,故你在<br>
是我实践的信条<br><br>
我的观点也和诗经鲜明<br>
都把相知相爱的句子<br>
用相思来包裹着<br>
寄给远方的<br>
日日夜夜<br><br>
</div><br><br><br>
<audio id="aud" src="https://music.163.com/song/media/outer/url?id=2096190893.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: 280px;--color: MidnightBlue;--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 2.4em sans-serif;color: hsl(0, 10%, 90%);white-space: pre;-webkit-background-clip: text;filter: drop-shadow(1px 1px 2px hsla(0, 0%, 0%, .95));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% - 90px); bottom: 15px; --bg: linear-gradient(hsla(100, 100%, 70%, .35),hsla(120, 100%, 50%, .55));',
player_css: 'left: 170px; bottom: 90px;--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>
这个还把相思上升了高度,写出了这份情感的珍贵。欣赏师兄好诗{:4_187:} 发现这个也不知道从哪下笔,也挺难写的。还没写呢,等晚上再想想怎么写吧{:4_173:} 相思是幸福的,相思也是痛苦的。 敢恨敢爱的真男儿。 红影 发表于 2024-1-12 16:24
这个还把相思上升了高度,写出了这份情感的珍贵。欣赏师兄好诗
由思,就想了恋字,然后就想到那句名言“我思故我在”了,就跟着找到凑的开始了{:4_189:} 庶民 发表于 2024-1-12 16:44
敢恨敢爱的真男儿。
哈,写字哈。{:4_189:} 梦油 发表于 2024-1-12 16:41
相思是幸福的,相思也是痛苦的。
是呀,年青人都 被折腾过{:4_189:} 红影 发表于 2024-1-12 16:25
发现这个也不知道从哪下笔,也挺难写的。还没写呢,等晚上再想想怎么写吧
找一首情浓的长相思古韵来解构呗{:4_173:} 红影 发表于 2024-1-12 16:25
发现这个也不知道从哪下笔,也挺难写的。还没写呢,等晚上再想想怎么写吧
我也在想该如何下笔, 上次写过一次 欣赏这样的果敢。人活在世上,可以不成功,但不可以没有态度 樵歌 发表于 2024-1-12 18:01
由思,就想了恋字,然后就想到那句名言“我思故我在”了,就跟着找到凑的开始了
是的,每次凑字都可能是打开一个突破口了{:4_187:} 樵歌 发表于 2024-1-12 18:03
找一首情浓的长相思古韵来解构呗
我找了一首歌,跟着歌曲去写了{:4_173:} 小九 发表于 2024-1-12 18:21
我也在想该如何下笔, 上次写过一次
只能重新换个角度写了呢。 马黑黑 发表于 2024-1-12 19:43
欣赏这样的果敢。人活在世上,可以不成功,但不可以没有态度
论某教练说过,态度决定一切。果然把最怂逼的队带入世界杯了!{:4_173:} 马黑黑 发表于 2024-1-12 19:43
欣赏这样的果敢。人活在世上,可以不成功,但不可以没有态度
得马师抬爱{:4_190:}荣誉,但单独某天我们龟腚是不加精的{:4_189:}不是反动哈 樵歌 发表于 2024-1-13 09:04
得马师抬爱荣誉,但单独某天我们龟腚是不加精的不是反动哈
{:4_172:} 樵歌 发表于 2024-1-13 09:02
论某教练说过,态度决定一切。果然把最怂逼的队带入世界杯了!
{:4_181:} 樵歌 发表于 2024-1-12 18:02
是呀,年青人都 被折腾过
是的,樵歌朋友。我们都是过来人,对于“相思”,有着不同的经历和相同的的理解。 红影 发表于 2024-1-12 20:51
是的,每次凑字都可能是打开一个突破口了
这样写多,以后有事触动,就会很快写出来了{:4_189:}
页:
[1]
2