-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev-green.js
30 lines (26 loc) · 1.2 KB
/
dev-green.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
27
28
29
30
(function changeAllBarsToSucceeded() {
var unsuccessfulBarTypes = ['failed', 'partiallysucceeded', 'canceled'];
unsuccessfulBarTypes.forEach(function (barType) {
var bars = Array.from(document.getElementsByClassName('bar ' + barType + ' interactive'));
for (var i = 0; i < bars.length; i++) {
bars[i].classList.remove(barType);
bars[i].classList.add('succeeded');
}
});
})();
(function changeAllStatusIconsToSuccess() {
var unsuccessfulStatusIconsTypes = ['error', 'failure'];
unsuccessfulStatusIconsTypes.forEach(function (iconType) {
var icons = Array.from(document.getElementsByClassName('bowtie-icon bowtie-status-' + iconType));
for (var i = 0; i < icons.length; i++) {
icons[i].classList.remove('bowtie-status-' + iconType);
icons[i].classList.add('bowtie-status-success');
}
});
})();
(function changeAllStatusIconsToGreen() {
var icons = Array.from(document.getElementsByClassName('bowtie-icon bowtie-status-success bowtie-warning-color'));
for (var i = 0; i < icons.length; i++) {
icons[i].classList.remove('bowtie-warning-color');
}
})();