summaryrefslogtreecommitdiff
path: root/assets/page.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-07-11 18:54:20 +0200
committerMinteck <contact@minteck.org>2022-07-11 18:54:20 +0200
commitf2824f51f8ed407a8633ba968d35d56ea6a36f49 (patch)
treedb0c625ccd8ae4ada52f4e30956a9627270dec31 /assets/page.js
parent5abe8cba55965f70e07e1163239bcc9d797c864a (diff)
downloadbits-client-mane.tar.gz
bits-client-mane.tar.bz2
bits-client-mane.zip
Diffstat (limited to 'assets/page.js')
-rw-r--r--assets/page.js53
1 files changed, 53 insertions, 0 deletions
diff --git a/assets/page.js b/assets/page.js
new file mode 100644
index 0000000..72f2400
--- /dev/null
+++ b/assets/page.js
@@ -0,0 +1,53 @@
+// 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'));
+const pluralDialog = new MDCDialog(document.querySelector('.mdc-plural-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'));
+
+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