Compare commits
No commits in common. "11956da3907526f8a80ed84cbfe3a65089788113" and "6b06868a642aeeec103bbb89183072bd9013b4e8" have entirely different histories.
11956da390
...
6b06868a64
|
@ -20,7 +20,7 @@ h2.bot {
|
||||||
background-color: #80cbc4;
|
background-color: #80cbc4;
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
font-size: clamp(1rem, -0.8750rem + 8.3333vw, 2rem);
|
font-size: 30px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: #073642
|
color: #073642
|
||||||
|
|
22
js/script.js
22
js/script.js
|
@ -24,17 +24,18 @@ window.onload = function() {
|
||||||
group: "dndmusicbot-playlists",
|
group: "dndmusicbot-playlists",
|
||||||
filter: ".locked",
|
filter: ".locked",
|
||||||
onMove: (e) => {
|
onMove: (e) => {
|
||||||
if (e.related) {
|
if (e.related)
|
||||||
return !e.related.classList.contains('locked');
|
{
|
||||||
}
|
return !e.related.classList.contains('locked');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
invertSwap: true,
|
invertSwap: true,
|
||||||
store: {
|
store: {
|
||||||
get: function (sortable) {
|
get: function(sortable) {
|
||||||
var order = localStorage.getItem(sortable.options.group.name);
|
var order = localStorage.getItem(sortable.options.group.name);
|
||||||
return order ? order.split('|') : [];
|
return order ? order.split('|') : [];
|
||||||
},
|
},
|
||||||
set: function (sortable) {
|
set: function(sortable) {
|
||||||
var order = sortable.toArray();
|
var order = sortable.toArray();
|
||||||
localStorage.setItem(sortable.options.group.name, order.join('|'));
|
localStorage.setItem(sortable.options.group.name, order.join('|'));
|
||||||
}
|
}
|
||||||
|
@ -45,17 +46,18 @@ window.onload = function() {
|
||||||
group: "dndmusicbot-ambiance",
|
group: "dndmusicbot-ambiance",
|
||||||
filter: ".locked",
|
filter: ".locked",
|
||||||
onMove: (e) => {
|
onMove: (e) => {
|
||||||
if (e.related) {
|
if (e.related)
|
||||||
return !e.related.classList.contains('locked');
|
{
|
||||||
}
|
return !e.related.classList.contains('locked');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
invertSwap: true,
|
invertSwap: true,
|
||||||
store: {
|
store: {
|
||||||
get: function (sortable) {
|
get: function(sortable) {
|
||||||
var order = localStorage.getItem(sortable.options.group.name);
|
var order = localStorage.getItem(sortable.options.group.name);
|
||||||
return order ? order.split('|') : [];
|
return order ? order.split('|') : [];
|
||||||
},
|
},
|
||||||
set: function (sortable) {
|
set: function(sortable) {
|
||||||
var order = sortable.toArray();
|
var order = sortable.toArray();
|
||||||
localStorage.setItem(sortable.options.group.name, order.join('|'));
|
localStorage.setItem(sortable.options.group.name, order.join('|'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue