diff --git a/packages/example-web/index.html b/packages/example-web/index.html index 1959852..54c05aa 100644 --- a/packages/example-web/index.html +++ b/packages/example-web/index.html @@ -128,13 +128,8 @@ const options = { stringify: { system: systems.enUS.shortCount, - makeGroupOptions: { - shortenMillia: false, - addTensDashes: true, - }, - finalizeOptions: { - oneGroupPerLine: true, - }, + makeGroupOptions: {}, + finalizeOptions: {}, }, parse: { system: systems.enUS.shortCount, @@ -194,6 +189,9 @@ nameInput.placeholder = createNamePlaceholder(options); }); + options.stringify.makeGroupOptions.addTensDashes = addTensDashesCheckbox.checked; + options.stringify.makeGroupOptions.shortenMillia = shortenMilliaCheckbox.checked; + options.stringify.finalizeOptions.oneGroupPerLine = oneGroupPerLineCheckbox.checked; nameInput.placeholder = createNamePlaceholder(options); } const mainForm = window.document.getElementById('mainForm');