This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
128 lines (94 loc) · 3.74 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
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
<!DOCTYPE html>
<html>
<head>
<title>ReCape Client</title>
<link rel="stylesheet" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
</head>
<body>
<div id="client-view">
<div id="preview">
</div>
<div id="side">
<h1>ReCape Client</h1>
<h2 id="logged-in-as">...</h2>
<div id="client-section">
<h2>Cape</h2>
<button onclick="do_with_loader(setNoCape)">Don't Use a Cape</button>
<button onclick="do_with_loader(setCloaksPlusCape)">Use Cloaks+ Cape</button>
<button onclick="document.getElementById('new-cape').click()">Upload New</button>
<input type="file" id="new-cape" accept=".png" onchange="do_with_loader(uploadCape);" hidden>
</div>
<div id="client-section">
<h2>Models</h2>
<div id="model-list">
<h5>Your model list is loading...</h5>
</div>
<button onclick="do_with_loader(update_models)">Save</button>
<h3>Add a Model</h3>
<h4>Model file (.cfg)</h4>
<input type="file" id="new-model-cfg" name="model" accept=".cfg">
<h4>Texture file (.png)</h4>
<input type="file" id="new-model-texture" name="texture" accept=".png">
<br>
<button onclick="do_with_loader(uploadModel);">Upload</button>
</div>
<div id="client-section" style="flex-grow: 1;">
<h1>About</h1>
<h2>ReCape Web Client v1.2.1</h2>
<h2>Need help? <a href="https://discord.gg/HNUhexqusj">Join the Discord!</a></h2>
<h2>Download the installer, find source code, and more on <a href="https://recape.boyne.dev">our website!</a></h2>
<h2>Thank you for choosing ReCape.</h2>
</div>
</div>
</div>
<div id="loading-popup">
<h1>ReCape</h1>
<h2>Now Loading...</h2>
</div>
<div id="ms-popup">
<input id="ms-username" placeholder="Username">
<input id="ms-email" placeholder="Email">
<input id="ms-password" placeholder="Password">
<button onclick="loginMS()">login</button>
</div>
<div id="login-popup">
<img id="head-logo" src="assets/logo-plain.png">
<h2>Login to ReCape</h2>
<p>We need to make sure you own your Minecraft account. You can use a login code from our authentication Minecraft server.</p>
<h5>Disclaimer: By logging into ReCape, you agree to the use of cookies to keep you logged in. We do not use cookies for tracking, advertisements, or any purpose other than to serve the function of the client.</h5>
<div class="login-method">
<h4>Step 1</h4>
<h3>Username</h3>
<input id="username" placeholder="YourMinecraftUsername">
</div>
<div class="login-method">
<h4>Step 2</h4>
<h3>Authentication code</h3>
<p>Open Minecraft and connect to <code>recape-server.boyne.dev</code>, then type the code you get here</p>
<h4>Login Code</h4>
<input id="login-code" placeholder="000000000" onkeypress='only_number(event)'>
</div>
<div class="login-method">
<h4>Step 3</h4>
<h3>Go!</h3>
<button onclick="do_with_loader(loginCode)">Login To ReCape!</button>
</div>
<button id="login-ms" onclick="show_ms_login()">feeling cute? login with Microsoft</button>
</div>
</div>
<div id="notifications">
</div>
<script src=" https://cdn.jsdelivr.net/npm/[email protected]/dist/js.cookie.min.js "></script>
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dohjs@latest/dist/doh.min.js"></script>
<script src="three.js"></script>
<script src="orbit.js"></script>
<script src="cfgrender.js"></script>
<script src="script.js"></script>
</body>
</html>