Commit a904e037 authored by Sylvain Schmitz's avatar Sylvain Schmitz

improve interaction with chords

parent 6474626a
......@@ -32,6 +32,7 @@ svg {
}
#chord path.chord {
cursor: pointer;
stroke: #444;
stroke-width: .1pt;
}
......@@ -286,7 +287,13 @@ function matrixgraph(fragments, matrix, maxentries) {
div.append("p")
.html(text);
var list = div.append("ul")
p.examples.forEach(function (d) { list.append("li").text(d); });
p.examples.forEach(function (d) {
list.append("li")
.attr("class","prettyprint")
.append("code")
.attr("class", "language-xpath")
.text(d);
});
}
function mouseovercell(p) {
......@@ -517,7 +524,13 @@ function chordgraph(fragments, matrix, maxentries) {
div.append("p")
.html(text);
var list = div.append("ul")
p.examples.forEach(function (d) { list.append("li").text(d); });
p.examples.forEach(function (d) {
list.append("li")
.attr("class","prettyprint")
.append("code")
.attr("class", "language-xpath")
.text(d);
});
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment