Merge branch 'main' of github.com:jcalixte/tps

This commit is contained in:
Julien Calixte
2025-05-27 17:28:39 +02:00
6 changed files with 46 additions and 31 deletions

11
main.ts
View File

@@ -31,12 +31,21 @@ if (display === 'house-only') {
document.querySelectorAll('.hud')?.forEach((hud) => hud.remove())
}
const simpleCustomerSatisfaction = params.get('customer-satisfaction')
if (simpleCustomerSatisfaction === 'simple') {
document.querySelector('.value-analysis-value-engineering')?.remove()
}
const size = params.get('size')
if (size === 'small') {
const body = document.querySelector('body')
if (body) {
body.style.fontSize = '15px'
document.documentElement.style.setProperty('--min-height', '100px')
document.documentElement.style.setProperty('--gap', '0.5rem')
document.documentElement.style.setProperty('--font-size', '13px')
document.documentElement.style.setProperty('--min-font-size', '8px')
}
}