-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinear.html
More file actions
81 lines (75 loc) · 2.5 KB
/
linear.html
File metadata and controls
81 lines (75 loc) · 2.5 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!doctype html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<title>스택/큐/데크 시뮬레이터</title>
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" href="css/layout.css" />
<link rel="stylesheet" href="css/components.css" />
<link rel="stylesheet" href="css/pages/linear.css" />
</head>
<body class="page-linear">
<div class="main-container">
<div class="header-area">
<a href="index.html" class="back-btn">← 뒤로가기</a>
<h1 class="simulator-title">스택/큐/데크 시뮬레이터</h1>
</div>
<div class="simulator-box">
<div class="control-group">
<select
id="linearTypeSelect"
class="control-select type-select"
>
<option value="stack">스택 (Stack)</option>
<option value="queue">큐 (Queue)</option>
<option value="deque">데크 (Deque)</option>
</select>
<button id="linearPeekBtn" class="btn btn-purple">Peek (확인)</button>
<button
id="linearSearchBtn"
class="btn accent-field"
>
검색
</button>
<button id="linearSizeBtn" class="btn btn-teal">크기</button>
<button id="linearClearBtn" class="btn btn-gray">초기화</button>
</div>
<div class="control-group">
<input
type="text"
id="linearInput"
class="control-input value-input"
placeholder="값 입력"
/>
<button id="linearPushBtn" class="btn btn-orange">push</button>
<button
id="dequeAddFrontBtn"
class="btn btn-teal deck-button-hidden"
>
맨 앞 추가
</button>
</div>
<div class="control-group">
<button id="linearPopBtn" class="btn btn-red">pop</button>
<button
id="dequeRemoveBackBtn"
class="btn btn-orange deck-button-hidden"
>
맨 뒤 삭제
</button>
</div>
<div
id="linear-visualizer"
class="visualizer-area linear-visualizer"
></div>
<div class="info-panel">
• 요소 개수:
<span id="linearSizeLabel" class="stat-value">0</span><br />
• Top/Front:
<span id="linearTopLabel" class="stat-value">Empty</span>
</div>
</div>
</div>
<script type="module" src="js/main.js"></script>
</body>
</html>