Revert "make "view more" button neater"

This reverts commit cae656186a.
remotes/1693045480750635534/spooky-22
Aevann1 2022-07-04 05:35:10 +02:00
parent b55d17859e
commit d517baebdc
1 changed files with 1 additions and 12 deletions

View File

@ -1183,18 +1183,7 @@
{% if p.rest %}
<script>
function viewmore(btn) {
btn.disabled = true
btn.classList.add('disabled');
document.getElementById('rest').classList.toggle('d-none')
setTimeout(() => {
btn.disabled = false;
btn.classList.remove('disabled');
}, 1000);
}
</script>
<button class="mt-4 mb-3 btn btn-primary" onclick="viewmore(this)">
<button class="mt-4 mb-3 btn btn-primary" onclick="document.getElementById('rest').classList.toggle('d-none')">
VIEW MORE COMMENTS
</button>