-
Notifications
You must be signed in to change notification settings - Fork 0
/
floating-window.html
73 lines (73 loc) · 2.06 KB
/
floating-window.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
<!DOCTYPE html>
<html>
<head>
<title>Hackathon Floating Window</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
background-color: #1e1e1e;
color: #f1f1f1;
margin: 0;
padding: 5px;
text-align: left;
position: relative;
}
.draggable {
-webkit-app-region: drag;
cursor: move;
}
#analysis {
padding: 10px;
margin-top: 5px;
font-size: 12px;
}
.window-message {
padding-top: 2px;
}
#closeBtn {
position: absolute;
top: 2px;
right: 5px;
border: none;
background: transparent;
font-size: 20px;
cursor: pointer;
padding: 5px;
margin: -5px;
border: 5px solid transparent;
color: #f1f1f1;
}
.hidden {
display: none !important;
}
#save-skill {
all: unset; /* Resets all the browser default styles */
border: 2px solid white; /* White border with 2px thickness */
border-radius: 50px; /* Fully rounded edges */
padding: 4px 8px; /* Padding inside the button */
background-color: transparent; /* Transparent background */
cursor: pointer; /* Changes cursor to pointer on hover */
color: white; /* Text color */
font-size: 12px;
margin-left: 10px;
transition: background-color 0.3s; /* Smooth transition for background color */
}
#save-skill:hover {
background-color: #ffffff44; /* background hover */
}
</style>
</head>
<body>
<div class="draggable">
<button id="closeBtn" title="Close">×</button>
<!-- Close button -->
<div id="analysis" class="draggable"></div>
</div>
<button id="save-skill" class="hidden" onclick="handleSaveSkill()">
Save Skill
</button>
<script src="floating-window.mjs"></script>
</body>
</html>