Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
1892 lines
94 KiB
HTML
1892 lines
94 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="tr">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<meta name="description" content="YakNet A11y Accessibility Audit Report">
|
||
<title>YakNet Erişilebilirlik Raporu</title>
|
||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;700;800&display=swap" rel="stylesheet">
|
||
<style>
|
||
:root {
|
||
--bg-app: #0b0f19;
|
||
--bg-card: rgba(17, 24, 39, 0.7);
|
||
--border-card: rgba(255, 255, 255, 0.08);
|
||
--text-primary: #f3f4f6;
|
||
--text-secondary: #9ca3af;
|
||
--text-muted: #6b7280;
|
||
|
||
--color-primary: #6366f1;
|
||
--color-primary-hover: #4f46e5;
|
||
|
||
--color-critical: #f43f5e;
|
||
--bg-critical: rgba(244, 63, 94, 0.15);
|
||
|
||
--color-error: #f97316;
|
||
--bg-error: rgba(249, 115, 22, 0.15);
|
||
|
||
--color-warning: #eab308;
|
||
--bg-warning: rgba(234, 179, 8, 0.15);
|
||
|
||
--color-info: #3b82f6;
|
||
--bg-info: rgba(59, 130, 246, 0.15);
|
||
|
||
--color-success: #10b981;
|
||
--bg-success: rgba(16, 185, 129, 0.15);
|
||
|
||
--shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
|
||
--backdrop-blur: blur(16px);
|
||
--font-primary: 'Outfit', 'Inter', sans-serif;
|
||
--font-secondary: 'Inter', sans-serif;
|
||
--font-code: 'Courier New', Courier, monospace;
|
||
}
|
||
|
||
body.light-theme {
|
||
--bg-app: #f3f4f6;
|
||
--bg-card: rgba(255, 255, 255, 0.9);
|
||
--border-card: rgba(0, 0, 0, 0.08);
|
||
--text-primary: #111827;
|
||
--text-secondary: #4b5563;
|
||
--text-muted: #9ca3af;
|
||
|
||
--shadow-premium: 0 10px 30px -10px rgba(31, 38, 135, 0.08);
|
||
|
||
--color-critical: #e11d48;
|
||
--bg-critical: rgba(225, 29, 72, 0.1);
|
||
|
||
--color-error: #ea580c;
|
||
--bg-error: rgba(234, 88, 12, 0.1);
|
||
|
||
--color-warning: #ca8a04;
|
||
--bg-warning: rgba(202, 138, 4, 0.1);
|
||
|
||
--color-info: #2563eb;
|
||
--bg-info: rgba(37, 99, 235, 0.1);
|
||
|
||
--color-success: #059669;
|
||
--bg-success: rgba(5, 150, 105, 0.1);
|
||
}
|
||
|
||
* {
|
||
box-sizing: border-box;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
body {
|
||
font-family: var(--font-secondary);
|
||
background-color: var(--bg-app);
|
||
color: var(--text-primary);
|
||
transition: background-color 0.3s ease, color 0.3s ease;
|
||
min-height: 100vh;
|
||
padding: 24px;
|
||
}
|
||
|
||
.sr-only {
|
||
position: absolute;
|
||
width: 1px;
|
||
height: 1px;
|
||
padding: 0;
|
||
margin: -1px;
|
||
overflow: hidden;
|
||
clip: rect(0, 0, 0, 0);
|
||
border: 0;
|
||
}
|
||
|
||
.container {
|
||
max-width: 1300px;
|
||
margin: 0 auto;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 24px;
|
||
}
|
||
|
||
/* Glassmorphic Cards styling */
|
||
.glass-panel {
|
||
background: var(--bg-card);
|
||
backdrop-filter: var(--backdrop-blur);
|
||
-webkit-backdrop-filter: var(--backdrop-blur);
|
||
border: 1px solid var(--border-card);
|
||
border-radius: 16px;
|
||
box-shadow: var(--shadow-premium);
|
||
padding: 24px;
|
||
transition: border 0.3s ease, box-shadow 0.3s ease;
|
||
}
|
||
|
||
/* Header styling */
|
||
.app-header {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
gap: 16px;
|
||
}
|
||
|
||
.brand-section {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
}
|
||
|
||
.logo-container {
|
||
width: 44px;
|
||
height: 44px;
|
||
background: linear-gradient(135deg, var(--color-primary), #a78bfa);
|
||
border-radius: 12px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: white;
|
||
box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
|
||
}
|
||
|
||
.logo-container svg {
|
||
width: 24px;
|
||
height: 24px;
|
||
}
|
||
|
||
.title-group h1 {
|
||
font-family: var(--font-primary);
|
||
font-size: 1.5rem;
|
||
font-weight: 800;
|
||
letter-spacing: -0.02em;
|
||
}
|
||
|
||
.title-group p {
|
||
font-size: 0.85rem;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.header-meta {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 16px;
|
||
}
|
||
|
||
.meta-tag {
|
||
background: rgba(255, 255, 255, 0.04);
|
||
border: 1px solid var(--border-card);
|
||
padding: 6px 12px;
|
||
border-radius: 8px;
|
||
font-size: 0.85rem;
|
||
color: var(--text-secondary);
|
||
max-width: 300px;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
body.light-theme .meta-tag {
|
||
background: rgba(0, 0, 0, 0.03);
|
||
}
|
||
|
||
.theme-btn {
|
||
background: var(--bg-card);
|
||
border: 1px solid var(--border-card);
|
||
width: 40px;
|
||
height: 40px;
|
||
border-radius: 10px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: var(--text-primary);
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.theme-btn:hover, .theme-btn:focus-visible {
|
||
background: var(--color-primary);
|
||
color: white;
|
||
border-color: var(--color-primary);
|
||
outline: 2px solid var(--color-primary);
|
||
outline-offset: 2px;
|
||
}
|
||
|
||
.theme-btn svg {
|
||
width: 20px;
|
||
height: 20px;
|
||
}
|
||
|
||
/* Metrics grid */
|
||
.metrics-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||
gap: 20px;
|
||
}
|
||
|
||
.metric-card {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 20px;
|
||
}
|
||
|
||
/* Circular gauge chart */
|
||
.gauge-container {
|
||
position: relative;
|
||
width: 100px;
|
||
height: 100px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.gauge {
|
||
width: 100%;
|
||
height: 100%;
|
||
transform: rotate(-90deg);
|
||
}
|
||
|
||
.gauge-bg {
|
||
fill: none;
|
||
stroke: var(--border-card);
|
||
stroke-width: 8;
|
||
}
|
||
|
||
.gauge-val {
|
||
fill: none;
|
||
stroke-width: 8;
|
||
stroke-linecap: round;
|
||
stroke-dasharray: 251.2;
|
||
stroke-dashoffset: calc(251.2 - (251.2 * 0) / 100);
|
||
transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
|
||
}
|
||
|
||
.gauge-val.grade-a { stroke: var(--color-success); }
|
||
.gauge-val.grade-b { stroke: var(--color-warning); }
|
||
.gauge-val.grade-c { stroke: var(--color-critical); }
|
||
|
||
.gauge-label {
|
||
position: absolute;
|
||
top: 50%;
|
||
left: 50%;
|
||
transform: translate(-50%, -50%);
|
||
font-family: var(--font-primary);
|
||
font-size: 1.5rem;
|
||
font-weight: 800;
|
||
}
|
||
|
||
.metric-desc h2 {
|
||
font-family: var(--font-primary);
|
||
font-size: 1.25rem;
|
||
font-weight: 700;
|
||
margin-bottom: 2px;
|
||
}
|
||
|
||
.metric-desc p {
|
||
font-size: 0.85rem;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
/* Summary lists */
|
||
.summary-stats {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, 1fr);
|
||
gap: 10px;
|
||
width: 100%;
|
||
}
|
||
|
||
.stat-item {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 8px 12px;
|
||
border-radius: 8px;
|
||
background: rgba(255, 255, 255, 0.02);
|
||
border: 1px solid var(--border-card);
|
||
}
|
||
body.light-theme .stat-item {
|
||
background: rgba(0, 0, 0, 0.02);
|
||
}
|
||
|
||
.stat-label {
|
||
font-size: 0.8rem;
|
||
color: var(--text-secondary);
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
.stat-val {
|
||
font-weight: 700;
|
||
font-size: 0.95rem;
|
||
}
|
||
|
||
.dot {
|
||
width: 8px;
|
||
height: 8px;
|
||
border-radius: 50%;
|
||
display: inline-block;
|
||
}
|
||
|
||
.dot.critical { background-color: var(--color-critical); }
|
||
.dot.error { background-color: var(--color-error); }
|
||
.dot.warning { background-color: var(--color-warning); }
|
||
.dot.info { background-color: var(--color-info); }
|
||
|
||
/* Filter Toolbar */
|
||
.toolbar {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
gap: 16px;
|
||
padding: 16px 24px;
|
||
}
|
||
|
||
.search-group {
|
||
position: relative;
|
||
flex: 1;
|
||
min-width: 250px;
|
||
}
|
||
|
||
.search-icon {
|
||
position: absolute;
|
||
left: 14px;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
width: 18px;
|
||
height: 18px;
|
||
color: var(--text-muted);
|
||
pointer-events: none;
|
||
}
|
||
|
||
.search-input {
|
||
width: 100%;
|
||
background: rgba(255, 255, 255, 0.03);
|
||
border: 1px solid var(--border-card);
|
||
border-radius: 10px;
|
||
padding: 10px 16px 10px 42px;
|
||
color: var(--text-primary);
|
||
font-family: var(--font-secondary);
|
||
font-size: 0.9rem;
|
||
outline: none;
|
||
transition: all 0.2s ease;
|
||
}
|
||
body.light-theme .search-input {
|
||
background: rgba(0, 0, 0, 0.02);
|
||
}
|
||
|
||
.search-input:focus {
|
||
border-color: var(--color-primary);
|
||
background: rgba(255, 255, 255, 0.05);
|
||
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
|
||
}
|
||
body.light-theme .search-input:focus {
|
||
background: #fff;
|
||
}
|
||
|
||
.filter-group {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
}
|
||
|
||
.filter-btn {
|
||
background: rgba(255, 255, 255, 0.02);
|
||
border: 1px solid var(--border-card);
|
||
padding: 8px 14px;
|
||
border-radius: 8px;
|
||
font-size: 0.85rem;
|
||
font-weight: 500;
|
||
color: var(--text-secondary);
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
body.light-theme .filter-btn {
|
||
background: rgba(0, 0, 0, 0.02);
|
||
}
|
||
|
||
.filter-btn:hover, .filter-btn:focus-visible {
|
||
color: var(--text-primary);
|
||
border-color: var(--text-secondary);
|
||
outline: none;
|
||
}
|
||
|
||
.filter-btn.active {
|
||
background: var(--color-primary);
|
||
color: white;
|
||
border-color: var(--color-primary);
|
||
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
|
||
}
|
||
|
||
/* Violations List */
|
||
.violations-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 16px;
|
||
}
|
||
|
||
.violation-card {
|
||
border-left: 5px solid var(--color-primary);
|
||
animation: slideIn 0.3s ease forwards;
|
||
}
|
||
|
||
.violation-card[data-severity="critical"] { border-left-color: var(--color-critical); }
|
||
.violation-card[data-severity="error"] { border-left-color: var(--color-error); }
|
||
.violation-card[data-severity="warning"] { border-left-color: var(--color-warning); }
|
||
.violation-card[data-severity="info"] { border-left-color: var(--color-info); }
|
||
|
||
.card-header {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
gap: 12px;
|
||
margin-bottom: 16px;
|
||
border-bottom: 1px solid var(--border-card);
|
||
padding-bottom: 12px;
|
||
}
|
||
|
||
.badge-row {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 8px;
|
||
align-items: center;
|
||
}
|
||
|
||
.badge {
|
||
font-size: 0.75rem;
|
||
font-weight: 600;
|
||
padding: 4px 10px;
|
||
border-radius: 6px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
.rule-badge {
|
||
background: rgba(99, 102, 241, 0.1);
|
||
color: #818cf8;
|
||
border: 1px solid rgba(99, 102, 241, 0.2);
|
||
}
|
||
body.light-theme .rule-badge {
|
||
background: rgba(99, 102, 241, 0.08);
|
||
color: var(--color-primary);
|
||
}
|
||
|
||
.standard-badge {
|
||
background: rgba(255, 255, 255, 0.05);
|
||
color: var(--text-secondary);
|
||
border: 1px solid var(--border-card);
|
||
}
|
||
body.light-theme .standard-badge {
|
||
background: rgba(0, 0, 0, 0.04);
|
||
}
|
||
|
||
.severity-badge.severity-critical { background: var(--bg-critical); color: var(--color-critical); }
|
||
.severity-badge.severity-error { background: var(--bg-error); color: var(--color-error); }
|
||
.severity-badge.severity-warning { background: var(--bg-warning); color: var(--color-warning); }
|
||
.severity-badge.severity-info { background: var(--bg-info); color: var(--color-info); }
|
||
|
||
.severity-badge .dot {
|
||
width: 6px;
|
||
height: 6px;
|
||
background-color: currentColor;
|
||
}
|
||
|
||
.location-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
font-size: 0.8rem;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.icon-location {
|
||
width: 14px;
|
||
height: 14px;
|
||
}
|
||
|
||
.violation-msg {
|
||
font-size: 1.05rem;
|
||
font-weight: 600;
|
||
margin-bottom: 16px;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
/* Tabs and code blocks */
|
||
.code-viewer {
|
||
background: rgba(0, 0, 0, 0.25);
|
||
border: 1px solid var(--border-card);
|
||
border-radius: 10px;
|
||
overflow: hidden;
|
||
}
|
||
body.light-theme .code-viewer {
|
||
background: #1e293b;
|
||
}
|
||
|
||
.tab-list {
|
||
display: flex;
|
||
background: rgba(0, 0, 0, 0.15);
|
||
border-bottom: 1px solid var(--border-card);
|
||
}
|
||
|
||
.tab-btn {
|
||
background: none;
|
||
border: none;
|
||
border-bottom: 2px solid transparent;
|
||
color: #9ca3af;
|
||
padding: 10px 16px;
|
||
font-size: 0.8rem;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.tab-btn:hover {
|
||
color: white;
|
||
background: rgba(255, 255, 255, 0.02);
|
||
}
|
||
|
||
.tab-btn.active {
|
||
color: white;
|
||
border-bottom-color: var(--color-primary);
|
||
background: rgba(255, 255, 255, 0.04);
|
||
}
|
||
|
||
.tab-panel {
|
||
padding: 16px;
|
||
}
|
||
|
||
.tab-panel[hidden] {
|
||
display: none;
|
||
}
|
||
|
||
pre {
|
||
overflow-x: auto;
|
||
max-height: 250px;
|
||
}
|
||
|
||
code {
|
||
font-family: var(--font-code);
|
||
font-size: 0.85rem;
|
||
color: #e2e8f0;
|
||
line-height: 1.5;
|
||
white-space: pre-wrap;
|
||
word-break: break-all;
|
||
}
|
||
|
||
.ai-recommendation {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
}
|
||
|
||
.ai-explanation {
|
||
font-size: 0.85rem;
|
||
line-height: 1.5;
|
||
color: #34d399;
|
||
background: rgba(16, 185, 129, 0.08);
|
||
border-left: 3px solid var(--color-success);
|
||
padding: 10px 14px;
|
||
border-radius: 0 6px 6px 0;
|
||
}
|
||
|
||
.code-wrapper {
|
||
position: relative;
|
||
}
|
||
|
||
.copy-btn {
|
||
position: absolute;
|
||
right: 8px;
|
||
top: 8px;
|
||
background: rgba(255, 255, 255, 0.08);
|
||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||
color: #cbd5e1;
|
||
padding: 6px 12px;
|
||
border-radius: 6px;
|
||
font-size: 0.75rem;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.copy-btn:hover, .copy-btn:focus-visible {
|
||
background: var(--color-primary);
|
||
color: white;
|
||
border-color: var(--color-primary);
|
||
outline: none;
|
||
}
|
||
|
||
.icon-copy {
|
||
width: 14px;
|
||
height: 14px;
|
||
}
|
||
|
||
/* empty state */
|
||
.empty-state {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 60px 24px;
|
||
text-align: center;
|
||
gap: 16px;
|
||
}
|
||
|
||
.empty-icon {
|
||
width: 64px;
|
||
height: 64px;
|
||
color: var(--color-success);
|
||
}
|
||
|
||
.empty-state h3 {
|
||
font-family: var(--font-primary);
|
||
font-size: 1.3rem;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.empty-state p {
|
||
color: var(--text-secondary);
|
||
font-size: 0.9rem;
|
||
max-width: 400px;
|
||
}
|
||
|
||
@keyframes slideIn {
|
||
from { opacity: 0; transform: translateY(12px); }
|
||
to { opacity: 1; transform: translateY(0); }
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.toolbar {
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
}
|
||
.filter-group {
|
||
justify-content: stretch;
|
||
}
|
||
.filter-btn {
|
||
flex: 1;
|
||
justify-content: center;
|
||
}
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<!-- Accessibility Live Announcer -->
|
||
<div id="a11y-announcer" class="sr-only" aria-live="polite" aria-atomic="true"></div>
|
||
|
||
<div class="container">
|
||
<!-- Header -->
|
||
<header class="glass-panel app-header">
|
||
<div class="brand-section">
|
||
<div class="logo-container" aria-hidden="true">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
||
<circle cx="12" cy="12" r="10"></circle>
|
||
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>
|
||
<path d="M2 12h20"></path>
|
||
</svg>
|
||
</div>
|
||
<div class="title-group">
|
||
<h1>YakNet Accessibility Dashboard</h1>
|
||
<p>Web Standartları ve WCAG Uyum Analiz Raporu</p>
|
||
</div>
|
||
</div>
|
||
<div class="header-meta">
|
||
<div class="meta-tag" title="demo/broken.html">Hedef: demo/broken.html</div>
|
||
<div class="meta-tag">Tarih: 2026-06-06 07:20:38</div>
|
||
<button id="theme-toggle" class="theme-btn" aria-label="Açık/Karanlık tema değiştir" onclick="toggleTheme()">
|
||
<!-- Moon icon -->
|
||
<svg class="icon-theme" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
|
||
</svg>
|
||
</button>
|
||
</div>
|
||
</header>
|
||
|
||
<!-- Metrics Grid -->
|
||
<section class="metrics-grid" aria-label="Erişilebilirlik Özet Metrikleri">
|
||
<!-- Health Score Card -->
|
||
<div class="glass-panel metric-card">
|
||
<div class="gauge-container">
|
||
<svg viewBox="0 0 100 100" class="gauge">
|
||
<circle cx="50" cy="50" r="40" class="gauge-bg"></circle>
|
||
<circle cx="50" cy="50" r="40" class="gauge-val " id="score-gauge" stroke-dasharray="251.2" stroke-dashoffset="251.2"></circle>
|
||
</svg>
|
||
<div class="gauge-label" id="score-val">0</div>
|
||
</div>
|
||
<div class="metric-desc">
|
||
<h2>Erişilebilirlik Skoru</h2>
|
||
<p>Sayfanın genel standartlara uygunluk derecesi.</p>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Severity Distribution Card -->
|
||
<div class="glass-panel">
|
||
<div class="summary-stats">
|
||
<div class="stat-item">
|
||
<span class="stat-label">
|
||
<span class="dot critical"></span> Critical
|
||
</span>
|
||
<span class="stat-val">0</span>
|
||
</div>
|
||
<div class="stat-item">
|
||
<span class="stat-label">
|
||
<span class="dot error"></span> Error
|
||
</span>
|
||
<span class="stat-val">13</span>
|
||
</div>
|
||
<div class="stat-item">
|
||
<span class="stat-label">
|
||
<span class="dot warning"></span> Warning
|
||
</span>
|
||
<span class="stat-val">7</span>
|
||
</div>
|
||
<div class="stat-item">
|
||
<span class="stat-label">
|
||
<span class="dot info"></span> Info
|
||
</span>
|
||
<span class="stat-val">0</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Standards Card -->
|
||
<div class="glass-panel">
|
||
<div class="summary-stats">
|
||
<div class="stat-item">
|
||
<span class="stat-label">WCAG A</span>
|
||
<span class="stat-val">19</span>
|
||
</div>
|
||
<div class="stat-item">
|
||
<span class="stat-label">WCAG AA</span>
|
||
<span class="stat-val">1</span>
|
||
</div>
|
||
<div class="stat-item">
|
||
<span class="stat-label">WCAG AAA</span>
|
||
<span class="stat-val">0</span>
|
||
</div>
|
||
<div class="stat-item">
|
||
<span class="stat-label">Toplam İhlal</span>
|
||
<span class="stat-val">20</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- Filter Toolbar -->
|
||
<section class="glass-panel toolbar" aria-label="Rapor Filtreleri">
|
||
<div class="search-group">
|
||
<svg class="search-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||
<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line>
|
||
</svg>
|
||
<input type="search" id="search-box" class="search-input" placeholder="Kural veya hata açıklaması ara..." aria-label="Kural veya hata açıklaması ara" oninput="applyFilters()">
|
||
</div>
|
||
|
||
<div class="filter-group">
|
||
<button class="filter-btn active" id="btn-all" onclick="setSeverityFilter('all')" aria-label="Tüm ihlalleri göster" aria-pressed="true">Hepsi</button>
|
||
<button class="filter-btn" id="btn-critical" onclick="setSeverityFilter('critical')" aria-label="Sadece Critical seviye ihlalleri göster" aria-pressed="false">
|
||
<span class="dot critical"></span> Critical
|
||
</button>
|
||
<button class="filter-btn" id="btn-error" onclick="setSeverityFilter('error')" aria-label="Sadece Error seviye ihlalleri göster" aria-pressed="false">
|
||
<span class="dot error"></span> Error
|
||
</button>
|
||
<button class="filter-btn" id="btn-warning" onclick="setSeverityFilter('warning')" aria-label="Sadece Warning seviye ihlalleri göster" aria-pressed="false">
|
||
<span class="dot warning"></span> Warning
|
||
</button>
|
||
<button class="filter-btn" id="btn-info" onclick="setSeverityFilter('info')" aria-label="Sadece Info seviye ihlalleri göster" aria-pressed="false">
|
||
<span class="dot info"></span> Info
|
||
</button>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- Violations Container -->
|
||
<main class="violations-list" id="violations-container" aria-label="Erişilebilirlik İhlalleri Listesi">
|
||
|
||
<div class="violation-card" data-severity="error" data-standard="A" data-rule="WCAG_3_1_1_LANG" data-message="The html element must have a lang attribute.">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">WCAG_3_1_1_LANG</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-error">
|
||
<span class="dot"></span>
|
||
Error
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">The html element must have a lang attribute.</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-0" role="tab" aria-selected="true" aria-controls="panel-orig-0">Mevcut Kod</button>
|
||
<button class="tab-btn" id="tab-ai-0" role="tab" aria-selected="false" aria-controls="panel-ai-0" tabindex="-1">Yapay Zeka Önerisi</button>
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-0" role="tabpanel" aria-labelledby="tab-orig-0">
|
||
<pre><code><html>
|
||
<head>
|
||
<title></title>
|
||
</head>
|
||
<body>
|
||
<h1 id="main-content">Welcome to a broken page</h1>
|
||
|
||
<!-- Missing alt attribute -->
|
||
<img src="logo.png">
|
||
|
||
<!-- Empty link -->
|
||
<a href="https://google.com"></a>
|
||
|
||
<!-- Empty button -->
|
||
<button type="submit"></button>
|
||
|
||
<!-- Positive tabindex -->
|
||
<a href="/keyboard" tabindex="5">Keyboard test</a>
|
||
|
||
<!-- Duplicate ID -->
|
||
<div id="main-content">This is a duplicate main-content ID div!</div>
|
||
|
||
<!-- Low Contrast -->
|
||
<p style="color: #888888; background-color: #999999;">This text has extremely low contrast ratio!</p>
|
||
|
||
<!-- Invalid ARIA role and missing controls target -->
|
||
<div role="cool-widget" aria-controls="non-existent-popup">WAI-ARIA elements</div>
|
||
|
||
<!-- Missing Iframe Title -->
|
||
<iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ" width="560" height="315"></iframe>
|
||
|
||
<!-- New WCAG Rule Violations for testing -->
|
||
|
||
<!-- LinkTextGeneric: Generic text without context -->
|
||
<a href="/read-more">Click here</a>
|
||
<a href="/devam-oku">devamını oku</a>
|
||
|
||
<!-- PlaceholderAsLabel: Input relying only on placeholder -->
|
||
<input type="text" placeholder="Search website...">
|
||
|
||
<!-- ImageAltRedundant: Redundant words in alt text -->
|
||
<img src="logo2.png" alt="logo of our company">
|
||
<img src="profile.jpg" alt="profile photo of john doe">
|
||
|
||
<!-- AriaHiddenFocusable: Focusable element hidden with aria-hidden="true" -->
|
||
<div aria-hidden="true">
|
||
<button type="button">Hidden click</button>
|
||
</div>
|
||
<a href="#" aria-hidden="true">Hidden link</a>
|
||
|
||
<p>This page has multiple accessibility issues.</p>
|
||
</body>
|
||
</html></code></pre>
|
||
</div>
|
||
|
||
<div class="tab-panel" id="panel-ai-0" role="tabpanel" aria-labelledby="tab-ai-0" hidden>
|
||
<div class="ai-recommendation">
|
||
|
||
<div class="code-wrapper">
|
||
<pre><code id="code-ai-0">Add lang="en" (or your language) to the html tag.</code></pre>
|
||
<button class="copy-btn" aria-label="WCAG_3_1_1_LANG kuralı için önerilen düzeltmeyi kopyala" onclick="copyCode('#code-ai-0', this)">
|
||
<svg class="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
|
||
<span>Kopyala</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="error" data-standard="A" data-rule="WCAG_1_1_1_ALT" data-message="Images must have an alt attribute.">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">WCAG_1_1_1_ALT</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-error">
|
||
<span class="dot"></span>
|
||
Error
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Images must have an alt attribute.</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-1" role="tab" aria-selected="true" aria-controls="panel-orig-1">Mevcut Kod</button>
|
||
<button class="tab-btn" id="tab-ai-1" role="tab" aria-selected="false" aria-controls="panel-ai-1" tabindex="-1">Yapay Zeka Önerisi</button>
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-1" role="tabpanel" aria-labelledby="tab-orig-1">
|
||
<pre><code><img src="logo.png"></code></pre>
|
||
</div>
|
||
|
||
<div class="tab-panel" id="panel-ai-1" role="tabpanel" aria-labelledby="tab-ai-1" hidden>
|
||
<div class="ai-recommendation">
|
||
|
||
<div class="code-wrapper">
|
||
<pre><code id="code-ai-1">Add an alt attribute. Use alt="" for decorative images.</code></pre>
|
||
<button class="copy-btn" aria-label="WCAG_1_1_1_ALT kuralı için önerilen düzeltmeyi kopyala" onclick="copyCode('#code-ai-1', this)">
|
||
<svg class="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
|
||
<span>Kopyala</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="error" data-standard="A" data-rule="WCAG_2_4_4_LINK_TEXT" data-message="Links must have discernible text.">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">WCAG_2_4_4_LINK_TEXT</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-error">
|
||
<span class="dot"></span>
|
||
Error
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Links must have discernible text.</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-2" role="tab" aria-selected="true" aria-controls="panel-orig-2">Mevcut Kod</button>
|
||
<button class="tab-btn" id="tab-ai-2" role="tab" aria-selected="false" aria-controls="panel-ai-2" tabindex="-1">Yapay Zeka Önerisi</button>
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-2" role="tabpanel" aria-labelledby="tab-orig-2">
|
||
<pre><code><a href="https://google.com"></a></code></pre>
|
||
</div>
|
||
|
||
<div class="tab-panel" id="panel-ai-2" role="tabpanel" aria-labelledby="tab-ai-2" hidden>
|
||
<div class="ai-recommendation">
|
||
|
||
<div class="code-wrapper">
|
||
<pre><code id="code-ai-2">Add text content or an aria-label to the link.</code></pre>
|
||
<button class="copy-btn" aria-label="WCAG_2_4_4_LINK_TEXT kuralı için önerilen düzeltmeyi kopyala" onclick="copyCode('#code-ai-2', this)">
|
||
<svg class="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
|
||
<span>Kopyala</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="error" data-standard="A" data-rule="WCAG_4_1_2_BUTTON" data-message="Buttons must have discernible text.">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">WCAG_4_1_2_BUTTON</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-error">
|
||
<span class="dot"></span>
|
||
Error
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Buttons must have discernible text.</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-3" role="tab" aria-selected="true" aria-controls="panel-orig-3">Mevcut Kod</button>
|
||
<button class="tab-btn" id="tab-ai-3" role="tab" aria-selected="false" aria-controls="panel-ai-3" tabindex="-1">Yapay Zeka Önerisi</button>
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-3" role="tabpanel" aria-labelledby="tab-orig-3">
|
||
<pre><code><button type="submit"></button></code></pre>
|
||
</div>
|
||
|
||
<div class="tab-panel" id="panel-ai-3" role="tabpanel" aria-labelledby="tab-ai-3" hidden>
|
||
<div class="ai-recommendation">
|
||
|
||
<div class="code-wrapper">
|
||
<pre><code id="code-ai-3">Add text or an aria-label to the button.</code></pre>
|
||
<button class="copy-btn" aria-label="WCAG_4_1_2_BUTTON kuralı için önerilen düzeltmeyi kopyala" onclick="copyCode('#code-ai-3', this)">
|
||
<svg class="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
|
||
<span>Kopyala</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="error" data-standard="A" data-rule="WCAG_1_3_1_LABEL" data-message="Form inputs must have an associated label.">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">WCAG_1_3_1_LABEL</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-error">
|
||
<span class="dot"></span>
|
||
Error
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Form inputs must have an associated label.</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-4" role="tab" aria-selected="true" aria-controls="panel-orig-4">Mevcut Kod</button>
|
||
<button class="tab-btn" id="tab-ai-4" role="tab" aria-selected="false" aria-controls="panel-ai-4" tabindex="-1">Yapay Zeka Önerisi</button>
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-4" role="tabpanel" aria-labelledby="tab-orig-4">
|
||
<pre><code><input type="text" placeholder="Search website..."></code></pre>
|
||
</div>
|
||
|
||
<div class="tab-panel" id="panel-ai-4" role="tabpanel" aria-labelledby="tab-ai-4" hidden>
|
||
<div class="ai-recommendation">
|
||
|
||
<div class="code-wrapper">
|
||
<pre><code id="code-ai-4">Add a <label for="..."> or an aria-label attribute.</code></pre>
|
||
<button class="copy-btn" aria-label="WCAG_1_3_1_LABEL kuralı için önerilen düzeltmeyi kopyala" onclick="copyCode('#code-ai-4', this)">
|
||
<svg class="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
|
||
<span>Kopyala</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="warning" data-standard="A" data-rule="WCAG_2_4_3_TABINDEX" data-message="Avoid positive tabindex values (tabindex="5") to preserve the natural tab order.">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">WCAG_2_4_3_TABINDEX</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-warning">
|
||
<span class="dot"></span>
|
||
Warning
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Avoid positive tabindex values (tabindex="5") to preserve the natural tab order.</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-5" role="tab" aria-selected="true" aria-controls="panel-orig-5">Mevcut Kod</button>
|
||
<button class="tab-btn" id="tab-ai-5" role="tab" aria-selected="false" aria-controls="panel-ai-5" tabindex="-1">Yapay Zeka Önerisi</button>
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-5" role="tabpanel" aria-labelledby="tab-orig-5">
|
||
<pre><code><a href="/keyboard" tabindex="5">Keyboard test</a></code></pre>
|
||
</div>
|
||
|
||
<div class="tab-panel" id="panel-ai-5" role="tabpanel" aria-labelledby="tab-ai-5" hidden>
|
||
<div class="ai-recommendation">
|
||
|
||
<div class="code-wrapper">
|
||
<pre><code id="code-ai-5">Remove the positive tabindex or change it to "0" or "-1".</code></pre>
|
||
<button class="copy-btn" aria-label="WCAG_2_4_3_TABINDEX kuralı için önerilen düzeltmeyi kopyala" onclick="copyCode('#code-ai-5', this)">
|
||
<svg class="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
|
||
<span>Kopyala</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="warning" data-standard="AA" data-rule="WCAG_1_4_3_CONTRAST" data-message="Insufficient contrast ratio of 1.24:1. Minimum required is 4.5:1.">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">WCAG_1_4_3_CONTRAST</span>
|
||
<span class="badge standard-badge">WCAG AA</span>
|
||
<span class="badge severity-badge severity-warning">
|
||
<span class="dot"></span>
|
||
Warning
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Insufficient contrast ratio of 1.24:1. Minimum required is 4.5:1.</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-6" role="tab" aria-selected="true" aria-controls="panel-orig-6">Mevcut Kod</button>
|
||
<button class="tab-btn" id="tab-ai-6" role="tab" aria-selected="false" aria-controls="panel-ai-6" tabindex="-1">Yapay Zeka Önerisi</button>
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-6" role="tabpanel" aria-labelledby="tab-orig-6">
|
||
<pre><code><p style="color: #888888; background-color: #999999;">This text has extremely low contrast ratio!</p></code></pre>
|
||
</div>
|
||
|
||
<div class="tab-panel" id="panel-ai-6" role="tabpanel" aria-labelledby="tab-ai-6" hidden>
|
||
<div class="ai-recommendation">
|
||
|
||
<div class="code-wrapper">
|
||
<pre><code id="code-ai-6">Adjust colors to increase contrast. For example, text: #888888, background: #999999.</code></pre>
|
||
<button class="copy-btn" aria-label="WCAG_1_4_3_CONTRAST kuralı için önerilen düzeltmeyi kopyala" onclick="copyCode('#code-ai-6', this)">
|
||
<svg class="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
|
||
<span>Kopyala</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="error" data-standard="A" data-rule="DuplicateId" data-message="Duplicate ID "main-content" found. Element ID attribute must be unique across the document.">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">DuplicateId</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-error">
|
||
<span class="dot"></span>
|
||
Error
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Duplicate ID "main-content" found. Element ID attribute must be unique across the document.</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-7" role="tab" aria-selected="true" aria-controls="panel-orig-7">Mevcut Kod</button>
|
||
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-7" role="tabpanel" aria-labelledby="tab-orig-7">
|
||
<pre><code><h1 id="main-content">Welcome to a broken page</h1></code></pre>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="error" data-standard="A" data-rule="DuplicateId" data-message="Duplicate ID "main-content" found. Element ID attribute must be unique across the document.">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">DuplicateId</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-error">
|
||
<span class="dot"></span>
|
||
Error
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Duplicate ID "main-content" found. Element ID attribute must be unique across the document.</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-8" role="tab" aria-selected="true" aria-controls="panel-orig-8">Mevcut Kod</button>
|
||
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-8" role="tabpanel" aria-labelledby="tab-orig-8">
|
||
<pre><code><div id="main-content">This is a duplicate main-content ID div!</div></code></pre>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="error" data-standard="A" data-rule="AriaRole" data-message="Invalid ARIA role "cool-widget" declared on element. Must use standard WAI-ARIA roles.">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">AriaRole</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-error">
|
||
<span class="dot"></span>
|
||
Error
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Invalid ARIA role "cool-widget" declared on element. Must use standard WAI-ARIA roles.</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-9" role="tab" aria-selected="true" aria-controls="panel-orig-9">Mevcut Kod</button>
|
||
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-9" role="tabpanel" aria-labelledby="tab-orig-9">
|
||
<pre><code><div role="cool-widget" aria-controls="non-existent-popup">WAI-ARIA elements</div></code></pre>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="error" data-standard="A" data-rule="AriaRole" data-message="Attribute aria-controls="non-existent-popup" targets an element that does not exist in the document.">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">AriaRole</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-error">
|
||
<span class="dot"></span>
|
||
Error
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Attribute aria-controls="non-existent-popup" targets an element that does not exist in the document.</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-10" role="tab" aria-selected="true" aria-controls="panel-orig-10">Mevcut Kod</button>
|
||
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-10" role="tabpanel" aria-labelledby="tab-orig-10">
|
||
<pre><code><div role="cool-widget" aria-controls="non-existent-popup">WAI-ARIA elements</div></code></pre>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="error" data-standard="A" data-rule="WCAG_4_1_2_IFRAME_TITLE" data-message="Iframe element is missing a descriptive title attribute.">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">WCAG_4_1_2_IFRAME_TITLE</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-error">
|
||
<span class="dot"></span>
|
||
Error
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Iframe element is missing a descriptive title attribute.</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-11" role="tab" aria-selected="true" aria-controls="panel-orig-11">Mevcut Kod</button>
|
||
<button class="tab-btn" id="tab-ai-11" role="tab" aria-selected="false" aria-controls="panel-ai-11" tabindex="-1">Yapay Zeka Önerisi</button>
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-11" role="tabpanel" aria-labelledby="tab-orig-11">
|
||
<pre><code><iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ" width="560" height="315"></iframe></code></pre>
|
||
</div>
|
||
|
||
<div class="tab-panel" id="panel-ai-11" role="tabpanel" aria-labelledby="tab-ai-11" hidden>
|
||
<div class="ai-recommendation">
|
||
|
||
<div class="code-wrapper">
|
||
<pre><code id="code-ai-11">Add a descriptive title attribute, e.g., title="Embedded Map" or title="Video Player".</code></pre>
|
||
<button class="copy-btn" aria-label="WCAG_4_1_2_IFRAME_TITLE kuralı için önerilen düzeltmeyi kopyala" onclick="copyCode('#code-ai-11', this)">
|
||
<svg class="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
|
||
<span>Kopyala</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="warning" data-standard="A" data-rule="WCAG_2_4_4_LINK_GENERIC" data-message="Links must have descriptive text. Generic text like "click here" or "read more" is not accessible.">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">WCAG_2_4_4_LINK_GENERIC</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-warning">
|
||
<span class="dot"></span>
|
||
Warning
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Links must have descriptive text. Generic text like "click here" or "read more" is not accessible.</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-12" role="tab" aria-selected="true" aria-controls="panel-orig-12">Mevcut Kod</button>
|
||
<button class="tab-btn" id="tab-ai-12" role="tab" aria-selected="false" aria-controls="panel-ai-12" tabindex="-1">Yapay Zeka Önerisi</button>
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-12" role="tabpanel" aria-labelledby="tab-orig-12">
|
||
<pre><code><a href="/read-more">Click here</a></code></pre>
|
||
</div>
|
||
|
||
<div class="tab-panel" id="panel-ai-12" role="tabpanel" aria-labelledby="tab-ai-12" hidden>
|
||
<div class="ai-recommendation">
|
||
|
||
<div class="code-wrapper">
|
||
<pre><code id="code-ai-12">Change the link text to describe its target, or add an aria-label attribute to provide context.</code></pre>
|
||
<button class="copy-btn" aria-label="WCAG_2_4_4_LINK_GENERIC kuralı için önerilen düzeltmeyi kopyala" onclick="copyCode('#code-ai-12', this)">
|
||
<svg class="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
|
||
<span>Kopyala</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="warning" data-standard="A" data-rule="WCAG_2_4_4_LINK_GENERIC" data-message="Links must have descriptive text. Generic text like "click here" or "read more" is not accessible.">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">WCAG_2_4_4_LINK_GENERIC</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-warning">
|
||
<span class="dot"></span>
|
||
Warning
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Links must have descriptive text. Generic text like "click here" or "read more" is not accessible.</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-13" role="tab" aria-selected="true" aria-controls="panel-orig-13">Mevcut Kod</button>
|
||
<button class="tab-btn" id="tab-ai-13" role="tab" aria-selected="false" aria-controls="panel-ai-13" tabindex="-1">Yapay Zeka Önerisi</button>
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-13" role="tabpanel" aria-labelledby="tab-orig-13">
|
||
<pre><code><a href="/devam-oku">devamını oku</a></code></pre>
|
||
</div>
|
||
|
||
<div class="tab-panel" id="panel-ai-13" role="tabpanel" aria-labelledby="tab-ai-13" hidden>
|
||
<div class="ai-recommendation">
|
||
|
||
<div class="code-wrapper">
|
||
<pre><code id="code-ai-13">Change the link text to describe its target, or add an aria-label attribute to provide context.</code></pre>
|
||
<button class="copy-btn" aria-label="WCAG_2_4_4_LINK_GENERIC kuralı için önerilen düzeltmeyi kopyala" onclick="copyCode('#code-ai-13', this)">
|
||
<svg class="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
|
||
<span>Kopyala</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="warning" data-standard="A" data-rule="WCAG_3_3_2_PLACEHOLDER_LABEL" data-message="Inputs should not use placeholder text as their only label.">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">WCAG_3_3_2_PLACEHOLDER_LABEL</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-warning">
|
||
<span class="dot"></span>
|
||
Warning
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Inputs should not use placeholder text as their only label.</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-14" role="tab" aria-selected="true" aria-controls="panel-orig-14">Mevcut Kod</button>
|
||
<button class="tab-btn" id="tab-ai-14" role="tab" aria-selected="false" aria-controls="panel-ai-14" tabindex="-1">Yapay Zeka Önerisi</button>
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-14" role="tabpanel" aria-labelledby="tab-orig-14">
|
||
<pre><code><input type="text" placeholder="Search website..."></code></pre>
|
||
</div>
|
||
|
||
<div class="tab-panel" id="panel-ai-14" role="tabpanel" aria-labelledby="tab-ai-14" hidden>
|
||
<div class="ai-recommendation">
|
||
|
||
<div class="code-wrapper">
|
||
<pre><code id="code-ai-14">Add a <label for="..."> or an aria-label attribute. Placeholder text is not a reliable label replacement.</code></pre>
|
||
<button class="copy-btn" aria-label="WCAG_3_3_2_PLACEHOLDER_LABEL kuralı için önerilen düzeltmeyi kopyala" onclick="copyCode('#code-ai-14', this)">
|
||
<svg class="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
|
||
<span>Kopyala</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="warning" data-standard="A" data-rule="WCAG_1_1_1_ALT_REDUNDANT" data-message="Image alt text should not contain redundant words like "image" or "photo".">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">WCAG_1_1_1_ALT_REDUNDANT</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-warning">
|
||
<span class="dot"></span>
|
||
Warning
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Image alt text should not contain redundant words like "image" or "photo".</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-15" role="tab" aria-selected="true" aria-controls="panel-orig-15">Mevcut Kod</button>
|
||
<button class="tab-btn" id="tab-ai-15" role="tab" aria-selected="false" aria-controls="panel-ai-15" tabindex="-1">Yapay Zeka Önerisi</button>
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-15" role="tabpanel" aria-labelledby="tab-orig-15">
|
||
<pre><code><img src="logo2.png" alt="logo of our company"></code></pre>
|
||
</div>
|
||
|
||
<div class="tab-panel" id="panel-ai-15" role="tabpanel" aria-labelledby="tab-ai-15" hidden>
|
||
<div class="ai-recommendation">
|
||
|
||
<div class="code-wrapper">
|
||
<pre><code id="code-ai-15">Remove redundant phrases like "logo of" from the alt text. Screen readers already announce elements as images.</code></pre>
|
||
<button class="copy-btn" aria-label="WCAG_1_1_1_ALT_REDUNDANT kuralı için önerilen düzeltmeyi kopyala" onclick="copyCode('#code-ai-15', this)">
|
||
<svg class="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
|
||
<span>Kopyala</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="warning" data-standard="A" data-rule="WCAG_1_1_1_ALT_REDUNDANT" data-message="Image alt text should not contain redundant words like "image" or "photo".">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">WCAG_1_1_1_ALT_REDUNDANT</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-warning">
|
||
<span class="dot"></span>
|
||
Warning
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Image alt text should not contain redundant words like "image" or "photo".</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-16" role="tab" aria-selected="true" aria-controls="panel-orig-16">Mevcut Kod</button>
|
||
<button class="tab-btn" id="tab-ai-16" role="tab" aria-selected="false" aria-controls="panel-ai-16" tabindex="-1">Yapay Zeka Önerisi</button>
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-16" role="tabpanel" aria-labelledby="tab-orig-16">
|
||
<pre><code><img src="profile.jpg" alt="profile photo of john doe"></code></pre>
|
||
</div>
|
||
|
||
<div class="tab-panel" id="panel-ai-16" role="tabpanel" aria-labelledby="tab-ai-16" hidden>
|
||
<div class="ai-recommendation">
|
||
|
||
<div class="code-wrapper">
|
||
<pre><code id="code-ai-16">Remove redundant phrases like "photo of" from the alt text. Screen readers already announce elements as images.</code></pre>
|
||
<button class="copy-btn" aria-label="WCAG_1_1_1_ALT_REDUNDANT kuralı için önerilen düzeltmeyi kopyala" onclick="copyCode('#code-ai-16', this)">
|
||
<svg class="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
|
||
<span>Kopyala</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="error" data-standard="A" data-rule="WCAG_4_1_2_ARIA_HIDDEN_FOCUS" data-message="Focusable elements must not be hidden with aria-hidden="true".">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">WCAG_4_1_2_ARIA_HIDDEN_FOCUS</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-error">
|
||
<span class="dot"></span>
|
||
Error
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Focusable elements must not be hidden with aria-hidden="true".</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-17" role="tab" aria-selected="true" aria-controls="panel-orig-17">Mevcut Kod</button>
|
||
<button class="tab-btn" id="tab-ai-17" role="tab" aria-selected="false" aria-controls="panel-ai-17" tabindex="-1">Yapay Zeka Önerisi</button>
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-17" role="tabpanel" aria-labelledby="tab-orig-17">
|
||
<pre><code><div aria-hidden="true">
|
||
<button type="button">Hidden click</button>
|
||
</div></code></pre>
|
||
</div>
|
||
|
||
<div class="tab-panel" id="panel-ai-17" role="tabpanel" aria-labelledby="tab-ai-17" hidden>
|
||
<div class="ai-recommendation">
|
||
|
||
<div class="code-wrapper">
|
||
<pre><code id="code-ai-17">Remove aria-hidden="true" from the container or make its focusable elements non-focusable (e.g. by setting tabindex="-1" or disabled).</code></pre>
|
||
<button class="copy-btn" aria-label="WCAG_4_1_2_ARIA_HIDDEN_FOCUS kuralı için önerilen düzeltmeyi kopyala" onclick="copyCode('#code-ai-17', this)">
|
||
<svg class="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
|
||
<span>Kopyala</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="error" data-standard="A" data-rule="WCAG_4_1_2_ARIA_HIDDEN_FOCUS" data-message="Focusable elements must not be hidden with aria-hidden="true".">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">WCAG_4_1_2_ARIA_HIDDEN_FOCUS</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-error">
|
||
<span class="dot"></span>
|
||
Error
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Focusable elements must not be hidden with aria-hidden="true".</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-18" role="tab" aria-selected="true" aria-controls="panel-orig-18">Mevcut Kod</button>
|
||
<button class="tab-btn" id="tab-ai-18" role="tab" aria-selected="false" aria-controls="panel-ai-18" tabindex="-1">Yapay Zeka Önerisi</button>
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-18" role="tabpanel" aria-labelledby="tab-orig-18">
|
||
<pre><code><a href="#" aria-hidden="true">Hidden link</a></code></pre>
|
||
</div>
|
||
|
||
<div class="tab-panel" id="panel-ai-18" role="tabpanel" aria-labelledby="tab-ai-18" hidden>
|
||
<div class="ai-recommendation">
|
||
|
||
<div class="code-wrapper">
|
||
<pre><code id="code-ai-18">Remove aria-hidden="true" from the container or make its focusable elements non-focusable (e.g. by setting tabindex="-1" or disabled).</code></pre>
|
||
<button class="copy-btn" aria-label="WCAG_4_1_2_ARIA_HIDDEN_FOCUS kuralı için önerilen düzeltmeyi kopyala" onclick="copyCode('#code-ai-18', this)">
|
||
<svg class="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
|
||
<span>Kopyala</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="violation-card" data-severity="error" data-standard="A" data-rule="WCAG_2_4_2_PAGE_TITLE" data-message="Web pages must have a non-empty title element in the head.">
|
||
<div class="card-header">
|
||
<div class="badge-row">
|
||
<span class="badge rule-badge">WCAG_2_4_2_PAGE_TITLE</span>
|
||
<span class="badge standard-badge">WCAG A</span>
|
||
<span class="badge severity-badge severity-error">
|
||
<span class="dot"></span>
|
||
Error
|
||
</span>
|
||
</div>
|
||
<div class="location-row">
|
||
<svg class="icon-location" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>
|
||
<span>N/A</span>
|
||
</div>
|
||
</div>
|
||
<div class="card-body">
|
||
<h3 class="violation-msg">Web pages must have a non-empty title element in the head.</h3>
|
||
|
||
<div class="code-viewer">
|
||
<div class="tab-list" role="tablist">
|
||
<button class="tab-btn active" id="tab-orig-19" role="tab" aria-selected="true" aria-controls="panel-orig-19">Mevcut Kod</button>
|
||
<button class="tab-btn" id="tab-ai-19" role="tab" aria-selected="false" aria-controls="panel-ai-19" tabindex="-1">Yapay Zeka Önerisi</button>
|
||
</div>
|
||
<div class="tab-panel active" id="panel-orig-19" role="tabpanel" aria-labelledby="tab-orig-19">
|
||
<pre><code><head>
|
||
<title></title>
|
||
</head></code></pre>
|
||
</div>
|
||
|
||
<div class="tab-panel" id="panel-ai-19" role="tabpanel" aria-labelledby="tab-ai-19" hidden>
|
||
<div class="ai-recommendation">
|
||
|
||
<div class="code-wrapper">
|
||
<pre><code id="code-ai-19">Provide descriptive text inside the <title> element.</code></pre>
|
||
<button class="copy-btn" aria-label="WCAG_2_4_2_PAGE_TITLE kuralı için önerilen düzeltmeyi kopyala" onclick="copyCode('#code-ai-19', this)">
|
||
<svg class="icon-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
|
||
<span>Kopyala</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Empty State -->
|
||
<div class="glass-panel empty-state" id="empty-state" style="display: none;">
|
||
<svg class="empty-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||
<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path>
|
||
<polyline points="22 4 12 14.01 9 11.01"></polyline>
|
||
</svg>
|
||
<h3>Harika Haber!</h3>
|
||
<p>Belirtilen filtre kriterlerine uygun hiçbir erişilebilirlik hatası bulunamadı.</p>
|
||
</div>
|
||
</main>
|
||
</div>
|
||
|
||
<!-- JavaScript Logic -->
|
||
<script>
|
||
// Apply Circular Score Gauge Color and Animation
|
||
const score = 0;
|
||
const gauge = document.getElementById('score-gauge');
|
||
const scoreText = document.getElementById('score-val');
|
||
|
||
// Gauge stroke animation
|
||
const totalLength = 251.2;
|
||
const offset = totalLength - (totalLength * score) / 100;
|
||
|
||
// Add proper grade class to gauge stroke
|
||
if (score >= 90) {
|
||
gauge.classList.add('grade-a');
|
||
} else if (score >= 70) {
|
||
gauge.classList.add('grade-b');
|
||
} else {
|
||
gauge.classList.add('grade-c');
|
||
}
|
||
|
||
// Trigger smooth stroke draw animation
|
||
setTimeout(() => {
|
||
gauge.style.strokeDashoffset = offset;
|
||
}, 100);
|
||
|
||
// Animate counter text
|
||
let count = 0;
|
||
const interval = setInterval(() => {
|
||
if (count >= score) {
|
||
scoreText.textContent = score;
|
||
clearInterval(interval);
|
||
} else {
|
||
count += Math.ceil((score - count) / 10) || 1;
|
||
scoreText.textContent = count > score ? score : count;
|
||
}
|
||
}, 30);
|
||
|
||
// Tab Switching Logic with Accessibility Compliance
|
||
document.querySelectorAll('.tab-list').forEach(tablist => {
|
||
tablist.addEventListener('click', e => {
|
||
const clickedTab = e.target.closest('[role="tab"]');
|
||
if (!clickedTab) return;
|
||
|
||
const tablistContainer = clickedTab.parentNode;
|
||
const container = tablistContainer.parentNode;
|
||
|
||
// Deactivate all tabs in this list
|
||
tablistContainer.querySelectorAll('[role="tab"]').forEach(tab => {
|
||
tab.classList.remove('active');
|
||
tab.setAttribute('aria-selected', 'false');
|
||
tab.setAttribute('tabindex', '-1');
|
||
});
|
||
|
||
// Activate clicked tab
|
||
clickedTab.classList.add('active');
|
||
clickedTab.setAttribute('aria-selected', 'true');
|
||
clickedTab.removeAttribute('tabindex');
|
||
|
||
// Toggle panels
|
||
const targetPanelId = clickedTab.getAttribute('aria-controls');
|
||
container.querySelectorAll('[role="tabpanel"]').forEach(panel => {
|
||
if (panel.id === targetPanelId) {
|
||
panel.removeAttribute('hidden');
|
||
panel.classList.add('active');
|
||
} else {
|
||
panel.setAttribute('hidden', '');
|
||
panel.classList.remove('active');
|
||
}
|
||
});
|
||
});
|
||
|
||
// Handle Keyboard Navigation for Tabs
|
||
tablist.addEventListener('keydown', e => {
|
||
const tabs = Array.from(tablist.querySelectorAll('[role="tab"]'));
|
||
const index = tabs.indexOf(document.activeElement);
|
||
if (index < 0) return;
|
||
|
||
let nextIndex = index;
|
||
if (e.key === 'ArrowRight') {
|
||
nextIndex = (index + 1) % tabs.length;
|
||
} else if (e.key === 'ArrowLeft') {
|
||
nextIndex = (index - 1 + tabs.length) % tabs.length;
|
||
} else {
|
||
return;
|
||
}
|
||
|
||
e.preventDefault();
|
||
tabs[nextIndex].focus();
|
||
tabs[nextIndex].click();
|
||
});
|
||
});
|
||
|
||
// Theme Toggle Logic
|
||
function toggleTheme() {
|
||
const body = document.body;
|
||
const themeBtn = document.getElementById('theme-toggle');
|
||
const isDark = !body.classList.contains('light-theme');
|
||
|
||
if (isDark) {
|
||
body.classList.add('light-theme');
|
||
themeBtn.innerHTML = `
|
||
<!-- Sun icon -->
|
||
<svg class="icon-theme" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||
<circle cx="12" cy="12" r="5"></circle>
|
||
<line x1="12" y1="1" x2="12" y2="3"></line>
|
||
<line x1="12" y1="21" x2="12" y2="23"></line>
|
||
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
|
||
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
|
||
<line x1="1" y1="12" x2="3" y2="12"></line>
|
||
<line x1="21" y1="12" x2="23" y2="12"></line>
|
||
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
|
||
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
|
||
</svg>
|
||
`;
|
||
localStorage.setItem('theme', 'light');
|
||
announce('Açık tema aktifleştirildi.');
|
||
} else {
|
||
body.classList.remove('light-theme');
|
||
themeBtn.innerHTML = `
|
||
<!-- Moon icon -->
|
||
<svg class="icon-theme" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
|
||
</svg>
|
||
`;
|
||
localStorage.setItem('theme', 'dark');
|
||
announce('Karanlık tema aktifleştirildi.');
|
||
}
|
||
}
|
||
|
||
// Load persisted theme
|
||
if (localStorage.getItem('theme') === 'light') {
|
||
document.body.classList.add('light-theme');
|
||
document.getElementById('theme-toggle').innerHTML = `
|
||
<!-- Sun icon -->
|
||
<svg class="icon-theme" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||
<circle cx="12" cy="12" r="5"></circle>
|
||
<line x1="12" y1="1" x2="12" y2="3"></line>
|
||
<line x1="12" y1="21" x2="12" y2="23"></line>
|
||
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
|
||
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
|
||
<line x1="1" y1="12" x2="3" y2="12"></line>
|
||
<line x1="21" y1="12" x2="23" y2="12"></line>
|
||
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
|
||
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
|
||
</svg>
|
||
`;
|
||
}
|
||
|
||
// Accessibility Screen Reader Announcer function
|
||
function announce(message) {
|
||
const announcer = document.getElementById('a11y-announcer');
|
||
if (announcer) {
|
||
announcer.textContent = '';
|
||
setTimeout(() => {
|
||
announcer.textContent = message;
|
||
}, 50);
|
||
}
|
||
}
|
||
|
||
// Copy Suggestion to Clipboard with voice/aria announcer
|
||
function copyCode(selector, btn) {
|
||
const codeEl = document.querySelector(selector);
|
||
if (!codeEl) return;
|
||
|
||
navigator.clipboard.writeText(codeEl.textContent).then(() => {
|
||
const originalText = btn.innerHTML;
|
||
btn.innerHTML = `
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="#10b981" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" style="width:14px;height:14px;"><polyline points="20 6 9 17 4 12"></polyline></svg>
|
||
<span style="color:#10b981;">Kopyalandı!</span>
|
||
`;
|
||
btn.setAttribute('aria-label', 'Kod kopyalandı.');
|
||
announce('Önerilen kod düzeltmesi panoya kopyalandı.');
|
||
|
||
setTimeout(() => {
|
||
btn.innerHTML = originalText;
|
||
btn.removeAttribute('aria-label');
|
||
}, 2000);
|
||
}).catch(err => {
|
||
console.error('Kopyalama hatası:', err);
|
||
});
|
||
}
|
||
|
||
// Filtering Logic
|
||
let activeSeverity = 'all';
|
||
|
||
function setSeverityFilter(severity) {
|
||
activeSeverity = severity;
|
||
|
||
// Update button states with aria-pressed
|
||
document.querySelectorAll('.filter-btn').forEach(btn => {
|
||
const isSelected = btn.id === 'btn-' + severity;
|
||
btn.classList.toggle('active', isSelected);
|
||
btn.setAttribute('aria-pressed', isSelected ? 'true' : 'false');
|
||
});
|
||
|
||
applyFilters();
|
||
}
|
||
|
||
function applyFilters() {
|
||
const searchVal = document.getElementById('search-box').value.toLowerCase();
|
||
const cards = document.querySelectorAll('.violation-card');
|
||
let visibleCount = 0;
|
||
|
||
cards.forEach(card => {
|
||
const severity = card.getAttribute('data-severity');
|
||
const rule = card.getAttribute('data-rule').toLowerCase();
|
||
const message = card.getAttribute('data-message').toLowerCase();
|
||
|
||
const matchesSeverity = (activeSeverity === 'all' || severity === activeSeverity);
|
||
const matchesSearch = (!searchVal || rule.includes(searchVal) || message.includes(searchVal));
|
||
|
||
if (matchesSeverity && matchesSearch) {
|
||
card.style.display = '';
|
||
visibleCount++;
|
||
} else {
|
||
card.style.display = 'none';
|
||
}
|
||
});
|
||
|
||
// Show or hide empty state
|
||
const emptyState = document.getElementById('empty-state');
|
||
if (visibleCount === 0) {
|
||
emptyState.style.display = 'flex';
|
||
announce('Filtre sonucu eşleşen hiçbir hata bulunamadı.');
|
||
} else {
|
||
emptyState.style.display = 'none';
|
||
announce(visibleCount + ' adet erişilebilirlik hatası gösteriliyor.');
|
||
}
|
||
}
|
||
</script>
|
||
</body>
|
||
</html> |