index changes

This commit is contained in:
2026-04-17 12:47:41 +05:30
parent e49d5e7976
commit 786bd38286
64 changed files with 15844 additions and 8873 deletions

21
find_empty_fonts_all.js Normal file
View File

@@ -0,0 +1,21 @@
const fs = require('fs');
const path = require('path');
const cssDir = 'c:/xampp/htdocs/doormileweb/assets/css';
const files = fs.readdirSync(cssDir).filter(f => f.endsWith('.css'));
files.forEach(file => {
const filePath = path.join(cssDir, file);
const content = fs.readFileSync(filePath, 'utf8');
const fontFaceRegex = /@font-face\s*{([^}]*)}/g;
let match;
while ((match = fontFaceRegex.exec(content)) !== null) {
const block = match[1];
if (!block.includes('src:')) {
console.log(`FILE: ${file}`);
console.log(match[0]);
console.log('---');
}
}
});