mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 09:22:31 -06:00
gridmode shortcut in the audio drawer
This commit is contained in:
parent
bc3bbe07d4
commit
72a8593ecd
|
@ -337,10 +337,18 @@ html.light #ggrid a.sel {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: #3c3c3c;
|
background: #3c3c3c;
|
||||||
}
|
}
|
||||||
|
#wtgrid,
|
||||||
#wtico {
|
#wtico {
|
||||||
cursor: url(/.cpr/dd/4.png), pointer;
|
cursor: url(/.cpr/dd/4.png), pointer;
|
||||||
animation: cursor 500ms;
|
animation: cursor 500ms;
|
||||||
|
position: relative;
|
||||||
|
top: -.06em;
|
||||||
}
|
}
|
||||||
|
#wtgrid {
|
||||||
|
font-size: .8em;
|
||||||
|
top: -.12em;
|
||||||
|
}
|
||||||
|
#wtgrid:hover,
|
||||||
#wtico:hover {
|
#wtico:hover {
|
||||||
animation: cursor 500ms infinite;
|
animation: cursor 500ms infinite;
|
||||||
}
|
}
|
||||||
|
@ -358,7 +366,7 @@ html.light #ggrid a.sel {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -1.2em;
|
top: -1.2em;
|
||||||
right: 0;
|
right: 0;
|
||||||
width: 1.2em;
|
width: 2.8em;
|
||||||
height: 1em;
|
height: 1em;
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
line-height: 1em;
|
line-height: 1em;
|
||||||
|
@ -390,10 +398,10 @@ html.light #ggrid a.sel {
|
||||||
line-height: 1em;
|
line-height: 1em;
|
||||||
}
|
}
|
||||||
#wtoggle.np {
|
#wtoggle.np {
|
||||||
width: 5.5em;
|
width: 7em;
|
||||||
}
|
}
|
||||||
#wtoggle.sel {
|
#wtoggle.sel {
|
||||||
width: 6.4em;
|
width: 7.68em;
|
||||||
}
|
}
|
||||||
#wtoggle.sel #wzip,
|
#wtoggle.sel #wzip,
|
||||||
#wtoggle.np #wnp {
|
#wtoggle.np #wnp {
|
||||||
|
|
|
@ -37,6 +37,7 @@ ebi('widget').innerHTML = (
|
||||||
' href="#" id="npirc" tt="copy irc-formatted track info">📋irc</a><a' +
|
' href="#" id="npirc" tt="copy irc-formatted track info">📋irc</a><a' +
|
||||||
' href="#" id="nptxt" tt="copy plaintext track info">📋txt</a>' +
|
' href="#" id="nptxt" tt="copy plaintext track info">📋txt</a>' +
|
||||||
'</span><a' +
|
'</span><a' +
|
||||||
|
' href="#" id="wtgrid">田</a><a' +
|
||||||
' href="#" id="wtico">♫</a>' +
|
' href="#" id="wtico">♫</a>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div id="widgeti">' +
|
'<div id="widgeti">' +
|
||||||
|
@ -1485,8 +1486,11 @@ var thegrid = (function () {
|
||||||
r.setdirty();
|
r.setdirty();
|
||||||
};
|
};
|
||||||
|
|
||||||
ebi('griden').onclick = function (e) {
|
ebi('griden').onclick = ebi('wtgrid').onclick = function (e) {
|
||||||
ev(e);
|
ev(e);
|
||||||
|
if (!this.closest)
|
||||||
|
return;
|
||||||
|
|
||||||
r.en = !r.en;
|
r.en = !r.en;
|
||||||
bcfg_set('griden', r.en);
|
bcfg_set('griden', r.en);
|
||||||
if (r.en) {
|
if (r.en) {
|
||||||
|
|
Loading…
Reference in a new issue