eplayer 1.5.5 → 1.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/eplayer.js +5 -4
- package/docs/index.html +1 -1
- package/package.json +1 -1
package/docs/eplayer.js
CHANGED
|
@@ -5,11 +5,12 @@ class Eplayer extends HTMLElement {
|
|
|
5
5
|
this.src = this.getAttribute('src')
|
|
6
6
|
this.type = this.getAttribute('type')
|
|
7
7
|
this.beatmap = this.getAttribute('beatmap')
|
|
8
|
+
this.high = this.getAttribute('high')
|
|
8
9
|
|
|
9
10
|
this.init()
|
|
10
11
|
this.stream()
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
+
|
|
13
14
|
static get observedAttributes() {
|
|
14
15
|
return ['src', 'type', 'beatmap']
|
|
15
16
|
}
|
|
@@ -434,8 +435,8 @@ class Eplayer extends HTMLElement {
|
|
|
434
435
|
display:inline-block;
|
|
435
436
|
}
|
|
436
437
|
.mug {
|
|
437
|
-
height:
|
|
438
|
-
width:
|
|
438
|
+
height: ${this.high}px;
|
|
439
|
+
width: ${this.high/8*5}px;
|
|
439
440
|
position: absolute;
|
|
440
441
|
z-index: 999;
|
|
441
442
|
/* pointer-events: none; */
|
|
@@ -447,7 +448,7 @@ class Eplayer extends HTMLElement {
|
|
|
447
448
|
}
|
|
448
449
|
.wrap{
|
|
449
450
|
position: relative;
|
|
450
|
-
height:
|
|
451
|
+
// height: ${this.high}px;
|
|
451
452
|
}
|
|
452
453
|
</style>
|
|
453
454
|
<div class="wrap">
|
package/docs/index.html
CHANGED
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
</script>
|
|
108
108
|
<div class="wrapper">
|
|
109
109
|
|
|
110
|
-
<e-player id="ep" src="https://mp4.ziyuan.wang/view.php/67c796ed2dad70c429bda73a647704f0.mp4">
|
|
110
|
+
<e-player id="ep" src="https://mp4.ziyuan.wang/view.php/67c796ed2dad70c429bda73a647704f0.mp4" high="450">
|
|
111
111
|
</e-player>
|
|
112
112
|
|
|
113
113
|
<a href="https://github.com/132yse/eplayer">github</a>
|