diff --git a/src/main/resources/assets/css/verapdf.css b/src/main/resources/assets/css/verapdf.css index 23f55b26..af985983 100644 --- a/src/main/resources/assets/css/verapdf.css +++ b/src/main/resources/assets/css/verapdf.css @@ -151,4 +151,11 @@ table { .error-form-data { color: red; +} + +#configure-validator-header, #result-details { + overflow-wrap: anywhere; + color: #707070; + font-style: italic; + font-size: 0.95em; } \ No newline at end of file diff --git a/src/main/resources/assets/js/verapdf.js b/src/main/resources/assets/js/verapdf.js index bb68ece6..fe99c6be 100644 --- a/src/main/resources/assets/js/verapdf.js +++ b/src/main/resources/assets/js/verapdf.js @@ -36,7 +36,7 @@ $(document).on('change', '.btn-file :file', function () { } } $('a[href="#validate"]').attr("disabled","disabled"); - $('#configure-validator-header').text(`Configure Validator for ${$('#fileInput')[0].files[0].name}`); + $('#configure-validator-header').text($('#fileInput')[0].files[0].name); reader.readAsBinaryString(file) }) @@ -151,17 +151,16 @@ function changeOutputFormat (newFormat) { function callVeraPdfService () { var formData = new FormData($('form')[0]) - - $('#results').empty() + $.when($('#results').empty()).then(addFileConfigurationToResult()); var spinHtml = $('#spinner-template').html() $('#results').html(spinHtml) pdfaValidator.validate(formData, flavour, function () { - $.when(renderResult()).then(addFileConfigurationToResult()).then((showDownloadBtn())); + $.when(renderResult()).then(showDownloadBtn()); }, outputFormat) } function addFileConfigurationToResult () { - $("#result-details").text(`Validation results for ${$('#fileInput')[0].files[0].name} are shown below.`); + $("#result-details").text($('#fileInput')[0].files[0].name); } function showDownloadBtn () { diff --git a/src/main/resources/org/verapdf/rest/views/restclient.mustache b/src/main/resources/org/verapdf/rest/views/restclient.mustache index 2fe7bc02..4a36d2e3 100644 --- a/src/main/resources/org/verapdf/rest/views/restclient.mustache +++ b/src/main/resources/org/verapdf/rest/views/restclient.mustache @@ -76,7 +76,7 @@
-

Configure Validator

+

Configure Validator for