Add a:visited style to link-interaction (#819)
authorDan Vanderkam <danvdk@gmail.com>
Thu, 29 Dec 2016 01:30:02 +0000 (20:30 -0500)
committerGitHub <noreply@github.com>
Thu, 29 Dec 2016 01:30:02 +0000 (20:30 -0500)
* bump version

* Color visited links

gallery/link-interaction.js
package.json
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 ededf3f..5eb7b24 100644 (file)
@@ -1,6 +1,6 @@
 {
   "name": "dygraphs",
-  "version": "2.0.0-rc2",
+  "version": "2.0.0-rc3",
   "description": "dygraphs is a fast, flexible open source JavaScript charting library.",
   "main": "index.es5",
   "module": "index",
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>