Merge remote-tracking branch 'origin/main' into main
This commit is contained in:
commit
efba4f0d86
|
@ -100,6 +100,7 @@
|
||||||
- 图片懒加载 [plugin-lazyload](https://github.com/liuzhihang/plugin-lazyload)
|
- 图片懒加载 [plugin-lazyload](https://github.com/liuzhihang/plugin-lazyload)
|
||||||
- 追番插件 [plugin-bilibili-bangumi](https://github.com/Roozenlz/plugin-bilibili-bangumi)
|
- 追番插件 [plugin-bilibili-bangumi](https://github.com/Roozenlz/plugin-bilibili-bangumi)
|
||||||
- 图库插件 [plugin-photos](https://github.com/halo-sigs/plugin-photos)
|
- 图库插件 [plugin-photos](https://github.com/halo-sigs/plugin-photos)
|
||||||
|
- Tool-Bench [Tool-Bench](https://github.com/DioxideCN/Tool-Bench)
|
||||||
|
|
||||||
> 更多插件请参见:https://github.com/halo-sigs/awesome-halo
|
> 更多插件请参见:https://github.com/halo-sigs/awesome-halo
|
||||||
|
|
||||||
|
|
|
@ -142,7 +142,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||||
style: this.getAttribute("style") || ''
|
style: this.getAttribute("style") || ''
|
||||||
};
|
};
|
||||||
let htmlStr = `
|
let htmlStr = `
|
||||||
<div class="note ${this.options.class} ${this.options.noIcon} ${this.options.style}">${this.innerHTML}</div>
|
<div class="note ${this.options.class} ${this.options.noIcon} ${this.options.style}">${this.innerHTML.trim().replace(/^(<br>)|(<br>)$/g, "")}</div>
|
||||||
`;
|
`;
|
||||||
this.innerHTML = htmlStr;
|
this.innerHTML = htmlStr;
|
||||||
}
|
}
|
||||||
|
@ -161,7 +161,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||||
noIcon: this.getAttribute("noIcon") || ''
|
noIcon: this.getAttribute("noIcon") || ''
|
||||||
};
|
};
|
||||||
let htmlStr = `
|
let htmlStr = `
|
||||||
<div class="tip ${this.options.class} ${this.options.noIcon}">${this.innerHTML}</div>
|
<div class="tip ${this.options.class} ${this.options.noIcon}">${this.innerHTML.trim().replace(/^(<br>)|(<br>)$/g, "")}</div>
|
||||||
`;
|
`;
|
||||||
this.innerHTML = htmlStr;
|
this.innerHTML = htmlStr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue