Project import generated by Copybara.
GitOrigin-RevId: 63746295f1a5ab5a619056791995793d65529e62
diff --git a/node_modules/material-design-lite/src/snackbar/snippets/snackbar.html b/node_modules/material-design-lite/src/snackbar/snippets/snackbar.html
new file mode 100644
index 0000000..6e07fee
--- /dev/null
+++ b/node_modules/material-design-lite/src/snackbar/snippets/snackbar.html
@@ -0,0 +1,27 @@
+<button id="demo-show-snackbar" class="mdl-button mdl-js-button mdl-button--raised" type="button">Show Snackbar</button>
+<div id="demo-snackbar-example" class="mdl-js-snackbar mdl-snackbar">
+ <div class="mdl-snackbar__text"></div>
+ <button class="mdl-snackbar__action" type="button"></button>
+</div>
+<script>
+(function() {
+ 'use strict';
+ var snackbarContainer = document.querySelector('#demo-snackbar-example');
+ var showSnackbarButton = document.querySelector('#demo-show-snackbar');
+ var handler = function(event) {
+ showSnackbarButton.style.backgroundColor = '';
+ };
+ showSnackbarButton.addEventListener('click', function() {
+ 'use strict';
+ showSnackbarButton.style.backgroundColor = '#' +
+ Math.floor(Math.random() * 0xFFFFFF).toString(16);
+ var data = {
+ message: 'Button color changed.',
+ timeout: 2000,
+ actionHandler: handler,
+ actionText: 'Undo'
+ };
+ snackbarContainer.MaterialSnackbar.showSnackbar(data);
+ });
+}());
+</script>
diff --git a/node_modules/material-design-lite/src/snackbar/snippets/toast.html b/node_modules/material-design-lite/src/snackbar/snippets/toast.html
new file mode 100644
index 0000000..6505692
--- /dev/null
+++ b/node_modules/material-design-lite/src/snackbar/snippets/toast.html
@@ -0,0 +1,18 @@
+<button id="demo-show-toast" class="mdl-button mdl-js-button mdl-button--raised" type="button">Show Toast</button>
+<div id="demo-toast-example" class="mdl-js-snackbar mdl-snackbar">
+ <div class="mdl-snackbar__text"></div>
+ <button class="mdl-snackbar__action" type="button"></button>
+</div>
+<script>
+(function() {
+ 'use strict';
+ window['counter'] = 0;
+ var snackbarContainer = document.querySelector('#demo-toast-example');
+ var showToastButton = document.querySelector('#demo-show-toast');
+ showToastButton.addEventListener('click', function() {
+ 'use strict';
+ var data = {message: 'Example Message # ' + ++counter};
+ snackbarContainer.MaterialSnackbar.showSnackbar(data);
+ });
+}());
+</script>