forked from max1220/window_manager_library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
widgets.html
206 lines (196 loc) · 6.67 KB
/
widgets.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="window_inside_common.css">
<link rel="stylesheet" id="window_style" href="window_inside_flat.css">
<title>Widgets test</title>
</head>
<body>
<div class="window-content p8">
<h3>Widgets test</h3>
<p>This is a test page for the CSS/HTML widgets.</p>
<fieldset class="fieldset p8 m4">
<legend>Theme</legend>
<button class="btn" onclick="window_style.href='window_inside_flat.css'">flat</button>
<button class="btn" onclick="window_style.href='window_inside_glass.css'">glass</button>
<button class="btn" onclick="window_style.href='window_inside_xp.css'">xp</button>
<button class="btn" onclick="window_style.href='window_inside_98.css'">98</button>
<button class="btn" onclick="window_style.href='window_inside_basic.css'">basic</button>
</fieldset>
<h4>Buttons</h4>
<div class="container p8 m4">
<button class="btn">Normal</button>
<button class="btn" disabled>Disabled</button>
<button class="btn hover">Hover</button>
<button class="btn active">Active</button>
<button class="btn focus">Focus</button>
</div>
<h4>Tabs</h4>
<div class="tabs m4">
<menu role="tablist" aria-label="Example tabs">
<button role="tab" aria-controls="tab-panel-foo" aria-selected="true" id="tab-btn-foo" data-tabgroup="example-tabs" onclick="tab_onclick(event)">Foo</button>
<button role="tab" aria-controls="tab-panel-bar" id="tab-btn-bar" data-tabgroup="example-tabs" onclick="tab_onclick(event)">Bar</button>
<button role="tab" aria-controls="tab-panel-buzz" id="tab-btn-buzz" data-tabgroup="example-tabs" onclick="tab_onclick(event)">Buzz</button>
</menu>
<div role="tabpanel" aria-labelledby="tab-btn-foo" id="tab-panel-foo" data-tabgroup="example-tabs">
<h2>Foo panel</h2>
</div>
<div role="tabpanel" aria-labelledby="tab-btn-bar" id="tab-panel-bar" data-tabgroup="example-tabs" hidden>
<h2>Bar panel</h2>
</div>
<div role="tabpanel" aria-labelledby="tab-btn-buzz" id="tab-panel-buzz" data-tabgroup="example-tabs" hidden>
<h2>Buzz panel</h2>
</div>
</div>
<h4>Inputs</h4>
<div class="container p8 m4 form">
<label class="field-row p3">
<span>Text:</span>
<input type="text">
</label>
<label class="field-row p3">
<span>Checkbox:</span>
<input type="checkbox">
</label>
<label class="field-row p3">
<span>Radio:</span>
<input type="radio" name="radio">
</label>
<label class="field-row p3">
<span></span>
<input type="radio" name="radio">
</label>
<label class="field-row p3">
<span>Select:</span>
<select>
<option>Foo</option>
<option>Bar</option>
<option>Buzz</option>
</select>
</label>
<label class="field-row p3">
<span>textarea</span>
<textarea></textarea>
</label>
</div>
<h4>Menu Bar/Tool Bar/Status Bar</h4>
<div class="container p8 m4">
<div class="menu-bar">
<div class="menu-row">
<div class="menu-container">
<div class="menu-category">File</div>
<div class="menu-sub hidden">
<a class="menu-item">Open file...</a>
<div class="menu-spacer"></div>
<a class="menu-item">New file...</a>
<a class="menu-item">Save file...</a>
<div class="menu-spacer"></div>
<a class="menu-item">Exit</a>
</div>
</div>
<div class="menu-container">
<div class="menu-category">Edit</div>
<div class="menu-sub hidden">
<a class="menu-item">Copy</a>
<a class="menu-item">Cut</a>
<a class="menu-item">Paste</a>
<div class="menu-spacer"></div>
<a class="menu-item">Rename...</a>
<a class="menu-item">Delete...</a>
</div>
</div>
<div class="menu-container">
<div class="menu-category">View</div>
<div class="menu-sub hidden">
<label class="menu-item">
<input type="checkbox" checked>Human-readable
</label>
<label class="menu-item">
<input type="checkbox">Show hidden files
</label>
<div class="menu-spacer"></div>
<label class="menu-item">
<input type="checkbox" checked>Select
</label>
<label class="menu-item">
<input type="checkbox" checked>Mode
</label>
<label class="menu-item">
<input type="checkbox" checked>User
</label>
<label class="menu-item">
<input type="checkbox" checked>Group
</label>
<label class="menu-item">
<input type="checkbox" checked>Size
</label>
</div>
</div>
<div class="menu-container">
<div class="menu-category">Help</div>
<div class="menu-sub hidden">
<a class="menu-item">About...</a>
<a class="menu-item">Extra long test Lorem Ipsum Laboris sit eu do minim velit.</a>
</div>
</div>
</div>
<div class="menu-row">
<button class="btn toolbar-btn">Copy</button>
<button class="btn toolbar-btn">Cut</button>
<button class="btn toolbar-btn">Paste</button>
<div class="toolbar-spacer"></div>
<button class="btn toolbar-btn">Refresh</button>
</div>
<div class="menu-row">
<label for="address">Address</label>
<div class="form">
<input class="toolbar-input" type="text" id="address" style="flex-grow: 1">
</div>
<button class="toolbar-btn btn">Go</button>
</div>
</div>
<h2>Window content</h2>
<p>
<br>
<br>
<br>
</p>
<div class="status-bar">
<div>Left</div>
<div>Status bar</div>
<div>Right</div>
</div>
</div>
<h4>Progress bar</h4>
<div class="container p8 m4">
0% <progress class="progress" value="00" max="100"></progress>
50% <progress class="progress" value="50" max="100"></progress>
100% <progress class="progress" value="100" max="100"></progress>
</div>
<h4>Containers</h4>
<div class="border p8 m4">border</div>
<div class="container p8 m4">container</div>
<fieldset class="fieldset p8 m4">
<legend>Legend</legend>
fieldset
</fieldset>
<h4>Splitview</h4>
<div class="container m4">
<div class="splitview">
<div>
<h2>Left</h2>
<p>Laboris quis aliqua aliquip occaecat esse amet pariatur deserunt deserunt laboris nisi laboris laborum est.</p>
</div>
<div>
<h2>Right</h2>
<p>Sint et exercitation officia minim duis ullamco id qui.</p>
</div>
</div>
</div>
</div>
<!-- Tabs are the only thing that requires JS -->
<script src="tab_onclick.js"></script>
</body>
</html>