-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
143 lines (140 loc) · 7.12 KB
/
index.html
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/jpg" href="https://bhachauk.github.io/images/blogo.jpg">
<title>Patch Antenna design and simulation tool online</title>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="https://bhachauk.github.io/patch-antenna-util/assets/js/patchutil.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="https://bhachauk.github.io/patch-antenna-util/assets/sass/style.css"/>
<meta property="og:image" content="https://raw.githubusercontent.com/bhachauk/patch-antenna-util/master/resource/anim.gif"/>
<script async defer src="https://buttons.github.io/buttons.js"></script>
<!-- <script src="assets/js/patchutil.js" type="text/javascript"></script>-->
<!-- <link rel="stylesheet" type="text/css" href="assets/sass/style.css"/>-->
</head>
<body>
<div id="totalContainer">
<div align="center" class="header">
<p align="right" style="padding-right: 20px;color: yellow;">alpha</p>
<form>
<div class="inputblock" align="left">
<h3> Patch Antenna
<br>Online
<br>Calculator and Simulator</h3>
</div>
<div class="inputblock">
<h4>Frequency in GHz</h4>
<input type="number" id="f_in" min="1" max="10" step="0.001" placeholder="GHz">
</div>
<div class="inputblock">
<h4>Dilectric Constant</h4>
<input type="number" id="d_in" min="0.1" max="10" step="0.001" placeholder="Ratio">
</div>
<div class="inputblock">
<h4>Cavity Height in mm</h4>
<input type="number" id="c_in" min="0.5" max="5" step="0.001" placeholder="millimeter">
</div>
<!-- <div class="inputblock"><h4>Feed type</h4>-->
<!-- <select id="feed_type" name="feed_type" style="width: 100%;">-->
<!-- <option value="normal">normal</option>-->
<!-- <option value="inset">inset</option>-->
<!-- </select>-->
<!-- </div>-->
</form>
</div>
<div class="btnContainer">
<i class="material-icons" onclick="putChart()" style="margin-right: 10%;">play_arrow</i>
<i id="param_btn" onclick="toggle(event,'param')" class="cmnBtn material-icons">subject</i>
<i onclick="toggle(event,'plot')" class="cmnBtn material-icons">3d_rotation</i>
<i id="info_btn" onclick="toggle(event,'info'); showInfo();" class="cmnBtn material-icons" style="margin-left: 10%;">info</i>
<i onclick="toggle(event,'settings');beReady()" class="cmnBtn material-icons">settings</i>
<i onclick="toggle(event,'help')" class="currentBtn material-icons">help</i>
</div>
<div id="resultContainer">
<div id="help" class="show" style="display: inline-block;">
<div style="align:center;display:block;">
<table>
<tr>
<td><i class="material-icons normal">play_arrow</i></td>
<td><p style="color: coral;"> Simulate</p></td>
<td style="padding-left: 80px;">
<a href="https://bhachauk.github.io/about"><i class="material-icons normal">person</i></a>
</td>
<td><p>Author Info</p></td>
</tr>
<tr>
<td><i class="material-icons normal">subject</i></td>
<td><p style="color: coral;">Parameters calculated</p></td>
<td style="padding-left: 80px;">
<a href="http://github.com/bhachauk/patch-antenna-util"><i class="material-icons normal">code</i></a>
</td>
<td><p>Source code</p></td>
</tr>
<tr>
<td><i class="material-icons normal">3d_rotation</i></td>
<td><p style="color: coral;"> 3d view of the patch</p></td>
</tr>
<tr>
<td><i class="material-icons normal">info</i></td>
<td><p style="color: coral;">Specification Information</p></td>
</tr>
<tr>
<td><i class="material-icons normal">settings</i></td>
<td><p style="color: coral;">Settings</p></td>
</tr>
</table></div>
</div>
<div style="margin-left: 25%;">
<div id="param" class="show">
<pre id="pw"></pre>
<pre id="pl"></pre>
<pre id="fw"></pre>
<pre id="fl"></pre>
<pre id="effl"></pre>
<pre id="ele_l"></pre>
<pre id="effd"></pre>
<pre id="gl"></pre>
<pre id="gw"></pre>
<br>
<br>
<div id="gerb_1" style="padding-left: 200px; display: none" onclick="download()">
<i class="material-icons normal">save_alt</i>
<p style="color: white">save as gerber</p>
</div>
</div>
</div>
<div id="plot" class="show">
<div id="plotd" class="plot" align="center"></div>
<div id="gerb_2" style="text-align: center; display: none" onclick="download()">
<i class="material-icons normal">save_alt</i>
<p style="color: white">save as gerber</p>
</div>
</div>
<div id="settings" class="show" align="center">
<div class="settings">
<select id="selectConductor"></select>
<div class="inputblock">
<h4>Conductor Thickness in mm</h4>
<input type="number" id="conductor_thickness_in" min="0.020" max="0.10" step="0.001" placeholder="0.03535 mm">
</div>
</div>
<div class="saveBtn">
<i class="material-icons" onclick="save()">save</i>
<p>save changes</p>
</div>
</div>
<div id="info" class="show">
<pre style="display: block;">Specification Information</pre>
<pre id="current_conductor"></pre>
<pre id="conductor_thickness"></pre>
</div>
</div>
</div>
<div class="git-buttons">
<a class="github-button" href="https://github.com/bhachauk/patch-antenna-util/fork" data-icon="octicon-repo-forked" data-size="large" data-show-count="true" aria-label="Fork bhachauk/patch-antenna-util on GitHub">Fork</a>
<a class="github-button" href="https://github.com/bhachauk/patch-antenna-util" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star bhachauk/patch-antenna-util on GitHub">Star</a>
<a class="github-button" href="https://github.com/bhachauk/patch-antenna-util/archive/master.zip" data-icon="octicon-cloud-download" data-size="large" aria-label="Download {bhachauk/patch-antenna-util on GitHub">Download</a>
</div>
</body>
</html>