Aevann 2023-05-05 05:02:18 +03:00
parent 390e584819
commit a4fceb7fe6
2 changed files with 1 additions and 21 deletions

View File

@ -1,19 +1,5 @@
const vid = document.getElementById('vid').value
function expandText(id) {
const toggling = document.getElementById('post-text-'+id)
const attr = "d-none";
if (vid != 2453 && toggling.classList.contains(attr)) {
document.querySelectorAll(".toggled-visible").forEach(i => {
i.classList.add(attr)
i.classList.remove("toggled-visible")
});
toggling.classList.add("toggled-visible")
}
toggling.classList.toggle(attr);
document.getElementById('post-text-'+id).classList.toggle('d-none');
for (const e of document.getElementsByClassName('text-expand-icon-p_'+id))
{
e.classList.toggle('fa-expand-alt');

View File

@ -29,12 +29,6 @@
{% endblock %}
</head>
<body {% block body_attributes %}id="{%block pagetype %}{% endblock %}"{% endblock %}>
{% if v %}
<input id="vid" hidden value="{{v.id}}">
{% else %}
<input id="vid" hidden value="">
{% endif %}
<input hidden id="gnonce" value="{{g.nonce}}">
<input hidden id="gbrowser" value="{{g.browser}}">
<input hidden id="IMAGE_FORMATS" value="{{IMAGE_FORMATS}}">