better formatting
This commit is contained in:
parent
8e524fb47e
commit
07a8e02591
|
@ -27,7 +27,7 @@
|
|||
font-family: Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
#signatures b {
|
||||
.namepart {
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
||||
|
@ -141,7 +141,12 @@
|
|||
let names = data.names;
|
||||
let signatures = document.getElementById('signatures');
|
||||
names.forEach(function (name, index) {
|
||||
signatures.innerHTML += "<b>" + name + '</b>';
|
||||
let nameparts = name.split(' ');
|
||||
let fullname = "";
|
||||
nameparts.forEach(function (namepart, index) {
|
||||
fullname += '<span class="namepart">' + namepart + '</span> ';
|
||||
});
|
||||
signatures.innerHTML += "<b>" + fullname + '</b>';
|
||||
if (index < names.length - 1) {
|
||||
signatures.innerHTML += ', ';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user