diff --git a/assets/js/joe.short.js b/assets/js/joe.short.js
index 0530ecb..3fb55ba 100644
--- a/assets/js/joe.short.js
+++ b/assets/js/joe.short.js
@@ -91,12 +91,6 @@ document.addEventListener('DOMContentLoaded', () => {
}
}
window.customElements.define('joe-abtn', JoeAbtn);
-
- /*
- ------------------------以下未测试------------------------------------------
- */
-
- /* 便条按钮 */
class JoeAnote extends HTMLElement {
constructor() {
super();
@@ -104,22 +98,21 @@ document.addEventListener('DOMContentLoaded', () => {
icon: this.getAttribute('icon') || 'fa-download',
href: this.getAttribute('href') || '#',
type: /^secondary$|^success$|^warning$|^error$|^info$/.test(this.getAttribute('type')) ? this.getAttribute('type') : 'secondary',
- content: this.innerHTML.trim().replace(/^(
)|(
)$/g, '') || '标签按钮'
+ content: this.getAttribute('content') || '标签按钮'
};
- this.render();
- }
- get template() {
- return `
-
- ${this.options.content}
-
- `;
- }
- render() {
- this.innerHTML = this.template;
+ this.innerHTML = `
+
+ ${this.options.content}
+
+ `;
}
}
window.customElements.define('joe-anote', JoeAnote);
+
+ /*
+ ------------------------以下未测试------------------------------------------
+ */
+
/* 点击复制 */
class JoeCopy extends HTMLElement {
constructor() {
diff --git a/assets/js/joe.short.min.js b/assets/js/joe.short.min.js
index 27327e8..441ef9b 100644
--- a/assets/js/joe.short.min.js
+++ b/assets/js/joe.short.min.js
@@ -1 +1 @@
-document.addEventListener("DOMContentLoaded",()=>{class t extends HTMLElement{constructor(){super(),this.innerHTML=`\n\t\t\t\t
`})).replace(/\:\@\(\s*(高兴|小怒|脸红|内伤|装大款|赞一个|害羞|汗|吐血倒地|深思|不高兴|无语|亲亲|口水|尴尬|中指|想一想|哭泣|便便|献花|皱眉|傻笑|狂汗|吐|喷水|看不见|鼓掌|阴暗|长草|献黄瓜|邪恶|期待|得意|吐舌|喷血|无所谓|观察|暗地观察|肿包|中枪|大囧|呲牙|抠鼻|不说话|咽气|欢呼|锁眉|蜡烛|坐等|击掌|惊喜|喜极而泣|抽烟|不出所料|愤怒|无奈|黑线|投降|看热闹|扇耳光|小眼睛|中刀)\s*\)/g,function(t,e){return e=encodeURI(e).replace(/%/g,""),`
`})).replace(/{mtitle([^}]*)\/}/g,"