remotes/1693045480750635534/spooky-22
Aevann1 2021-07-21 13:00:39 +02:00
parent c0cb68e04a
commit cab9ff1f4c
2 changed files with 104 additions and 89 deletions

View File

@ -3,7 +3,7 @@
<head>
<script>
post_comment=function(fullname){
post_comment=function(fullname){
var form = new FormData();
@ -36,9 +36,9 @@ post_comment=function(fullname){
document.getElementById('save-reply-to-'+fullname).classList.add('disabled');
}
}
herald_comment=function(bid,cid){
herald_comment=function(bid,cid){
var xhr = new XMLHttpRequest();
@ -64,9 +64,9 @@ herald_comment=function(bid,cid){
}
xhr.send(form)
}
}
comment_edit=function(id){
comment_edit=function(id){
var commentError = document.getElementById("comment-error-text");
@ -97,7 +97,7 @@ comment_edit=function(id){
}
xhr.send(form)
}
}
block_user=function() {

View File

@ -1,3 +1,18 @@
<script>
$('.text-expand').click(function(event){
if (event.which != 1) {
return
};
id=$(this).data('id');
$('#post-text-'+id).toggleClass('d-none');
$('.text-expand-icon-'+id).toggleClass('fa-expand-alt');
$('.text-expand-icon-'+id).toggleClass('fa-compress-alt');
})
</script>
{% for p in listing %}
<script>