Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
87 lines (87 loc) · 2.04 KB
/
Copy pathindex.html
File metadata and controls
87 lines (87 loc) · 2.04 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
<html>
<head>
<meta charset="UTF-8" />
<script src="webui.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
height: 100%;
width: 100%;
overflow: hidden;
background: transparent;
}
#titlebar {
height: 40px;
background: linear-gradient(to right, #2c3e50, #34495e);
color: white;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 15px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
-webkit-app-region: drag;
font-family: Arial, sans-serif;
}
#title {
font-size: 16px;
font-weight: bold;
}
#buttons {
-webkit-app-region: no-drag;
}
.button {
display: inline-block;
width: 24px;
height: 24px;
margin-left: 8px;
border-radius: 50%;
text-align: center;
line-height: 24px;
cursor: pointer;
transition: all 0.2s;
}
.minimize {
background: #f1c40f;
}
.maximize {
background: #2ecc71;
}
.close {
background: #e74c3c;
}
.button:hover {
filter: brightness(120%);
}
#content {
height: calc(100% - 40px);
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
}
#message {
color: white;
font-size: 32px;
font-family: Arial, sans-serif;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
</style>
</head>
<body>
<div id="titlebar">
<span id="title">WebUI Frameless Window</span>
<div id="buttons">
<span class="button minimize" onclick="minimize()">–</span>
<span class="button close" onclick="close_win()">✕</span>
</div>
</div>
<div id="content">
<span id="message">This is a WebUI frameless example</span>
</div>
</body>
</html>