crtc page: add 'is this real?' proof expander (public RMD/499 stats + named CA operators, defamation-safe); keep standalone expanders out of auto-collapse
This commit is contained in:
parent
0562fd2bd3
commit
345c22e561
2 changed files with 9 additions and 2 deletions
|
|
@ -63,7 +63,14 @@
|
||||||
while (n) {
|
while (n) {
|
||||||
if (n.nodeType === 1 && n.tagName === "H2") break;
|
if (n.nodeType === 1 && n.tagName === "H2") break;
|
||||||
var next = n.nextSibling;
|
var next = n.nextSibling;
|
||||||
|
// Skip (don't absorb) a standalone block such as the "is this real?"
|
||||||
|
// proof expander — it must stay visible outside any collapsed body.
|
||||||
|
// We leave it in place; surrounding siblings still get collected, so it
|
||||||
|
// ends up rendered right after this accordion.
|
||||||
|
if (!(n.nodeType === 1 && n.classList &&
|
||||||
|
n.classList.contains("pw-standalone"))) {
|
||||||
nodes.push(n);
|
nodes.push(n);
|
||||||
|
}
|
||||||
n = next;
|
n = next;
|
||||||
}
|
}
|
||||||
if (nodes.length < 2) {
|
if (nodes.length < 2) {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue