eplayer 1.5.9 → 1.5.10
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 +2 -0
- package/docs/index.html +1 -1
- package/package.json +1 -1
package/docs/eplayer.js
CHANGED
|
@@ -36,6 +36,7 @@ class Eplayer extends HTMLElement {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
startMug() {
|
|
39
|
+
if (!this.beatmap) return
|
|
39
40
|
this.$('.mug').innerHTML = '' // 先清空
|
|
40
41
|
this.$('.mug').style.display = 'block'
|
|
41
42
|
this.$('.mug').style.height = this.height + 'px'
|
|
@@ -230,6 +231,7 @@ class Eplayer extends HTMLElement {
|
|
|
230
231
|
}
|
|
231
232
|
|
|
232
233
|
init() {
|
|
234
|
+
// console.log(this.beatmap)
|
|
233
235
|
let html = `
|
|
234
236
|
<style>
|
|
235
237
|
@import "https://at.alicdn.com/t/font_836948_g9fk6jqpl8l.css";
|
package/docs/index.html
CHANGED
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
setTimeout(() => {
|
|
105
105
|
document.querySelector('e-player').setAttribute('height', '450')
|
|
106
106
|
|
|
107
|
-
document.querySelector('e-player').setAttribute('beatmap', '
|
|
107
|
+
document.querySelector('e-player').setAttribute('beatmap', '')
|
|
108
108
|
}, 1000)
|
|
109
109
|
</script>
|
|
110
110
|
<div class="wrapper">
|