-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.js
26 lines (25 loc) · 1.01 KB
/
custom.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Here You can type your custom JavaScript...
// USE ExtensionCustom JavaScript for websites to inject this code
$('.list').each(function(i, el) { $(el).css("background-color", "pink") })
$('.list').each(function(i, el) {
switch ($(el).find(".list-header-name").text()) {
case "Urgent":
$(el).css("background-color", "crimson");
$(el).find(".list-header-name").css("color", "white");
$(el).find(".open-card-composer").css("color", "white");
break;
case "Today":
$(el).css("background-color", "lightgoldenrodyellow");
break;
case "Doing":
$(el).css("background-color", "lightcyan");
break;
case "Done":
$(el).css("background-color", "seagreen");
$(el).find(".list-header-name").css("color", "white");
$(el).find(".open-card-composer").css("color", "white");
break;
default:
$(el).css("background-color", "#E2E4E6");
}
});