mirror of
https://github.com/9001/copyparty.git
synced 2026-06-21 13:42:29 -06:00
music widget fix regex for track name
This commit is contained in:
parent
58c1d980a1
commit
552e910964
|
|
@ -1657,6 +1657,7 @@ html.b #music {
|
||||||
#mu_th img {
|
#mu_th img {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
position: absolute;
|
||||||
}
|
}
|
||||||
#mu_tn {
|
#mu_tn {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
||||||
|
|
@ -3888,7 +3888,7 @@ function play(tid, is_ev, seek) {
|
||||||
afilt.apply();
|
afilt.apply();
|
||||||
|
|
||||||
// popup player
|
// popup player
|
||||||
ebi('mu_tn').innerHTML = tname.replace(/\..*$/, '');
|
ebi('mu_tn').innerHTML = tname.replace(/\.[0-9a-z]+$/i, '');
|
||||||
var m_ext = tname.match(/[^\.]*$/);
|
var m_ext = tname.match(/[^\.]*$/);
|
||||||
if(m_ext){
|
if(m_ext){
|
||||||
QS('#mu_th>svg').style.color = intToHSL(hashCode(m_ext[0]))
|
QS('#mu_th>svg').style.color = intToHSL(hashCode(m_ext[0]))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue