Explorar el Código

Use HTML default values

Use values in HTML for default options in conversions.
master
TheoryOfNekomata hace 1 año
padre
commit
5153994dac
Se han modificado 1 ficheros con 5 adiciones y 7 borrados
  1. +5
    -7
      packages/example-web/index.html

+ 5
- 7
packages/example-web/index.html Ver fichero

@@ -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');


Cargando…
Cancelar
Guardar