Skip to content

Instantly share code, notes, and snippets.

@alansemenov
Last active June 22, 2016 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alansemenov/25d9ee24c82eb4763fb363031a5c852d to your computer and use it in GitHub Desktop.
Save alansemenov/25d9ee24c82eb4763fb363031a5c852d to your computer and use it in GitHub Desktop.
function materializeButtons() {
document.querySelectorAll('button').forEach(function(control) {
control.classList.add('mdl-button', 'mdl-js-button', 'mdl-button--raised', 'mdl-js-ripple-effect', 'mdl-button--colored');
});
}
function materializeControls() {
materializeTextInputs();
materializeSelects();
materializeRadioButtons();
materializeCheckboxes();
materializeTables();
materializeLists();
materializeButtons();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment