diff options
author | Minteck <contact@minteck.org> | 2022-11-11 23:47:49 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-11-11 23:47:49 +0100 |
commit | 209356b8ade1920b50d1d3a1a5e121c6623d167b (patch) | |
tree | 5301396987d1510f715a0b1c24754873af19e1dc /app/bits/static/page.js | |
parent | 2c4ae43e688a9873e86211ea0e7aeb9ba770dd77 (diff) | |
download | pluralconnect-209356b8ade1920b50d1d3a1a5e121c6623d167b.tar.gz pluralconnect-209356b8ade1920b50d1d3a1a5e121c6623d167b.tar.bz2 pluralconnect-209356b8ade1920b50d1d3a1a5e121c6623d167b.zip |
Update
Diffstat (limited to 'app/bits/static/page.js')
-rwxr-xr-x | app/bits/static/page.js | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/app/bits/static/page.js b/app/bits/static/page.js new file mode 100755 index 0000000..785fb73 --- /dev/null +++ b/app/bits/static/page.js @@ -0,0 +1,54 @@ +// Imports +; const // T + MDCDialog // w + = // i + mdc.dialog.MDCDialog // +; const // i + MDCTopAppBar // s + = // + mdc.topAppBar.MDCTopAppBar // a +; const // + MDCTextField // c + = // u + mdc.textField.MDCTextField // t +; const // e + MDCFormField // + = // m + mdc.formField.MDCFormField // a +; const // r + MDCRadio // e + = // f + mdc.radio.MDCRadio // r +; const // i + MDCRipple // e + = // n + mdc.ripple.MDCRipple // d +; const // + MDCList // ❤ + = // + mdc.list.MDCList // + +// App bar +const topAppBarElement = document.querySelector('.mdc-top-app-bar'); +const topAppBar = new MDCTopAppBar(topAppBarElement); + +// Floating action button +const fabRipple = new MDCRipple(document.querySelector('.mdc-fab')); + +// Dialogs +const addDialog = new MDCDialog(document.querySelector('.mdc-add-dialog')); +const deleteDialog = new MDCDialog(document.querySelector('.mdc-delete-dialog')); + +// Add dialog +const addAmount = new MDCTextField(document.querySelector('.mdc-text-field-add-amount')); +const addDescription = new MDCTextField(document.querySelector('.mdc-text-field-add-description')); +addAmount.prefixText = "+"; +addAmount.suffixText = "£"; + +const addRadio = new MDCRadio(document.querySelector('.mdc-radio-add-currency')); +const addFormField = new MDCFormField(document.querySelector('.mdc-form-field-add-currency')); +addFormField.input = addRadio; + +const addRadio2 = new MDCRadio(document.querySelector('.mdc-radio-add-action')); +const addFormField2 = new MDCFormField(document.querySelector('.mdc-form-field-add-action')); +addFormField2.input = addRadio2;
\ No newline at end of file |