Commits

dgc committed 987caba

downloads: highlight preferred options with <em>

  • Participants
  • Parent commits fb3ce83

Comments (0)

Files changed (2)

static/css/styles.css

 .latest thead td, .latest thead th { background: #00B5F1; color: #fff; font-weight: bold; }
 thead td, thead th { background: #999; color: #fff; font-weight: bold; }
 tbody td { border-bottom: 1px solid #ccc; }
+tbody td em { font-style: normal; font-weight: bolder; }
 
 /*
  * Quotes

static/js/download.js

             return (b < a) - (a < b);
         });
 
+        var desc;
         for (i in downloads) {
             var dl = downloads[i];
-            document.write('<tr>\n<td>' + dl.desc + '</td>' +
+            var ua = navigator.userAgent;
+            if (dl.matches(ua))
+                desc = '<em>' + dl.desc + '</em>';
+            else
+                desc = dl.desc;
+            document.write('<tr>\n<td>' + desc + '</td>' +
                            '<td></td>' +
                            '<td><a href="' + dl.url + '">download</a></td>' +
                            '</tr>');