Main Page: Difference between revisions
From Deepest Lore
More actions
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 12: | Line 12: | ||
</div> | </div> | ||
</html> | |||
<!-- slop TODO: clean --> | |||
<html> | |||
<style> | |||
.no-wrap { | |||
white-space: nowrap; | |||
} | |||
</style> | |||
<script> | |||
document.querySelectorAll('.wiki-card-content').forEach(el => { | |||
// Only process plain text nodes (avoid breaking existing HTML) | |||
if (el.children.length === 0) { | |||
const text = el.textContent.trim(); | |||
const parts = text.split(': '); | |||
if (parts.length > 1) { | |||
const first = parts.shift(); | |||
const rest = parts.join(': '); | |||
el.innerHTML = first + ': <span class="no-wrap">' + rest + '</span>'; | |||
} | |||
} | |||
}); | |||
</script> | |||
</html> | </html> | ||