forked from rDrama/rDrama
1
0
Fork 0
master
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; 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){ if(emojis != null){
for(i = 0; i < emojis.length; i++){ for(i = 0; i < emojis.length; i++){
input = input.replace(emojis[i][0], "<img height=30 src='/assets/images/emojis/" + emojis[i][1] + ".webp'>") 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> </script>