remotes/1693045480750635534/spooky-22
Aevann1 2021-09-19 19:17:05 +02:00
parent 547c75fb75
commit 237ab63633
1 changed files with 2 additions and 2 deletions

View File

@ -241,14 +241,14 @@
var input = document.getElementById('post-text').value;
let emojis = Array.from(input.matchAll(/:(.{1,30}?):/gi))
var emojis = Array.from(input.matchAll(/:(.{1,30}?):/gi))
if(emojis != null){
for(i = 0; i < emojis.length; i++){
input = input.replace(emojis[i][0], "<img height=30 src='/assets/images/emojis/" + emojis[i][1] + ".webp'>")
}
}
document.getElementById('preview').value = marked(input)
document.getElementById('preview').value = 'fugggg'
}
</script>