CJVT updates August and September 2026

This commit is contained in:
Luka Romih
2026-10-01 00:49:26 +02:00
parent fd02e25719
commit 83f73aeb58
135 changed files with 6146 additions and 1970 deletions
@@ -0,0 +1,22 @@
// Clears the fixed #offset-padding header out of the way of the page content
// below it, for pages with no side menu (mirrors the same logic each
// page-specific script - admin.js, dictionaries.js, help.js, etc. - already
// duplicates for its own page).
window.addEventListener('load', adjustOffsetBy)
window.addEventListener('resize', adjustOffsetBy)
function adjustOffsetBy() {
const fixedTopSection = document.getElementById('fixed-top-section')
const offsetMain = document.getElementById('offset-main')
const offsetHeaderPadding = document.getElementById('offset-padding')
if (!fixedTopSection || !offsetMain) return
if (document.body.clientWidth < 1200) {
if (offsetHeaderPadding !== null) offsetMain.style.paddingTop = `0px`
} else if (offsetHeaderPadding !== null) {
const referenceHeight = fixedTopSection.offsetHeight
const offsetHeaderHeight = offsetHeaderPadding.offsetHeight
offsetMain.style.paddingTop = `${referenceHeight + offsetHeaderHeight}px`
}
}