mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -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 with `npm`:
|
||||
|
||||
```
|
||||
$ npm install --save artplayer
|
||||
$ npm install artplayer
|
||||
```
|
||||
Or install with `yarn`:
|
||||
|
||||
```
|
||||
$ yarn add artplayer
|
||||
```
|
||||
|
||||
```js
|
||||
@@ -29,7 +36,7 @@ import Artplayer from 'artplayer';
|
||||
import 'artplayer/dist/artplayer.css';
|
||||
```
|
||||
|
||||
OR umd builds are also available
|
||||
Or umd builds are also available:
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="path/to/artplayer.css" />
|
||||
|
||||
+2
-4
@@ -839,13 +839,11 @@ var art = new Artplayer({
|
||||
});
|
||||
```
|
||||
|
||||
# API
|
||||
|
||||
## Instance properties
|
||||
# Instance properties
|
||||
|
||||
> TODO...
|
||||
|
||||
## Class static properties
|
||||
# Class static properties
|
||||
|
||||
> TODO...
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ window.runCode = function(hook) {
|
||||
.filter(function(item) {
|
||||
return item.innerHTML === 'Run Code';
|
||||
})
|
||||
.forEach(item => {
|
||||
.forEach(function(item) {
|
||||
item.addEventListener('click', function(event) {
|
||||
event.preventDefault();
|
||||
var codeElement = item.parentElement.nextElementSibling;
|
||||
|
||||
Reference in new issue
Block a user