Update tracker

This commit is contained in:
Your New SJW Waifu 2020-05-15 10:20:51 -05:00
parent b3ea17e589
commit e8fd34d433
2 changed files with 22 additions and 1 deletions

View File

@ -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 () {

View File

@ -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%;