emoji-tab-search
This commit is contained in:
parent
46c7da1f1b
commit
101f176b95
2 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@ document.body.addEventListener('keydown', function(event) {
|
|||
let container = document.getElementById(`EMOJIS_${emojis[i].type}`)
|
||||
for (j=0; j < arr.length; j++) {
|
||||
if(arr[j].match(search_bar.value)){
|
||||
str += `<button class="btn m-1 px-0" onclick="getEmoji(\'${arr[j]}\', \'${form}\')" style="width:40px; overflow: hidden; border: none;" data-toggle="tooltip" title=":${arr[j]}:" delay:="0"><img width=30 src="/assets/images/emojis/${arr[j]}.gif" alt="${arr[j]}-emoji"/></button>`;
|
||||
str += `<button class="btn m-1 px-0" onclick="getEmoji(\'${arr[j]}\', \'${form}\')" style="width:60px; overflow: hidden; border: none;" data-toggle="tooltip" title=":${arr[j]}:" delay:="0"><img width=50 src="/assets/images/emojis/${arr[j]}.gif" alt="${arr[j]}-emoji"/></button>`;
|
||||
}
|
||||
}
|
||||
container.innerHTML = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue