-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path@me.html
More file actions
87 lines (84 loc) · 2.67 KB
/
Copy path@me.html
File metadata and controls
87 lines (84 loc) · 2.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Relist - My profile</title>
<link rel="stylesheet" href="./static/css/style.css" />
<link rel="stylesheet" href="./static/css/info.css" />
<link rel="shortcut icon" href="./static/images/relist.svg" />
</head>
<body>
<relist-pf>
<relist-pf-main>
<div class="header">
<div class="banner">
<img alt="Bot Banner" />
<div class="pfp">
<img alt="Bot Profile Image" />
</div>
</div>
<div class="name">
<span></span>
<div data-tooltip="Copy user ID">
<img src="./static/icons/copy.svg" alt="Copy" />
</div>
</div>
</div>
<p class="bio"></p>
</relist-pf-main>
<relist-pf-info>
<div class="details">
<div class="title">
<img src="./static/icons/info.svg" alt="Details" />
<p>Details</p>
</div>
<div class="content"></div>
</div>
<div class="details">
<div class="title">
<img src="./static/icons/people.svg" alt="Details" />
<p>Edit bot</p>
</div>
<div class="content" style="display: flex; gap: 1rem">
<input type="text" class="s1 bot-id" placeholder="Bot ID" />
<button class="s1" style="min-width: 5rem" onclick="botEdit()">
Edit
</button>
</div>
</div>
</relist-pf-info>
</relist-pf>
<relist-imports>
<script src="./scripts/windrag.js"></script>
<script src="./scripts/api.js"></script>
<script src="./scripts/main.js"></script>
<script src="./scripts/pages/user.js"></script>
<script>
getSessionInfo().then((data) => {
if (data == null) {
return window.location.replace(
`${
window.location.origin.includes("github")
? "https://revoltbots.github.io/ReList"
: window.location.origin
}/login`
);
}
fillUserData(data.id);
});
function botEdit() {
const v = document.querySelector(".bot-id").value;
if (v.replaceAll(" ", "") == "") return;
window.location.replace(
`${
window.location.origin.includes("github")
? "https://revoltbots.github.io/ReList"
: window.location.origin
}/edit-bot.html?id=${v}`
);
}
</script>
</relist-imports>
</body>
</html>