#90 Gson implementation. #106

Merged
koleckia merged 5 commits from refactor/tools-servies-gson into master 2023-03-08 12:05:24 +01:00
Showing only changes of commit 61c4bb8e08 - Show all commits

View File

@@ -22,7 +22,7 @@ function formatAndValidateJson(errorElement) {
hljs.highlightElement(input); hljs.highlightElement(input);
const end = new Date(); const end = new Date();
processInfo.innerHTML = "<b style='color: black'>Validation and formatting time:</b> <span style='color: green'>" + (end.getMilliseconds() - start.getMilliseconds()) + "ms</span>"; processInfo.innerHTML = "<b style='color: green'>Computed in </b> <span style='color: green'>" + (end.getMilliseconds() - start.getMilliseconds()) + "ms</span>";
}) })
.catch((error) => { .catch((error) => {
processInfo.innerHTML = "<b style='color: red'>" + error + "</b>"; processInfo.innerHTML = "<b style='color: red'>" + error + "</b>";
@@ -54,7 +54,7 @@ function minimizeJson(errorElement) {
hljs.highlightElement(input); hljs.highlightElement(input);
const end = new Date(); const end = new Date();
processInfo.innerHTML = "<b style='color: black'>Validation and formatting time:</b> <span style='color: green'>" + (end.getMilliseconds() - start.getMilliseconds()) + "ms</span>"; processInfo.innerHTML = "<b style='color: green'>Computed in </b> <span style='color: green'>" + (end.getMilliseconds() - start.getMilliseconds()) + "ms</span>";
}) })
.catch((error) => { .catch((error) => {
processInfo.innerHTML = "<b style='color: red'>" + error + "</b>"; processInfo.innerHTML = "<b style='color: red'>" + error + "</b>";