summaryrefslogtreecommitdiff
path: root/gnucapjs/testplot.html
blob: fad5d047fb0ff208b20891ccd742336943d86285 (plain)
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
<!DOCTYPE html>
<html>
  <head>
  <title></title>
  <meta content="">
  <style>
  </style>
  <script type="text/javascript">
    var webtronics={
//     spicenetlist: ".title rectifier\n"+
// 		  "vs 0 1 ac 1 sin(0 1 60hz)\n"+
// 		  "d1 1 2 1n4148\n"+
// 		  "r1 2 0 100k\n"+
// 		  "d1 3 1 1n4148\n"+
// 		  "r1 3 0 100k\n"+
// 		  ".model 1n4148   d(is=5.84n n=1.94 rs=.7017 ikf=44.17m xti=3 eg=1.11 cjo=.95p m=.55 vj=.75 fc=.5 isr=11.07n nr=2.088 bv=100 ibv=100u  tt=11.07n)\n"+
// 		 ".print tran v(2) v(1) v(3)\n"+
// 		  ".tran 1ms 100ms\n"+
// 		  "*.plot tran v(2)\n"+
// 		  ".end\n",
/*
	spicenetlist:".title rectifier\n"+
		    "v1 1 0 sin(0 12 60hz)\n"+
		    "r1 1 0 10k\n"+
		    ".print tran v(1)\n"+
		    ".tran 1ms 100ms\n"+
		    ".end\n",
*/

	spicenetlist:"",


		    }
  function run(){
    webtronics.spicenetlist=document.getElementById("spicetext").value;
    document.getElementById("gnucapiframe").src="gnucap.html";
  }
  
  </script>
  
</head>
<body  onload="document.getElementById('gnucapiframe').src=''" >
<textarea id="spicetext" cols=60 rows=30 >
</textarea>
<input type="button" value="simulate" onclick="run()" >
<iframe id="gnucapiframe" width=340 height=260  src="about:blank" >
</iframe>
</body>
</html>