-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsolarwinds.js
More file actions
39 lines (31 loc) · 1.31 KB
/
solarwinds.js
File metadata and controls
39 lines (31 loc) · 1.31 KB
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
31
32
33
34
35
36
37
38
/** Simple Style Tweaks *******************************************************/
// $('.sw-app-region').css('background-color', '#231f20');
// $('.slideshow').css('background-color', '#231f20');
// $('.titleTable').css('background-color', '#231f20');
// $('.titleTable').css('color', '#ccc');
// $('.page-title').css('color', '#ccc');
// $('.sw-hdr-timestamp').css('color', '#ccc');
/** Adva Style Tweaks *********************************************************/
var AlertPanel = $('.ResourceWrapper').toArray();
for (var i = 0; i < AlertPanel.length; i++) {
if (AlertPanel[i].innerText.includes('Active Alerts on This Node (0)')
|| AlertPanel[i].innerText.includes('Active Application Alerts (0)')) {
AlertPanel[i].hidden = true;
}
}
/*** Alert Style Tweaks *******************************************************/
$('.activeAlerts-rowSerious').each( function (i) {
$(this).css('background-color', 'orange');
$(this).css('color', '#fff');
$(this).find('a').each(function (a) {
$(this).css('color', '#000');
});
});
$('.activeAlerts-rowError').each( function (i) {
$(this).css('background-color', 'red');
$(this).css('color', '#fff');
$(this).find('a').each(function (a) {
$(this).css('color', '#000');
});
});
/*** EOF Tweaks ***************************************************************/