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) { function expandText(id) {
const toggling = document.getElementById('post-text-'+id) document.getElementById('post-text-'+id).classList.toggle('d-none');
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);
for (const e of document.getElementsByClassName('text-expand-icon-p_'+id)) for (const e of document.getElementsByClassName('text-expand-icon-p_'+id))
{ {
e.classList.toggle('fa-expand-alt'); e.classList.toggle('fa-expand-alt');

View File

@ -29,12 +29,6 @@
{% endblock %} {% endblock %}
</head> </head>
<body {% block body_attributes %}id="{%block pagetype %}{% endblock %}"{% endblock %}> <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="gnonce" value="{{g.nonce}}">
<input hidden id="gbrowser" value="{{g.browser}}"> <input hidden id="gbrowser" value="{{g.browser}}">
<input hidden id="IMAGE_FORMATS" value="{{IMAGE_FORMATS}}"> <input hidden id="IMAGE_FORMATS" value="{{IMAGE_FORMATS}}">