Changement des ilink vers markdown pur

This commit is contained in:
2025-11-12 20:17:43 +01:00
parent 6585b1765a
commit a09b73e4f1
25 changed files with 803 additions and 315 deletions

View File

@ -1,3 +1,4 @@
import { debug, debugError } from './debug.js';
/**
* Font Manager - Gère le changement de polices
*/
@ -67,7 +68,7 @@ class FontManager {
const savedSize = localStorage.getItem('fontSize') || 'medium';
this.applyFontSize(savedSize);
console.log('FontManager initialized with font:', savedFont, 'size:', savedSize);
debug('FontManager initialized with font:', savedFont, 'size:', savedSize);
}
applyFont(fontId) {
@ -88,7 +89,7 @@ class FontManager {
// Sauvegarder le choix
localStorage.setItem('selectedFont', fontId);
console.log('Police appliquée:', font.name);
debug('Police appliquée:', font.name);
}
applyFontSize(sizeId) {
@ -109,7 +110,7 @@ class FontManager {
// Sauvegarder le choix
localStorage.setItem('fontSize', sizeId);
console.log('Taille de police appliquée:', sizeId, size);
debug('Taille de police appliquée:', sizeId, size);
}
getCurrentSize() {
@ -130,7 +131,7 @@ class FontManager {
link.href = `https://fonts.googleapis.com/css2?family=${fontParam}&display=swap`;
document.head.appendChild(link);
console.log('Google Font chargée:', fontParam);
debug('Google Font chargée:', fontParam);
}
getCurrentFont() {