【七夕快乐】我等的人会是谁
<style>.papa { left: -200px;width: 1280px;height: 650px;top:150px; background: rgba(0,0,0,.4) url('https://wj.zp68.com/lxx/yunhua/2022/06/26/01.jpg'); position: relative; }
.papa input { border: none; outline: none; opacity: .75; cursor: pointer; }
.papa p { margin: 0; padding: 0; }
.playbox { position: relative; left: 810px; top: 410px; padding: 10px; width: fit-content; font: normal 1em sans-serif; color: snow; background: rgba(255,255,255,.25); backdrop-filter: blur(2px); border-radius: 8px; overflow: hidden; box-shadow: 1px 2px 2px #000; }
#btnplay { width: 30px; height: 30px; border-radius: 50%; }
#btnplay:hover { background: #aaa; color: #ff0000; }
</style>
<div class="papa">
<div class="playbox">
<p id="geci">LRC Loading ... </p>
<p style="display: flex; align-items: center; gap: 4px; margin-top: 10px;">
<input id="btnplay" type="button" value=">" />
<input id="slider" type="range" min="0" max="100" value="0" />
<span id="per">0:0 | 0:0</span>
</p>
</div>
<audio id="aud" src="https://wj.zp68.com/lxx/yunhua/2022/06/26/01.mp3" autoplay="autoplay" loop="loop"></audio>
</div>
<script>
let slider = document.querySelector('#slider'),
aud = document.querySelector('#aud'),
per = document.querySelector('#per'),
btnplay = document.querySelector('#btnplay'),
geci = document.querySelector('#geci');
let slip = 0; //误差值
let lrcAr = [
['0.08','我等的人会是谁 '],
['8.47','歌手:依侗'],
['16.64','祝大家七夕快乐!'],
['24.91','我的故事也许比较特别'],
['30.45','走过的路也许比较迂回'],
['36.24','黑暗之中全凭着直觉'],
['42.01','keep my faith watch my steps'],
['47.34','一步步靠直觉'],
['52.41','也许有天生命中会出现'],
['57.67','那一个谁走进我的心里面'],
['63.53','他不必是个mr perfect'],
['69.05','只要他善良体贴'],
['74.49','be my friend and be my soul mate'],
['79.87','我等的人会是谁何时才出现'],
['86.74','make me whole make me brave'],
['91.95','我等的人会是谁不急在眼前'],
['98.67','i can wait i will pray'],
['105.09','LRC编辑:宁静'],
['130.17','也许有天生命中会出现'],
['135.17',' 那一个谁走进我的心里面'],
['140.17',' 他不必是个mr perfect'],
['147.50',' 只要他善良体贴'],
['151.72','be my friend and be my soul mate'],
['158.61','我等的人会是谁何时才出现'],
['163.63','make me whole make me brave'],
['169.19','我等的人会是谁希望他了解'],
['179.19','不管迷惘或坚决都是我的某一面'],
['192.67','我并不追求完美'],
['197.87','只要能用心体会每一天都是'],
['206.27','better day'],
['209.35','我等的人会是谁何时才出现'],
['215.73','make me whole make me brave'],
['221.28','我等的人会是谁何时才出现'],
['227.75','陪着我一天一点让生命能变得更美'],
['244.04','谢谢欣赏'],
['259.23','祝大家开心快乐每一天'],
['264.78',''],
];
slider.onmousedown = () => aud.pause();
slider.onchange = () => { aud.currentTime = slider.value * aud.duration / 100; aud.play(); }
btnplay.onclick = () => aud.paused ? aud.play() : aud.pause();
aud.addEventListener('playing', () => btnplay.value = '||');
aud.addEventListener('pause', () => btnplay.value = '>');
aud.addEventListener('timeupdate', () => {
let prog = 100 * aud.currentTime / aud.duration;
slider.value = prog;
per.innerText = toMin(aud.currentTime) + ' | ' + toMin(aud.duration);
for(j=0; j<lrcAr.length; j++){
if(aud.currentTime >= lrcAr - slip){
geci.innerHTML = lrcAr;
}
}
});
let toMin = (sec) => {
if(!sec) return '0:00';
sec = parseInt(sec);
return parseInt(sec / 60) + ':' +parseFloat(sec % 60).toString().padStart(2,'0');
}
</script>
<br><br><br><br><br><br><br><br><br><br> 祝论坛的朋友们七夕快乐! 宁静好!七夕快乐哦! 在贝壳里躺着看书,真的好舒坦
宁静七夕快乐~ 等的人是我是我还是我,哈,宁静,七夕快乐{:10_401:}{:10_402:} 楚心兰 发表于 2022-8-4 18:59
宁静好!七夕快乐哦!
兰兰好,七夕快乐{:10_402:}
瞳萤 发表于 2022-8-4 19:05
在贝壳里躺着看书,真的好舒坦
宁静七夕快乐~
瞳萤七夕快乐。一起躲贝壳里面来
{:10_401:}
一抹微蓝 发表于 2022-8-4 19:12
等的人是我是我还是我,哈,宁静,七夕快乐
啊~~~等到蓝蓝了{:10_401:}
宁静 发表于 2022-8-4 18:04
祝论坛的朋友们七夕快乐!
小妹七夕快乐{:10_402:}
一抹微蓝 发表于 2022-8-4 19:12
等的人是我是我还是我,哈,宁静,七夕快乐
微蓝七夕快乐{:10_402:}
页:
[1]
2