forked from MarseyWorld/MarseyWorld
fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4097393#context
parent
390e584819
commit
a4fceb7fe6
|
@ -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');
|
||||
|
|
|
@ -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}}">
|
||||
|
|
Loading…
Reference in New Issue