-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstart.html
More file actions
61 lines (56 loc) · 2.04 KB
/
start.html
File metadata and controls
61 lines (56 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>Getting Started</title>
<link rel="shortcut icon" href="favicon.png" >
<script type="text/javascript" src="raphael.js"></script>
<script type="text/javascript" src="linear.js"></script>
<link rel="stylesheet" type="text/css" href="style.css"/>
<link href="prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="prettify.js"></script>
</head>
<body onload="prettyPrint()">
<h1>Getting Started</h1>
<p>To use these tools, add <a href='linear.js'>the script</a> to the head of the html document.</p>
<p>These tools use the JavaScript Library <a href='http://raphaeljs.com/'>Raphaël</a>, so you'll need a copy of that as well.</p>
<pre class="prettyprint">
<script type="text/javascript" src="raphael.js"></script>
<script type="text/javascript" src="linear.js"></script>
</pre>
<p>The commands are javascript functions that may be called from "inline scripts".</p>
<p>For example, inserting:</p>
<pre class="prettyprint">
<script>
dia=diagram([100,30]);
dia.inductor([15,15],[85,15]);
dia.terminal([15,15],[85,15]);
</script>
</pre>
<p>into the document would yield:</p>
<script>
dia=diagram([100,30]);
dia.inductor([15,15],[85,15]);
dia.terminal([15,15],[85,15]);
</script>
<p>Continue to the <a href='ref.html'>Reference</a> to learn how to make more interesting things, or go back to the <a href='./'>index</a> to see examples.</p>
<br/>
<h3>Styling the figures</h3>
<p> The diagrams and plots may be styled using the CSS selectors <code>.diagram</code> and <code>.plot</code>, respectively.
<br/>For example, adding colored backgrounds and rounded corners might look like this:</p>
<pre class="prettyprint">
.diagram{
background-color:#FAFAFA;
border:solid 2px #DDD;
}
.plot{
background-color:#FAFAFF;
border:solid 2px #DDF;
}
.diagram, .plot{
-moz-border-radius:6px;
-webkit-border-radius:6px;
}
</pre>
</body>
</html>