Color visited links fix-340
authorDan Vanderkam <danvk@sidewalklabs.com>
Thu, 29 Dec 2016 01:23:36 +0000 (20:23 -0500)
committerDan Vanderkam <danvk@sidewalklabs.com>
Thu, 29 Dec 2016 01:23:36 +0000 (20:23 -0500)
gallery/link-interaction.js
tests/link-interaction.html

index 68177a3..f95a342 100644 (file)
@@ -5,6 +5,8 @@ Gallery.register(
     name: 'Link Interaction',
     setup: function(parent) {
       parent.innerHTML = [
+          "<div class='link-interaction'>",
+          "<style>.link-interaction a:visited { color: blue; }</style>",
           "<div id='div_g'></div>",
           "<b>Zoom:</b>",
           "<a href='#' id='hour'>hour</a> ",
@@ -14,7 +16,8 @@ Gallery.register(
           "<a href='#' id='full'>full</a> ",
           "<b>Pan:</b> ",
           "<a href='#' id='left'>left</a> ",
-          "<a href='#' id='right'>right</a> "].join("\n");
+          "<a href='#' id='right'>right</a> ",
+          "</div>"].join("\n");
     },
     run: function() {
       var r = [ ];
index d2192fc..3a61efc 100644 (file)
@@ -4,7 +4,11 @@
     <link rel="stylesheet" href="../dist/dygraph.css">
     <title>noise</title>
     <script type="text/javascript" src="../dist/dygraph.js"></script>
-
+    <style>
+      a, a:visited {
+        color: blue;
+      }
+    </style>
   </head>
   <body>
     <div id="div_g"></div>