Refactor code structure for improved readability and maintainability

This commit is contained in:
Harvey Zack committed 2025-04-20 19:54:19 +08:00
1 parent 2a7e3d5e03
commit c3343ad74f
14 files changed
+7877 -6954

No files matched your search

-36
View File
@@ -1,36 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test ArtPlayer ESM with Import Map</title>
<style>
#player {
width: 640px;
height: 360px;
margin: 50px auto;
border: 1px solid #ccc;
}
</style>
<script type="importmap">
{
"imports": {
"artplayer": "/packages/artplayer/dist/artplayer.esm.js"
}
}
</script>
</head>
<body>
<div id="player"></div>
<script type="module">
import Artplayer from 'artplayer';
const art = new Artplayer({
container: '#player',
url: '../docs/assets/sample/video.mp4',
});
</script>
</body>
</html>