4
<title>Hello, world!</title>
5
<script type="text/javascript" src="../../d3.v2.js"></script>
8
Your lucky numbers are:<br>
14
<script type="text/javascript">
24
.attr("text-anchor", "middle")
25
.attr("fill", "white")
26
.attr("stroke", "black")
27
.attr("stroke-width", 1.5)
28
.style("font", "36pt Comic Sans MS")
29
.style("text-shadow", "3px 3px 3px rgba(0,0,0,.4)")
30
.text(function() { return ~~(Math.random() * 100); });
32
function transform() {
34
.text(function() { return ~~(Math.random() * 100); });
37
window.addEventListener("keypress", transform, false);