Skip to content

Commit

Permalink
Move CSS into a style directory.
Browse files Browse the repository at this point in the history
Just for folder aesthetics.
  • Loading branch information
apcj committed Jun 10, 2013
1 parent a382fff commit 31a6d12
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions example.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<script type="text/javascript" src="lib/d3.v3.js" charset="UTF-8"></script>
<script type="text/javascript" src="graph-diagram.js"></script>
<link rel="stylesheet" href="graph-diagram.css" type="text/css">
<link rel="stylesheet" href="graph-style-bootstrap.css" type="text/css">
<link rel="stylesheet" href="style/graph-diagram.css" type="text/css">
<link rel="stylesheet" href="style/graph-style-bootstrap.css" type="text/css">
<link rel="stylesheet" href="lib/bootstrap.css" type="text/css">
<title>Graph Diagram Example</title>
</head>
Expand Down Expand Up @@ -51,7 +51,7 @@ <h1>Graph Diagram Example</h1>
<p>The approach uses SVG replacement. You write HTML, and the library replaces it with SVG. The important steps are:</p>

<ul>
<li>Reference the <a href="graph-diagram.js">javascript</a> and its corresponding <a href="graph-editor.css">CSS</a>.</li>
<li>Reference the <a href="graph-diagram.js">javascript</a> and its corresponding <a href="style/graph-editor.css">CSS</a>.</li>
<li>Write a <code>&lt;figure&gt;</code> tag, containing HTML markup that defines the graph.</li>
<li>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)</li>
Expand Down
2 changes: 1 addition & 1 deletion geometry/arcs.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<script type="text/javascript" src="../lib/d3.v3.js" charset="UTF-8"></script>
<script type="text/javascript" src="../graph-diagram.js"></script>
<link rel="stylesheet" href="../graph-diagram.css" type="text/css">
<link rel="stylesheet" href="../style/graph-diagram.css" type="text/css">
<link rel="stylesheet" href="../lib/bootstrap.css" type="text/css">
<title>Graph Diagram Example</title>
</head>
Expand Down
2 changes: 1 addition & 1 deletion geometry/arrows.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<script type="text/javascript" src="../lib/d3.v3.js" charset="UTF-8"></script>
<script type="text/javascript" src="../graph-diagram.js"></script>
<link rel="stylesheet" href="../graph-diagram.css" type="text/css">
<link rel="stylesheet" href="../style/graph-diagram.css" type="text/css">
<link rel="stylesheet" href="../lib/bootstrap.css" type="text/css">
<title>Graph Diagram Example</title>
</head>
Expand Down
2 changes: 1 addition & 1 deletion geometry/bezier.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<script type="text/javascript" src="../lib/d3.v3.js" charset="UTF-8"></script>
<script type="text/javascript" src="../graph-diagram.js"></script>
<link rel="stylesheet" href="../graph-diagram.css" type="text/css">
<link rel="stylesheet" href="../style/graph-diagram.css" type="text/css">
<link rel="stylesheet" href="../lib/bootstrap.css" type="text/css">
<title>Graph Diagram Example</title>
</head>
Expand Down
2 changes: 1 addition & 1 deletion geometry/curves.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<script type="text/javascript" src="../lib/d3.v3.js" charset="UTF-8"></script>
<script type="text/javascript" src="../graph-diagram.js"></script>
<link rel="stylesheet" href="../graph-diagram.css" type="text/css">
<link rel="stylesheet" href="../style/graph-diagram.css" type="text/css">
<link rel="stylesheet" href="../lib/bootstrap.css" type="text/css">
<title>Graph Diagram Example</title>
</head>
Expand Down
2 changes: 1 addition & 1 deletion geometry/line-circle.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<script type="text/javascript" src="../lib/d3.v3.js" charset="UTF-8"></script>
<script type="text/javascript" src="../graph-diagram.js"></script>
<link rel="stylesheet" href="../graph-diagram.css" type="text/css">
<link rel="stylesheet" href="../style/graph-diagram.css" type="text/css">
<link rel="stylesheet" href="../lib/bootstrap.css" type="text/css">
<title>Graph Diagram Example</title>
</head>
Expand Down
2 changes: 1 addition & 1 deletion graph-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<script type="text/javascript" src="lib/d3.v3.js" charset="UTF-8"></script>
<script type="text/javascript" src="graph-diagram.js"></script>
<link rel="stylesheet" href="lib/bootstrap.css" type="text/css">
<link rel="stylesheet" href="graph-diagram.css" type="text/css">
<link rel="stylesheet" class="graph-style" href="graph-style-chunky.css" type="text/css">
<link rel="stylesheet" href="graph-editor.css" type="text/css">
<link rel="stylesheet" href="style/graph-diagram.css" type="text/css">
<link rel="stylesheet" class="graph-style" href="style/graph-style-chunky.css" type="text/css">
<link rel="stylesheet" href="style/graph-editor.css" type="text/css">
<script type="text/javascript" src="graph-editor.js"></script>
<title>Arrow Tool</title>
</head>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<script type="text/javascript" src="lib/d3.v3.js" charset="UTF-8"></script>
<script type="text/javascript" src="graph-diagram.js"></script>
<link rel="stylesheet" href="graph-diagram.css" type="text/css">
<link rel="stylesheet" href="graph-style-chunky.css" type="text/css">
<link rel="stylesheet" href="style/graph-diagram.css" type="text/css">
<link rel="stylesheet" href="style/graph-style-chunky.css" type="text/css">
<link rel="stylesheet" href="lib/bootstrap.css" type="text/css">
<link rel="stylesheet" href="test/html_tests/test_from_html.css" type="text/css">
<title>Graph Diagram Tests</title>
Expand Down

0 comments on commit 31a6d12

Please sign in to comment.