forked from pithings/clippy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·217 lines (214 loc) · 8.29 KB
/
index.html
File metadata and controls
executable file
·217 lines (214 loc) · 8.29 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
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
205
206
207
208
209
210
211
212
213
214
215
216
217
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<title>📎 Clippy - Windows 98</title>
<meta
name="description"
content="Nostalgic Windows 98-style animated assistant characters for the web"
/>
<meta name="theme-color" content="#008080" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Clippy" />
<link rel="manifest" href="./manifest.json" />
<style>
@import url("./demo/styles.css");
</style>
</head>
<body>
<div class="win98-desktop">
<!-- Desktop icons -->
<div class="desktop-area">
<div class="desktop-icon" tabindex="0">
<svg class="icon-img" viewBox="0 0 32 32">
<rect x="4" y="2" width="24" height="28" fill="#fff" stroke="#000" stroke-width="1" />
<rect x="4" y="2" width="24" height="6" fill="#000080" />
<text x="16" y="7" text-anchor="middle" fill="#fff" font-size="5" font-weight="bold">
README
</text>
<line x1="8" y1="13" x2="24" y2="13" stroke="#000" stroke-width="0.5" />
<line x1="8" y1="16" x2="24" y2="16" stroke="#000" stroke-width="0.5" />
<line x1="8" y1="19" x2="20" y2="19" stroke="#000" stroke-width="0.5" />
<line x1="8" y1="22" x2="22" y2="22" stroke="#000" stroke-width="0.5" />
</svg>
<span class="icon-label">README.txt</span>
</div>
<div class="desktop-icon" tabindex="0">
<svg class="icon-img" viewBox="0 0 32 32">
<rect
x="2"
y="6"
width="28"
height="22"
rx="1"
fill="#c0c000"
stroke="#808000"
stroke-width="1"
/>
<rect
x="2"
y="2"
width="14"
height="6"
rx="1"
fill="#c0c000"
stroke="#808000"
stroke-width="1"
/>
<rect
x="4"
y="10"
width="24"
height="16"
fill="#ffff80"
stroke="#808000"
stroke-width="0.5"
/>
</svg>
<span class="icon-label">My Agents</span>
</div>
<div class="desktop-icon" tabindex="0">
<svg class="icon-img" viewBox="0 0 32 32">
<rect
x="2"
y="4"
width="28"
height="24"
rx="2"
fill="#c0c0c0"
stroke="#808080"
stroke-width="1"
/>
<rect x="4" y="6" width="24" height="16" fill="#008080" />
<circle cx="16" cy="14" r="5" fill="#fff" opacity="0.3" />
<rect x="8" y="24" width="16" height="2" rx="1" fill="#808080" />
</svg>
<span class="icon-label">My Computer</span>
</div>
</div>
<!-- Win98 Window -->
<div class="win98-window">
<div class="win98-titlebar">
<span class="titlebar-text">
<svg width="14" height="14" viewBox="0 0 16 16">
<circle cx="8" cy="8" r="7" fill="#ffcc00" stroke="#806600" stroke-width="1" />
<circle cx="6" cy="6" r="1.5" fill="#000" />
<circle cx="10" cy="6" r="1.5" fill="#000" />
<path d="M5 10 Q8 13 11 10" fill="none" stroke="#000" stroke-width="1" />
</svg>
Clippy.js — Agent Loader
</span>
<div class="titlebar-buttons">
<button class="titlebar-btn">_</button>
<button class="titlebar-btn">□</button>
<button class="titlebar-btn">×</button>
</div>
</div>
<div class="win98-body">
<h2>Welcome to Clippy.js!</h2>
<p>
This is a demo. Click an agent below to try it out.<br />
See <a href="https://github.com/pi0/clippyjs" target="_blank">GitHub</a> for usage and
docs.
</p>
<div class="agent-select-group" id="agent-buttons"></div>
<div class="anim-select-group">
<label for="anim-select">Animation:</label>
<select class="win98-select" id="anim-select" disabled>
<option>—</option>
</select>
</div>
<div class="win98-checkbox">
<input type="checkbox" id="tts-toggle" checked />
<label for="tts-toggle">Enable text-to-speech</label>
</div>
<div class="chat-section" style="margin-top: 10px">
<button class="agent-btn" id="chat-btn" disabled>Start Chat!</button>
<span id="chat-status" style="margin-left: 6px; color: #808080"></span>
</div>
<div id="chat-container" style="display: none; margin-top: 8px">
<div class="chat-messages" id="chat-messages"></div>
<div class="chat-input-group">
<input
type="text"
class="win98-input"
id="chat-input"
placeholder="Type a message..."
autocomplete="off"
/>
<button class="agent-btn" id="chat-send">Send</button>
<button class="agent-btn" id="chat-mic" style="display: none" title="Speech-to-text">
🎤
</button>
</div>
</div>
</div>
<div class="win98-statusbar">
<span class="statusbar-section" id="status-text">Ready</span>
<span class="statusbar-section" style="flex: 0; white-space: nowrap" id="agent-count"
>0 agents</span
>
</div>
</div>
<!-- Taskbar -->
<div class="win98-taskbar">
<button class="start-btn">
<svg class="start-logo" viewBox="0 0 16 16">
<rect x="1" y="1" width="6" height="6" fill="#f00" />
<rect x="9" y="1" width="6" height="6" fill="#0f0" />
<rect x="1" y="9" width="6" height="6" fill="#00f" />
<rect x="9" y="9" width="6" height="6" fill="#ff0" />
</svg>
Start
</button>
<div class="taskbar-tray">
<!-- GitHub tray icon -->
<span
id="gh-tray-icon"
title="GitHub"
style="cursor: default; display: flex; align-items: center"
>
<svg width="14" height="14" viewBox="0 0 16 16" style="image-rendering: pixelated">
<circle cx="8" cy="8" r="7" fill="#000" stroke="#808080" stroke-width="0.5" />
<path
d="M8 2.5C4.7 2.5 2 5.1 2 8.3c0 2.6 1.7 4.7 4 5.5.3.1.4-.1.4-.3v-1c-1.6.4-2-.8-2-.8-.3-.7-.7-.9-.7-.9-.5-.4 0-.4 0-.4.6 0 .9.6.9.6.5.9 1.4.6 1.7.5.1-.4.2-.6.4-.8-1.3-.1-2.7-.6-2.7-2.8 0-.6.2-1.1.6-1.5-.1-.1-.3-.7.1-1.5 0 0 .5-.2 1.5.6.5-.1.9-.2 1.4-.2s1 .1 1.4.2c1.1-.8 1.5-.6 1.5-.6.3.8.1 1.4.1 1.5.4.4.6.9.6 1.5 0 2.2-1.4 2.7-2.7 2.8.2.2.4.5.4 1.1v1.6c0 .2.1.4.4.3 2.3-.8 4-2.9 4-5.5C14 5.1 11.3 2.5 8 2.5z"
fill="#fff"
/>
</svg>
</span>
<!-- Notification balloon -->
<div class="tray-notification" id="gh-notification">
<div class="notif-header">
<svg width="12" height="12" viewBox="0 0 16 16">
<circle cx="8" cy="8" r="7" fill="#0000aa" />
<text
x="8"
y="12"
text-anchor="middle"
fill="#fff"
font-size="11"
font-weight="bold"
>
i
</text>
</svg>
ClippyJS on GitHub
<button class="notif-close" id="notif-close-btn">×</button>
</div>
<div class="notif-body">
View source code, report issues, and contribute on GitHub:<br />
<a href="https://github.com/pi0/clippyjs" target="_blank">github.com/pi0/clippyjs</a>
</div>
</div>
<span id="clock"></span>
</div>
</div>
</div>
<script type="module" src="./demo/demo.ts"></script>
</body>
</html>