mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-30 03:51:25 -08:00
typofix
This commit is contained in:
1 parent
b621061417
commit
6d0f3cad14
3 files changed
+12
-7
No files matched your search
@@ -20,8 +20,15 @@
|
|||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
|
Install with `npm`:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ npm install --save artplayer
|
$ npm install artplayer
|
||||||
|
```
|
||||||
|
Or install with `yarn`:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ yarn add artplayer
|
||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
@@ -29,7 +36,7 @@ import Artplayer from 'artplayer';
|
|||||||
import 'artplayer/dist/artplayer.css';
|
import 'artplayer/dist/artplayer.css';
|
||||||
```
|
```
|
||||||
|
|
||||||
OR umd builds are also available
|
Or umd builds are also available:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<link rel="stylesheet" href="path/to/artplayer.css" />
|
<link rel="stylesheet" href="path/to/artplayer.css" />
|
||||||
|
|||||||
+2
-4
@@ -839,13 +839,11 @@ var art = new Artplayer({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
# API
|
# Instance properties
|
||||||
|
|
||||||
## Instance properties
|
|
||||||
|
|
||||||
> TODO...
|
> TODO...
|
||||||
|
|
||||||
## Class static properties
|
# Class static properties
|
||||||
|
|
||||||
> TODO...
|
> TODO...
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ window.runCode = function(hook) {
|
|||||||
.filter(function(item) {
|
.filter(function(item) {
|
||||||
return item.innerHTML === 'Run Code';
|
return item.innerHTML === 'Run Code';
|
||||||
})
|
})
|
||||||
.forEach(item => {
|
.forEach(function(item) {
|
||||||
item.addEventListener('click', function(event) {
|
item.addEventListener('click', function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
var codeElement = item.parentElement.nextElementSibling;
|
var codeElement = item.parentElement.nextElementSibling;
|
||||||
|
|||||||
Reference in new issue
Block a user