mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-12-20 04:22:22 -05:00
8f2a027812
* initial msa work * rm debug code * Update package.json * lint, seperate constants, create missing msa cache * support multiple profiles * lint * use shared constants * fix path issues * fix token variable * fix caching msa profile data * switch clientId to one from microsoft * store caches in .minecraft, fallback to dev code auth when user+pass fails * update electron demo, fix error handling, add docs * fix caching dir * fix lint * move to class scope, token fixes * retry on fail, terminology fixes * fix promise bug * cleanup
27 lines
833 B
HTML
27 lines
833 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>client electron</title>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div>
|
|
<p>Host: <input type="text" id="host" value="localhost" /></p>
|
|
<p>Port: <input type="text" id="port" value="25565"/></p>
|
|
<p>Account Type: <select onchange="onAuthTypeChange()" id='type'><option>Microsoft</option><option>Mojang</option></select></p>
|
|
<p>Username: <input type="text" id="username" value="electron_client" /></p>
|
|
<p>Password: <input type="text" id="password" value="" /></p>
|
|
</div>
|
|
|
|
<button id="connect" type="button">Connect</button><br />
|
|
<div id="content">Not connected</div> <br />
|
|
Message: <input type="text" id="chat" /><br />
|
|
<button id="send" type="button">Send</button><br />
|
|
|
|
<script src="./index.js"></script>
|
|
</body>
|
|
|
|
</html>
|