Permalink
Browse files

Add a:visited style to link-interaction (#819)

* bump version

* Color visited links
  • Loading branch information...
1 parent 9154f07 commit a5f3d82dc74669f378a1e7c63e10bd9804ce4ca2 @danvk committed on GitHub Dec 29, 2016
Showing with 10 additions and 3 deletions.
  1. +4 −1 gallery/link-interaction.js
  2. +1 −1 package.json
  3. +5 −1 tests/link-interaction.html
@@ -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 = [ ];
View
@@ -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",
@@ -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>

0 comments on commit a5f3d82

Please sign in to comment.