forked from rDrama/rDrama
fdsfsd
parent
547c75fb75
commit
237ab63633
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue