forked from Souma-Sumire/ff14-overlay-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (53 loc) · 1.44 KB
/
index.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
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title></title>
</head>
<body>
<div id="app"></div>
<style>
[v-cloak] {
display: none;
}
</style>
<div id="unlocked" class="unlocked" v-cloak><h2>🔓 请调整至合适大小,随后在ACT勾选"锁定悬浮窗"以开始使用。</h2></div>
<script>
document.addEventListener("onOverlayStateUpdate", (e) => {
const unlocked = document.getElementById("unlocked");
if (e.detail.isLocked) unlocked.style.display = "none";
else unlocked.style.display = "flex";
});
</script>
<script type="module" src="/src/main.ts"></script>
<style>
.swal2-container {
overflow: hidden !important;
}
.unlocked {
overflow: hidden;
height: 100vh;
width: 100vw;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(0, 0, 150, 0.2);
display: none;
flex-direction: row;
flex-wrap: nowrap;
align-content: center;
justify-content: center;
align-items: flex-end;
z-index: 20;
color: white;
text-shadow: 1px 1px 2px black;
font-size: 11px;
font-weight: bold;
}
</style>
</body>
</html>