Skip to content

Commit

Permalink
Use layout
Browse files Browse the repository at this point in the history
  • Loading branch information
pikesley committed Oct 8, 2016
1 parent cfd229d commit 0cbc915
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions views/colours/d3.erb
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>D3 Clock</title>
<script src="//cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script>
<link href="d3clock.css" rel="stylesheet">
</head>
<body>
</body>
</html>
<h2>colours</h2>

<div id='clock'></div>

<script>
var showD3Clock = function() {
Expand All @@ -24,8 +16,7 @@ var showD3Clock = function() {
var outerRadius = 128
var sw = 20 // stroke width

var svg = d3.select("body").append("svg")
.attr("class", "clock")
var svg = d3.select("#clock").append("svg")
.attr("width", w)
.attr("height", h)

Expand Down

0 comments on commit 0cbc915

Please sign in to comment.