Skip to content

Commit

Permalink
自定义背景色 #10
Browse files Browse the repository at this point in the history
  • Loading branch information
itorr committed Aug 24, 2022
1 parent 54cb595 commit e5d5c11
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions html/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ if(params.alpha){
htmlEl.setAttribute('data-alpha',params.alpha);
}

// 自定义背景色
if(params.background){
htmlEl.setAttribute('data-alpha',params.alpha);
htmlEl.style.background = params.background;
}


const Values = {
chisato: {
Expand Down

0 comments on commit e5d5c11

Please sign in to comment.