Sha256: 3a6f6423c5ddddffab498d83112e6c5e963fef5f9fb184f9b6ac78b8ff4eb36f

Contents?: true

Size: 448 Bytes

Versions: 4

Compression:

Stored size: 448 Bytes

Contents

<!DOCTYPE html>
<meta charset="utf-8">
<title>HTML Mouse Test</title>
<body>
<script src="../../d3.js"></script>
<script>

var body = d3.select("body");

var div = body.append("div")
    .style("width", "1000px")
    .style("height", "500px")
    .style("border", "solid black 1px")
    .style("cursor", "crosshair");

var span = body.append("span");

d3.select(window).on("mousemove", function() {
  span.text(d3.mouse(div[0][0]));
});

</script>

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
stripchart-0.0.3 lib/stripchart/public/components/d3/test/event/mouse-test.html
stripmem-0.0.3 lib/stripmem/public/components/d3/test/event/mouse-test.html
stripmem-0.0.2 lib/stripmem/public/components/d3/test/event/mouse-test.html
stripmem-0.0.1 lib/stripmem/public/components/d3/test/event/mouse-test.html