Skip to content

Commit c4ffe67

Browse files
committed
implementation of maximizing analysis window feature
1 parent 38ea2d9 commit c4ffe67

File tree

7 files changed

+330
-97
lines changed

7 files changed

+330
-97
lines changed

index.html

Lines changed: 121 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,34 @@ <h2>Help</h2>
203203
<section class="element-analysis-window hidden">
204204
<div class="element-analysis-window-header">
205205
<p>Transfer function</p>
206-
<button class="element-analysis-window-close-button">&times;</button>
206+
<div>
207+
<button
208+
class="element-analysis-window-header-button hidden"
209+
id="element-analysis-window-minimize-button"
210+
>
211+
<i class="bi-arrows-collapse"></i>
212+
</button>
213+
<button
214+
class="element-analysis-window-header-button hidden"
215+
id="element-analysis-window-maximize-button"
216+
>
217+
<i class="bi-arrows-expand"></i>
218+
</button>
219+
<button
220+
class="element-analysis-window-header-button"
221+
id="element-analysis-window-close-button"
222+
>
223+
&times;
224+
</button>
225+
</div>
207226
</div>
208227
<div class="element-analysis-window-contents">
209228
<form class="modify-element-value">
210229
<div>
211230
<p>Numer:</p>
212231
<input
213232
type="text"
214-
placeholder="4"
233+
placeholder="[1, 2, 3]"
215234
id="update-element-numerator-input"
216235
class="update-element-value-input"
217236
/>
@@ -229,56 +248,111 @@ <h2>Help</h2>
229248
Update value
230249
</button>
231250
</form>
232-
<div class="element-analysis-window-tab-buttons tab-buttons-container">
233-
<button
234-
class="tab-button"
235-
id="element-analysis-window-tab-button-1"
236-
data-tab-id="1"
237-
>
238-
Bode plot
239-
</button>
240-
<button
241-
class="tab-button"
242-
id="element-analysis-window-tab-button-2"
243-
data-tab-id="2"
244-
>
245-
Nyquist plot
246-
</button>
247-
<!-- <button
248-
class="tab-button"
249-
id="element-analysis-window-tab-button-3"
250-
data-tab-id="3"
251+
<section class="single-plot-container">
252+
<div
253+
class="element-analysis-window-tab-buttons tab-buttons-container"
251254
>
252-
Time response
253-
</button> -->
254-
</div>
255-
<div class="element-analysis-window-tab-contents tab-contents">
256-
<section
257-
class="tab-content"
258-
id="element-analysis-window-tab-content-1"
259-
>
260-
<div class="plot-container" id="plot-container-tab-1"></div>
261-
<div id="characteristic-numbers-container">
262-
<p id="filter-type"></p>
263-
<div id="characteristic-numbers-grid"></div>
255+
<button
256+
class="tab-button"
257+
id="element-analysis-window-tab-button-1"
258+
data-tab-id="1"
259+
>
260+
Bode plot
261+
</button>
262+
<button
263+
class="tab-button"
264+
id="element-analysis-window-tab-button-2"
265+
data-tab-id="2"
266+
>
267+
Nyquist plot
268+
</button>
269+
<!-- <button
270+
class="tab-button"
271+
id="element-analysis-window-tab-button-3"
272+
data-tab-id="3"
273+
>
274+
Time response
275+
</button> -->
276+
</div>
277+
<div class="element-analysis-window-tab-contents tab-contents">
278+
<section
279+
class="tab-content"
280+
id="element-analysis-window-tab-content-1"
281+
>
282+
<div class="plot-container" id="plot-container-tab-1"></div>
283+
<div id="characteristic-numbers-container">
284+
<p id="filter-type"></p>
285+
<div id="characteristic-numbers-grid"></div>
286+
</div>
287+
</section>
288+
<section
289+
class="tab-content"
290+
id="element-analysis-window-tab-content-2"
291+
>
292+
<div class="plot-container" id="plot-container-tab-2"></div>
293+
<div id="zeros-and-poles-container">
294+
<div id="zeros-and-poles-grid"></div>
295+
</div>
296+
</section>
297+
<!-- <section
298+
class="tab-content"
299+
id="element-analysis-window-tab-content-3"
300+
>
301+
<div class="plot-container" id="plot-container-tab-3"></div>
302+
</section> -->
303+
</div>
304+
</section>
305+
<section class="multiple-plots-container hidden">
306+
<section>
307+
<div
308+
class="element-analysis-window-tab-buttons tab-buttons-container"
309+
>
310+
<button
311+
class="tab-button"
312+
id="element-analysis-window-tab-button-1"
313+
data-tab-id="1"
314+
>
315+
Bode plot
316+
</button>
317+
</div>
318+
<div class="element-analysis-window-tab-contents tab-contents">
319+
<section
320+
class="tab-content"
321+
id="element-analysis-window-tab-content-1"
322+
>
323+
<div class="plot-container" id="plot-container-tab-1"></div>
324+
<div id="characteristic-numbers-container">
325+
<p id="filter-type"></p>
326+
<div id="characteristic-numbers-grid"></div>
327+
</div>
328+
</section>
264329
</div>
265330
</section>
266-
<section
267-
class="tab-content"
268-
id="element-analysis-window-tab-content-2"
269-
>
270-
<div class="plot-container" id="plot-container-tab-2"></div>
271-
<div id="zeros-and-poles-container">
272-
<div id="zeros-and-poles-grid"></div>
331+
<section>
332+
<div
333+
class="element-analysis-window-tab-buttons tab-buttons-container"
334+
>
335+
<button
336+
class="tab-button"
337+
id="element-analysis-window-tab-button-2"
338+
data-tab-id="2"
339+
>
340+
Nyquist plot
341+
</button>
342+
</div>
343+
<div class="element-analysis-window-tab-contents tab-contents">
344+
<section
345+
class="tab-content"
346+
id="element-analysis-window-tab-content-2"
347+
>
348+
<div class="plot-container" id="plot-container-tab-2"></div>
349+
<div id="zeros-and-poles-container">
350+
<div id="zeros-and-poles-grid"></div>
351+
</div>
352+
</section>
273353
</div>
274354
</section>
275-
<!-- <section
276-
class="tab-content"
277-
id="element-analysis-window-tab-content-3"
278-
>
279-
<div class="plot-container" id="plot-container-tab-3"></div>
280-
</section> -->
281-
</div>
355+
</section>
282356
</div>
283357
</section>
284358
<section class="popup-window hidden">

0 commit comments

Comments
 (0)