mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-01 15:10:14 +00:00
在window上挂载创建和销毁樱花雨的方法
This commit is contained in:
@@ -174,9 +174,13 @@ function createSakura() {
|
||||
}
|
||||
}
|
||||
|
||||
// 销毁樱花雨
|
||||
function destroySakura() {
|
||||
const sakura = document.getElementById(id)
|
||||
if (sakura && sakura.parentNode) {
|
||||
sakura.parentNode.removeChild(sakura)
|
||||
}
|
||||
}
|
||||
|
||||
window.createSakura = createSakura
|
||||
window.destroySakura = destroySakura
|
||||
Reference in New Issue
Block a user