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