Aevann 2023-05-01 20:15:39 +03:00
parent 9c0e49ebe1
commit b571a71f44
2 changed files with 9 additions and 1 deletions

View File

@ -1,8 +1,10 @@
const vid = document.getElementById('vid').value
function expandText(id) {
const toggling = document.getElementById('post-text-'+id)
const attr = "d-none";
if (toggling.classList.contains(attr)) {
if (vid != 2453 && toggling.classList.contains(attr)) {
document.querySelectorAll(".toggled-visible").forEach(i => {
i.classList.add(attr)
i.classList.remove("toggled-visible")

View File

@ -29,6 +29,12 @@
{% 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}}">