Skip to content

Commit

Permalink
fix: typo, close #839
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed May 23, 2020
1 parent 66a6835 commit be567b2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/ecosystem.md
Expand Up @@ -22,7 +22,7 @@ Let's make DPlayer better, feel free to submit yours in [`Let me know!`](https:/

- [DPlayer-thumbnails](https://github.com/MoePlayer/DPlayer-thumbnails): generate video thumbnails

### Danamku api
### Danmaku api

- [DPlayer-node](https://github.com/MoePlayer/DPlayer-node): Node.js
- [laravel-danmaku](https://github.com/MoePlayer/laravel-danmaku): PHP
Expand Down
6 changes: 3 additions & 3 deletions docs/guide.md
Expand Up @@ -125,7 +125,7 @@ You can custom your player instance by those options
| subtitle.bottom | '40px' | the distance between the subtitle and player bottom, values like: '10px' '10%' |
| subtitle.color | '#fff' | subtitle color |
| danmaku | - | showing danmaku |
| danmaku.id | `required` | danamku pool id, it must be unique |
| danmaku.id | `required` | danmaku pool id, it must be unique |
| danmaku.api | `required` | see [#Danmaku API](#danmaku-api) |
| danmaku.token | - | back end verification token |
| danmaku.maximum | - | danmaku maximum quantity |
Expand Down Expand Up @@ -750,7 +750,7 @@ const dp = new DPlayer({
callback();
},
send: function (options) {
console.log('Pretend to send danamku via WebSocket', options.data);
console.log('Pretend to send danmaku via WebSocket', options.data);
callback();
},
},
Expand All @@ -765,7 +765,7 @@ Draw danmaku after getting a danmaku via WebSocket:

```js
const danmaku = {
text: 'Get a danamku via WebSocket',
text: 'Get a danmaku via WebSocket',
color: '#fff',
type: 'right',
};
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/guide.md
Expand Up @@ -734,7 +734,7 @@ const dp = new DPlayer({
callback();
},
send: function (endpoint, danmakuData, callback) {
console.log('Pretend to send danamku via WebSocket', danmakuData);
console.log('Pretend to send danmaku via WebSocket', danmakuData);
callback();
},
},
Expand All @@ -749,7 +749,7 @@ const dp = new DPlayer({

```js
const danmaku = {
text: 'Get a danamku via WebSocket',
text: 'Get a danmaku via WebSocket',
color: '#fff',
type: 'right',
};
Expand Down
6 changes: 3 additions & 3 deletions src/template/player.art
Expand Up @@ -231,15 +231,15 @@
</div>
{{ if options.danmaku }}
<div class="dplayer-info-panel-item dplayer-info-panel-item-danmaku-id">
<span class="dplayer-info-panel-item-title">Danamku id</span>
<span class="dplayer-info-panel-item-title">Danmaku id</span>
<span class="dplayer-info-panel-item-data"></span>
</div>
<div class="dplayer-info-panel-item dplayer-info-panel-item-danmaku-api">
<span class="dplayer-info-panel-item-title">Danamku api</span>
<span class="dplayer-info-panel-item-title">Danmaku api</span>
<span class="dplayer-info-panel-item-data"></span>
</div>
<div class="dplayer-info-panel-item dplayer-info-panel-item-danmaku-amount">
<span class="dplayer-info-panel-item-title">Danamku amount</span>
<span class="dplayer-info-panel-item-title">Danmaku amount</span>
<span class="dplayer-info-panel-item-data"></span>
</div>
{{ /if }}
Expand Down

0 comments on commit be567b2

Please sign in to comment.