feat: Update Artplayer initialization in documentation

This commit is contained in:
Harvey Zack committed 2024-06-16 23:26:40 +08:00
1 parent 0cee288097
commit c6b6e13799
2 files changed
+14 -18

No files matched your search

@@ -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>
@@ -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>
```
+7 -9
View File
@@ -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>
@@ -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>
```