Update tracker
This commit is contained in:
parent
b3ea17e589
commit
e8fd34d433
|
@ -80,8 +80,24 @@ PleromaModPlayer = function (attachment) {
|
|||
this.attachment.appendChild(this.patternCanvas);
|
||||
|
||||
this.instruments = document.createElement("div");
|
||||
this.instruments.setAttribute("class", "mod-instruments");
|
||||
this.instruments.setAttribute("class", "mod-instruments collapsed");
|
||||
this.attachment.appendChild(this.instruments);
|
||||
|
||||
const linkExpand = document.createElement("a");
|
||||
linkExpand.href = "#";
|
||||
linkExpand.classList.add("cw-status-hider");
|
||||
linkExpand.innerText = "show more";
|
||||
linkExpand.onclick = (event) => {
|
||||
if (this.instruments.classList.contains("collapsed")) {
|
||||
this.instruments.classList.remove("collapsed");
|
||||
linkExpand.innerText = "show less";
|
||||
} else {
|
||||
this.instruments.classList.add("collapsed");
|
||||
linkExpand.innerText = "show more";
|
||||
}
|
||||
event.preventDefault();
|
||||
};
|
||||
this.attachment.appendChild(linkExpand);
|
||||
},
|
||||
|
||||
function play () {
|
||||
|
|
|
@ -147,6 +147,11 @@ body .mod-player input.mod-volumebar {
|
|||
font-family: monospace;
|
||||
}
|
||||
|
||||
.mod-player .mod-instruments.collapsed {
|
||||
max-height: 168px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.xm-player {
|
||||
display: block;
|
||||
width: 100%;
|
||||
|
|
Loading…
Reference in New Issue