mirror of https://github.com/MISP/MISP
fix: [decaying:basescore_config] Fixed CSS for large tags
parent
0393c7ee9a
commit
60338499c7
|
@ -73,8 +73,8 @@
|
|||
</td>
|
||||
<td id="basescore-example-tag-0">
|
||||
<div style="width:100%;display:inline-block;" data-original-title="" title="">
|
||||
<div id="basescore-example-customtag-container" style="float:left" data-original-title="" title="">
|
||||
<button id="basescore-example-score-addTagButton" class="btn btn-inverse noPrint" style="line-height:10px; padding: 4px 4px;" title="Add tag" onclick="event.stopPropagation(); addTagWithValue(this);">+</button>
|
||||
<div id="basescore-example-customtag-container" style="float: left;display: flex;flex-flow: wrap;" data-original-title="" title="">
|
||||
<button id="basescore-example-score-addTagButton" class="btn btn-inverse noPrint" style="line-height:10px; padding: 4px 4px; margin-right: 3px;" title="Add tag" onclick="event.stopPropagation(); addTagWithValue(this);">+</button>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
|
|
@ -114,6 +114,10 @@
|
|||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.decayingExampleTags {
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
/* decaying simulation */
|
||||
div.simulationSubContainer{
|
||||
padding: 15px;
|
||||
|
|
|
@ -211,14 +211,15 @@ function refreshExamples() {
|
|||
for (var i = 1; i <= 3; i++) {
|
||||
var numerical_values = [];
|
||||
tags = pickRandomTags();
|
||||
tags_html = '';
|
||||
tags_html = '<div style="display: flex; flex-flow: wrap;">';
|
||||
tags.forEach(function(tag) {
|
||||
numerical_values.push({name: tag.name.split(':')[0], value: tag['numerical_value']});
|
||||
var text_color = getTextColour(tag.colour);
|
||||
tags_html += '<span class="tag decayingExampleTags" style="background-color: ' + tag.colour + ';color:' + text_color + '" '
|
||||
+ 'title="numerical_value=' + tag['numerical_value'] + '" '
|
||||
+ 'data-placement="right">' + tag.name + '</span> ';
|
||||
tags_html += '<span class="tagComplete decayingExampleTags" style="background-color: ' + tag.colour + ';color:' + text_color + '" '
|
||||
+ 'title="numerical_value=' + tag['numerical_value'] + '" '
|
||||
+ 'data-placement="right">' + tag.name + '</span> ';
|
||||
});
|
||||
tags_html += '</div>';
|
||||
|
||||
base_score_computation[i] = compute_base_score(numerical_values);
|
||||
var base_score = base_score_computation[i].score.toFixed(1);
|
||||
|
|
Loading…
Reference in New Issue