chg: [main] Added special tag style

bad_encoding_pymisp
Sami Mokaddem 2023-06-06 15:46:46 -04:00
parent a0adc64e99
commit 215672b5ef
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
2 changed files with 28 additions and 0 deletions

View File

@ -2934,4 +2934,25 @@ Query builder
.freetext_row input[type=text] {
padding-left: 3px;
padding-right: 3px;
}
.special-tag {
animation: special-tag-color 4s infinite linear;
}
@keyframes special-tag-color {
0%, 100% {
background-color: #FFFFFF;
}
20% {
background-color: #339900;
}
40% {
background-color: #FFC000;
}
60% {
background-color: #CC0033;
}
80% {
background-color: #d208f4;
}
}

View File

@ -5031,6 +5031,13 @@ $(document.body).on('click', '[data-popover-popup]', function (e) {
popoverPopupNew(this, url);
});
$(document).ready(function () {
var d = new Date()
if (d.getDate() == 1 && d.getMonth() == 3) {
$("a:contains('tlp:unclear')").css('background-color', '#ffffff').addClass('special-tag')
}
});
function destroyPopovers($element) {
$element.find('[data-dismissid]').each(function() {
$(this).popover('destroy');