commit:ef568497bf23c8fe38e378f20c175ea6accc7b2f
author:Chip Black
committer:Chip Black
date:Mon Feb 7 01:49:14 2011 -0800
parents:db45aeacb003f72b853abbccd6f722770732438b
Change ref links to be gray instead of the normal color
diff --git a/www/css/blerg.css b/www/css/blerg.css
line changes: +4/-0
index 66aeeb8..9de598b
--- a/www/css/blerg.css
+++ b/www/css/blerg.css
@@ -12,6 +12,10 @@ body {
 	background-color: white;
 }
 
+a.ref {
+	color: #404040;
+}
+
 a > img {
 	border: 0;
 }

diff --git a/www/js/blerg.js b/www/js/blerg.js
line changes: +2/-2
index 1f413ad..22fbded
--- a/www/js/blerg.js
+++ b/www/js/blerg.js
@@ -264,8 +264,8 @@ function mangleRecord(record, template) {
     record.data = record.data.replace(/(\s)\*([^*]+)\*(\s)/g, '$1<i>$2</i>$3');
 
     // Turn refs and tags into links
-    record.data = record.data.replace(/(\s|^)#([A-Za-z0-9_-]+)/g, '$1<a href="#tag/$2">#$2</a>');
-    record.data = record.data.replace(/(\s|^)@([A-Za-z0-9_-]+)/g, '$1<a href="#$2">@$2</a>');
+    record.data = record.data.replace(/(\s|^)#([A-Za-z0-9_-]+)/g, '$1<a href="#tag/$2" class="ref">#$2</a>');
+    record.data = record.data.replace(/(\s|^)@([A-Za-z0-9_-]+)/g, '$1<a href="#$2" class="ref">@$2</a>');
 
     // Turn newlines into linebreaks and paragraphs
     record.data = record.data.replace(/\r?\n\r?\n/g, "<p>").replace(/\r?\n/g, "<br>");