mirror of
https://github.com/google/material-design-lite.git
synced 2024-09-11 12:25:38 +03:00
Fixing syntax highlighting in some docs
This commit is contained in:
parent
286253ee0e
commit
0c57a7de6a
@ -25,7 +25,7 @@ After your dialog markup is created, add the event listeners to the page to trig
|
||||
|
||||
For example:
|
||||
|
||||
```js
|
||||
```javascript
|
||||
var button = document.querySelector('button');
|
||||
var dialog = document.querySelector('dialog');
|
||||
button.addEventListener('click', function() {
|
||||
|
@ -46,7 +46,7 @@ All snackbars should be shown through the same element.
|
||||
|
||||
### Snackbar
|
||||
|
||||
```js
|
||||
```javascript
|
||||
var notification = document.querySelector('.mdl-js-snackbar');
|
||||
var data = {
|
||||
message: 'Message Sent',
|
||||
@ -59,7 +59,7 @@ notification.MaterialSnackbar.showSnackbar(data);
|
||||
|
||||
### Toast
|
||||
|
||||
```js
|
||||
```javascript
|
||||
var notification = document.querySelector('.mdl-js-snackbar');
|
||||
notification.MaterialSnackbar.showSnackbar(
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user