Files
Crapfixer/docs/log-analyzer/index.html
T
2025-05-15 18:07:22 +02:00

41 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Crapfixer Log Analyzer</title>
<style>
body { font-family: sans-serif; margin: 2rem; background: #f4f4f4; }
textarea { width: 100%; height: 200px; font-family: monospace; margin-bottom: 1rem; }
.result { background: white; border: 1px solid #ddd; padding: 1rem; }
.issue { color: #c62828; margin-bottom: 0.5rem; }
.key { font-family: monospace; color: #37474f; }
</style>
</head>
<body>
<h1>🧠 Crapfixer Log Analyzer</h1>
<p>Paste your exported log below to analyze it:</p>
<textarea id="logInput" placeholder="Paste your Crapfixer log here..."></textarea>
<button onclick="analyzeLog()">🔍 Analyze</button>
<div class="result" id="output"></div>
<script>
function analyzeLog() {
const log = document.getElementById('logInput').value;
const output = document.getElementById('output');
const lines = log.split('\n');
const issues = lines.filter(line => line.startsWith('❌'));
const regKeys = lines.filter(line => line.includes('HKEY_') || line.includes('➤'));
output.innerHTML = `
<h3>🧪 Found ${issues.length} Issues</h3>
<div>${issues.map(i => `<div class="issue">${i}</div>`).join('')}</div>
<hr>
<h3>🗂 Registry Keys</h3>
<div>${regKeys.map(k => `<div class="key">${k}</div>`).join('')}</div>
`;
}
</script>
</body>
</html>