This commit is contained in:
Harvey Zack committed 2018-11-20 19:52:05 +08:00
1 parent b621061417
commit 6d0f3cad14
3 files changed
+12 -7

No files matched your search

+9 -2
View File
@@ -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
View File
@@ -839,13 +839,11 @@ var art = new Artplayer({
});
```
# API
## Instance properties
# Instance properties
> TODO...
## Class static properties
# Class static properties
> TODO...
+1 -1
View File
@@ -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;