This commit is contained in:
Aevann1 2022-02-24 14:03:28 +02:00
parent 2777f0dce3
commit 209938d284
54 changed files with 375 additions and 320 deletions

View file

@ -76,12 +76,12 @@ function loadEmojis(form) {
{
for (const e of v) {
let k = e.toLowerCase().split(" : ")[0];
str += `<button class="btn m-1 px-0 emoji2" onclick="getEmoji('${k}')" style="background: None!important; width:60px; overflow: hidden; border: none;" data-bs-toggle="tooltip" title=":${k}:" delay:="0"><img loading="lazy" width=50 src="/static/assets/images/emojis/${k}.webp" alt="${k}-emoji"></button>`;
str += `<button class="btn m-1 px-0 emoji2" onclick="getEmoji('${k}')" style="background: None!important; width:60px; overflow: hidden; border: none" data-bs-toggle="tooltip" title=":${k}:" delay:="0"><img loading="lazy" width=50 src="/static/assets/images/emojis/${k}.webp" alt="${k}-emoji"></button>`;
}
}
else {
for (const e of v) {
str += `<button class="btn m-1 px-0 emoji2" onclick="getEmoji('${e}')" style="background: None!important; width:60px; overflow: hidden; border: none;" data-bs-toggle="tooltip" title=":${e}:" delay:="0"><img loading="lazy" width=50 src="/static/assets/images/emojis/${e}.webp" alt="${e}-emoji"></button>`;
str += `<button class="btn m-1 px-0 emoji2" onclick="getEmoji('${e}')" style="background: None!important; width:60px; overflow: hidden; border: none" data-bs-toggle="tooltip" title=":${e}:" delay:="0"><img loading="lazy" width=50 src="/static/assets/images/emojis/${e}.webp" alt="${e}-emoji"></button>`;
}
}
@ -108,7 +108,7 @@ function loadEmojis(form) {
{
for (const e of value) {
if (e.match(search_bar.value.toLowerCase()) || search_bar.value.toLowerCase().match(e)) {
str += `<button class="btn m-1 px-0 emoji2" onclick="getEmoji('${e}')" style="background: None!important; width:60px; overflow: hidden; border: none;" data-bs-toggle="tooltip" title=":${e}:" delay:="0"><img loading="lazy" width=50 src="/static/assets/images/emojis/${e}.webp" alt="${e}-emoji"></button>`;
str += `<button class="btn m-1 px-0 emoji2" onclick="getEmoji('${e}')" style="background: None!important; width:60px; overflow: hidden; border: none" data-bs-toggle="tooltip" title=":${e}:" delay:="0"><img loading="lazy" width=50 src="/static/assets/images/emojis/${e}.webp" alt="${e}-emoji"></button>`;
}
}
}