Write a <figure> tag, containing HTML markup that defines the graph.
Later on, include a tiny bit of javascript to call rendering library at the right point of the page lifecycle
(move this to document.ready block if you do that sort of thing)
diff --git a/geometry/arcs.html b/geometry/arcs.html
index d0fc962..81c1e76 100644
--- a/geometry/arcs.html
+++ b/geometry/arcs.html
@@ -3,7 +3,7 @@
-
+
Graph Diagram Example
diff --git a/geometry/arrows.html b/geometry/arrows.html
index b5545f8..f5bac1d 100644
--- a/geometry/arrows.html
+++ b/geometry/arrows.html
@@ -3,7 +3,7 @@
-
+
Graph Diagram Example
diff --git a/geometry/bezier.html b/geometry/bezier.html
index f301ea7..3d66274 100644
--- a/geometry/bezier.html
+++ b/geometry/bezier.html
@@ -3,7 +3,7 @@
-
+
Graph Diagram Example
diff --git a/geometry/curves.html b/geometry/curves.html
index c509f71..4600fab 100644
--- a/geometry/curves.html
+++ b/geometry/curves.html
@@ -3,7 +3,7 @@
-
+
Graph Diagram Example
diff --git a/geometry/line-circle.html b/geometry/line-circle.html
index 40ae2ae..79cd7a8 100644
--- a/geometry/line-circle.html
+++ b/geometry/line-circle.html
@@ -3,7 +3,7 @@
-
+
Graph Diagram Example
diff --git a/graph-editor.js b/graph-editor.js
index 4c78df6..bc4d3fb 100644
--- a/graph-editor.js
+++ b/graph-editor.js
@@ -381,7 +381,7 @@ window.onload = function()
var selectedStyle = d3.selectAll("input[name=styleChoice]" )[0]
.filter(function(input) { return input.checked; })[0].value;
d3.select("link.graph-style")
- .attr("href", selectedStyle);
+ .attr("href", "style/" + selectedStyle);
graphModel = parseMarkup( localStorage.getItem( "graph-diagram-markup" ) );
save(formatMarkup());
diff --git a/index.html b/index.html
index 400b20f..28cbb72 100644
--- a/index.html
+++ b/index.html
@@ -4,9 +4,9 @@
-
-
-
+
+
+
Arrow Tool
diff --git a/graph-diagram.css b/style/graph-diagram.css
similarity index 100%
rename from graph-diagram.css
rename to style/graph-diagram.css
diff --git a/graph-editor.css b/style/graph-editor.css
similarity index 100%
rename from graph-editor.css
rename to style/graph-editor.css
diff --git a/graph-style-bootstrap.css b/style/graph-style-bootstrap.css
similarity index 100%
rename from graph-style-bootstrap.css
rename to style/graph-style-bootstrap.css
diff --git a/graph-style-chunky.css b/style/graph-style-chunky.css
similarity index 100%
rename from graph-style-chunky.css
rename to style/graph-style-chunky.css
diff --git a/tests.html b/tests.html
index 52e0d01..b533ab0 100644
--- a/tests.html
+++ b/tests.html
@@ -3,8 +3,8 @@
-
-
+
+
Graph Diagram Tests