eplayer 1.5.8 → 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 CHANGED
@@ -36,6 +36,8 @@ class Eplayer extends HTMLElement {
36
36
  }
37
37
 
38
38
  startMug() {
39
+ if (!this.beatmap) return
40
+ this.$('.mug').innerHTML = '' // 先清空
39
41
  this.$('.mug').style.display = 'block'
40
42
  this.$('.mug').style.height = this.height + 'px'
41
43
  this.$('.mug').style.width = (this.height / 8 * 5) + 'px'
@@ -229,6 +231,7 @@ class Eplayer extends HTMLElement {
229
231
  }
230
232
 
231
233
  init() {
234
+ // console.log(this.beatmap)
232
235
  let html = `
233
236
  <style>
234
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', '1:2|2:1|3:3|4:4|6:2|6:1|7:3|8:4|8:2|9:1|11:3|12:4|12:2|13:1|14:3|15:4|16:2|16:1|17:3|19:4|19:2|20:1|21:3|22:4')
107
+ document.querySelector('e-player').setAttribute('beatmap', '')
108
108
  }, 1000)
109
109
  </script>
110
110
  <div class="wrapper">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eplayer",
3
- "version": "1.5.8",
3
+ "version": "1.5.10",
4
4
  "description": "A web-components html5 video player facing future",
5
5
  "main": "./docs/eplayer.js",
6
6
  "module": "./docs/eplayer.js",