Skip to content

Commit

Permalink
feat: Update Artplayer initialization in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
zhw2590582 committed Jun 16, 2024
1 parent 0cee288 commit c6b6e13
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
16 changes: 7 additions & 9 deletions packages/artplayer-vitepress/docs/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@ https://unpkg.com/artplayer/dist/artplayer.js

::: code-group

```js [index.js]
import Artplayer from 'artplayer';

const art = new Artplayer({
container: '.artplayer-app',
url: 'path/to/video.mp4',
});
```

```html [index.html]
<html>
<head>
Expand All @@ -63,6 +54,13 @@ const art = new Artplayer({
</head>
<body>
<div class="artplayer-app"></div>
<script src="path/to/artplayer.js"></script>
<script>
const art = new Artplayer({
container: '.artplayer-app',
url: 'path/to/video.mp4',
});
</script>
</body>
</html>
```
Expand Down
16 changes: 7 additions & 9 deletions packages/artplayer-vitepress/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@ https://unpkg.com/artplayer/dist/artplayer.js

::: code-group

```js [index.js]
import Artplayer from 'artplayer';

const art = new Artplayer({
container: '.artplayer-app',
url: 'path/to/video.mp4',
});
```

```html [index.html]
<html>
<head>
Expand All @@ -63,6 +54,13 @@ const art = new Artplayer({
</head>
<body>
<div class="artplayer-app"></div>
<script src="path/to/artplayer.js"></script>
<script>
const art = new Artplayer({
container: '.artplayer-app',
url: 'path/to/video.mp4',
});
</script>
</body>
</html>
```
Expand Down

0 comments on commit c6b6e13

Please sign in to comment.