daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest May 16th, 2018 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script defer src="https://code.getmdl.io/1.3.0/material.min.js">
  2. (function() {
  3.   'use strict';
  4.   window['counter'] = 0;
  5.   var snackbarContainer = document.querySelector('#demo-toast-example');
  6.   var showToastButton = document.querySelector('#demo-show-toast');
  7.   showToastButton.addEventListener('click', function() {
  8.     'use strict';
  9.     var data = {message: 'Example Message # ' + ++counter};
  10.     snackbarContainer.MaterialSnackbar.showSnackbar(data);
  11.   });
  12. }());
  13. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top