118 lines
6.9 KiB
HTML
118 lines
6.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" translate="no">
|
|
<script>
|
|
if (location.protocol === "https:") location.replace("http://web.the-bds-maneger.org/?from=https")
|
|
const urlParams = new URLSearchParams(window.location.search);
|
|
if (urlParams.get("from") === "https") alert("Do not use \"https://web.the-bds-maneger.org\" as you will always have an error")
|
|
|
|
</script>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Bds Maneger Web</title>
|
|
<link rel="shortcut icon" href="./assents/image/favicon.ico" />
|
|
<link rel="stylesheet" type="text/css" media="screen" href="assents/css/main.css">
|
|
<link rel="stylesheet" type="text/css" media="screen" href="assents/css/check.css">
|
|
<link rel="stylesheet" type="text/css" media="screen" href="assents/css/complete.css">
|
|
<meta name="description" content="Control your Minecraft server remotely (Requires Bds Manager core or Electron)">
|
|
<meta name="google" content="notranslate">
|
|
</head>
|
|
<div id="test"></div>
|
|
<div class="svg_sucess">
|
|
<svg version="1.1" class="svg_color" fill="currentColor" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 492 492" width="7pt" height="7pt">
|
|
<path fill-rule="evenodd" d="M484.128,104.478l-16.116-16.116c-5.064-5.068-11.816-7.856-19.024-7.856c-7.208,0-13.964,2.788-19.028,7.856 L203.508,314.81L62.024,173.322c-5.064-5.06-11.82-7.852-19.028-7.852c-7.204,0-13.956,2.792-19.024,7.852l-16.12,16.112 C2.784,194.51,0,201.27,0,208.47c0,7.204,2.784,13.96,7.852,19.028l159.744,159.736c0.212,0.3,0.436,0.58,0.696,0.836 l16.12,15.852c5.064,5.048,11.82,7.572,19.084,7.572h0.084c7.212,0,13.968-2.524,19.024-7.572l16.124-15.992 c0.26-0.256,0.48-0.468,0.612-0.684l244.784-244.76C494.624,132.01,494.624,114.966,484.128,104.478z"/>
|
|
</svg>
|
|
<svg version="1.1" class="svg_color" fill="currentColor" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 241.171 241.171" width="7pt" height="7pt">
|
|
<path fill-rule="evenodd" d="M138.138,120.754l99.118-98.576c4.752-4.704,4.752-12.319,0-17.011c-4.74-4.704-12.439-4.704-17.179,0 l-99.033,98.492L21.095,3.699c-4.74-4.752-12.439-4.752-17.179,0c-4.74,4.764-4.74,12.475,0,17.227l99.876,99.888L3.555,220.497 c-4.74,4.704-4.74,12.319,0,17.011c4.74,4.704,12.439,4.704,17.179,0l100.152-99.599l99.551,99.563 c4.74,4.752,12.439,4.752,17.179,0c4.74-4.764,4.74-12.475,0-17.227L138.138,120.754z"/>
|
|
</svg>
|
|
</div>
|
|
<body class="system">
|
|
<div class="Log_div_Title">Bds Maneger Log</div>
|
|
<div class="root">
|
|
<div class="bds_log" id="bds_log"></div>
|
|
</div>
|
|
<div class="root">
|
|
<script>
|
|
function checkCommand(){
|
|
const currentCommand = document.getElementById("command").value;
|
|
if (currentCommand.charAt(0) === "/") document.getElementById("command").value = currentCommand.replace("/", "");
|
|
}
|
|
function clearCommand(){document.getElementById("command").value = ""}
|
|
</script>
|
|
<input class="command_area" placeholder="The command is here, there is no need to include the '/'" oninput="checkCommand();" type="text" id="command" onkeydown="if(event.keyCode === 13) document.getElementById('command_send').click()">
|
|
<input class="command_send" id="command_send" type="submit" onclick="bds_command(); clearCommand()">
|
|
</div>
|
|
<div class="buttons">
|
|
<div class="bds_service" onclick="bds_start()">Start</div> <div class="space"></div>
|
|
<div class="bds_service" onclick="bds_stop()">Stop</div> <div class="space"></div>
|
|
<div class="bds_service" onclick="bds_restart()">Restart</div> <div class="space"></div>
|
|
<div class="bds_service" onclick="settings_display()">Settings and information</div>
|
|
</div>
|
|
<div id="config" class="config">
|
|
<div class="config_conatainer">
|
|
<div class="close" onclick="settings_display()">Exit</div>
|
|
<div class="config_root">
|
|
<!-- -->
|
|
<script>
|
|
function saveAddress(){
|
|
var serverAddr = document.getElementById("bds_addr").value;
|
|
localStorage.setItem("the_addr", serverAddr);
|
|
console.log(`server Addr Save: ${serverAddr}`);
|
|
if (andress !== serverAddr) document.getElementById("ReloadPage").style.display = "block";
|
|
else document.getElementById("ReloadPage").style.display = "none";
|
|
}
|
|
function changeToken(){
|
|
var tokenSS = document.getElementById("bds_token").value;
|
|
localStorage.setItem("the_token", tokenSS);
|
|
console.log(`Token save: ${tokenSS}`);
|
|
if (tokenSS !== token) document.getElementById("ReloadPage").style.display = "block";
|
|
else document.getElementById("ReloadPage").style.display = "none";
|
|
}
|
|
</script>
|
|
<fieldset>
|
|
<span>Bds Maneger Token:</span><input class="bds_aiptoken" type="text" id="bds_token" oninput="changeToken();" onchange="changeToken();">
|
|
<p><a style="display: none;" id="ReloadPage" onclick="location.reload()">Reload Page</a></p>
|
|
<!------------------------------------------------------------------------------------------------------------>
|
|
<div class="config_space">
|
|
<input type="file" accept="application/zip" id="WorldUpload" onchange="UploadWorld(this)">
|
|
</div>
|
|
</fieldset>
|
|
<!-- -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
<script src="./web_main.js"></script>
|
|
<div class="loading" id="loading">
|
|
<div id="wait1">Wait .</div>
|
|
<div id="wait2">Wait ..</div>
|
|
<div id="wait3">Wait ...</div>
|
|
<script>
|
|
function wait1 (){
|
|
document.getElementById("wait1").style.display = "block"
|
|
document.getElementById("wait2").style.display = "none"
|
|
document.getElementById("wait3").style.display = "none"
|
|
}
|
|
function wait2 (){
|
|
document.getElementById("wait1").style.display = "none"
|
|
document.getElementById("wait2").style.display = "block"
|
|
document.getElementById("wait3").style.display = "none"
|
|
}
|
|
function wait3 (){
|
|
document.getElementById("wait1").style.display = "none"
|
|
document.getElementById("wait2").style.display = "none"
|
|
document.getElementById("wait3").style.display = "block"
|
|
}
|
|
setInterval(() => {
|
|
wait1()
|
|
setTimeout(() => {
|
|
wait2()
|
|
setTimeout(() => {
|
|
wait3()
|
|
}, 100);
|
|
}, 100);
|
|
}, 1000);
|
|
</script>
|
|
</div> |