Skip to content

Commit

Permalink
emmm
Browse files Browse the repository at this point in the history
  • Loading branch information
yisar committed Jun 21, 2024
1 parent 93a2348 commit 647f2ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions docs/eplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ class Eplayer extends HTMLElement {
this.src = this.getAttribute('src')
this.type = this.getAttribute('type')
this.beatmap = this.getAttribute('beatmap')
this.high = this.getAttribute('high')
this.height = this.getAttribute('height')

this.init()
this.stream()
}

static get observedAttributes() {
return ['src', 'type', 'beatmap']
}
Expand Down Expand Up @@ -435,8 +435,8 @@ class Eplayer extends HTMLElement {
display:inline-block;
}
.mug {
height: ${this.high}px;
width: ${this.high/8*5}px;
height: ${this.height}px;
width: ${this.height/8*5}px;
position: absolute;
z-index: 999;
/* pointer-events: none; */
Expand All @@ -448,7 +448,7 @@ class Eplayer extends HTMLElement {
}
.wrap{
position: relative;
// height: ${this.high}px;
// height: ${this.height}px;
}
</style>
<div class="wrap">
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
</script>
<div class="wrapper">

<e-player id="ep" src="https://mp4.ziyuan.wang/view.php/67c796ed2dad70c429bda73a647704f0.mp4" high="450">
<e-player id="ep" src="https://mp4.ziyuan.wang/view.php/67c796ed2dad70c429bda73a647704f0.mp4" height="450">
</e-player>

<a href="https://github.com/132yse/eplayer">github</a>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eplayer",
"version": "1.5.5",
"version": "1.5.7",
"description": "A web-components html5 video player facing future",
"main": "./docs/eplayer.js",
"module": "./docs/eplayer.js",
Expand Down

0 comments on commit 647f2ad

Please sign in to comment.