Skip to content

Commit

Permalink
emmm
Browse files Browse the repository at this point in the history
  • Loading branch information
yisar committed Jun 23, 2024
1 parent 935eb5d commit afa78b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/eplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Eplayer extends HTMLElement {
}

startMug() {
if (!this.beatmap) return
this.$('.mug').innerHTML = '' // 先清空
this.$('.mug').style.display = 'block'
this.$('.mug').style.height = this.height + 'px'
Expand Down Expand Up @@ -230,6 +231,7 @@ class Eplayer extends HTMLElement {
}

init() {
// console.log(this.beatmap)
let html = `
<style>
@import "https://at.alicdn.com/t/font_836948_g9fk6jqpl8l.css";
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
setTimeout(() => {
document.querySelector('e-player').setAttribute('height', '450')

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')
document.querySelector('e-player').setAttribute('beatmap', '')
}, 1000)
</script>
<div class="wrapper">
Expand Down

0 comments on commit afa78b3

Please sign in to comment.