about summary refs log tree commit diff stats
path: root/html/ccc/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/ccc/index.html')
-rw-r--r--html/ccc/index.html9
1 files changed, 4 insertions, 5 deletions
diff --git a/html/ccc/index.html b/html/ccc/index.html
index ef39110..9e805e3 100644
--- a/html/ccc/index.html
+++ b/html/ccc/index.html
@@ -194,13 +194,12 @@
             if (!accessible) classes.push("failing");
             if (level === "AAA" && showGlow) classes.push("glowing-border");
             
-            // Parse colors but use original format for display
-            const parsed1 = parseColor(color1);
-            const parsed2 = parseColor(color2);
+            const foreground = parseColor(color1);
+            const background = parseColor(color2);
             
             return `
-                <div class="${classes.join(' ')}" style="background: ${parsed1.originalFormat}; color: ${parsed2.originalFormat};">
-                    ${parsed1.originalFormat} on ${parsed2.originalFormat}<br>
+                <div class="${classes.join(' ')}" style="background: ${background.originalFormat}; color: ${foreground.originalFormat};">
+                    ${foreground.originalFormat} on ${background.originalFormat}<br>
                     Ratio: ${contrast} ${accessible ? "✅" : "❌"}<br>
                     WCAG: ${level}
                 </div>