2020-10-24 18:46:27 +00:00
|
|
|
{% extends 'pageWrapper.html' %}
|
2020-08-02 20:11:52 +00:00
|
|
|
{% import "macros.html" as macros %}
|
2020-06-20 18:03:06 +00:00
|
|
|
{% block head %}
|
2020-07-27 03:04:49 +00:00
|
|
|
<title>Multiworld {{ room.id|suuid }}</title>
|
2020-12-01 02:15:47 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="{{ static_autoversion("styles/hostRoom.css") }}"/>
|
2020-06-20 18:03:06 +00:00
|
|
|
{% endblock %}
|
2020-07-19 03:01:35 +00:00
|
|
|
|
2020-06-20 18:03:06 +00:00
|
|
|
{% block body %}
|
2020-12-01 02:15:47 +00:00
|
|
|
{% include 'cloudHeader.html' %}
|
2020-07-19 03:01:35 +00:00
|
|
|
<div id="host-room">
|
|
|
|
{% if room.owner == session["_id"] %}
|
2020-12-01 02:15:47 +00:00
|
|
|
Room created from <a href="{{ url_for("viewSeed", seed=room.seed.id) }}">Seed #{{ room.seed.id|suuid }}</a>
|
2020-07-27 03:04:49 +00:00
|
|
|
<br>
|
2020-07-19 03:01:35 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if room.tracker %}
|
2020-12-01 02:15:47 +00:00
|
|
|
This room has a <a href="{{ url_for("getTracker", tracker=room.tracker) }}">Multiworld Tracker</a> enabled.
|
2020-07-27 03:04:49 +00:00
|
|
|
<br>
|
2020-07-19 03:01:35 +00:00
|
|
|
{% endif %}
|
2020-07-27 03:04:49 +00:00
|
|
|
This room will be closed after {{ room.timeout//60//60 }} hours of inactivity. Should you wish to continue
|
|
|
|
later,
|
2020-07-19 03:01:35 +00:00
|
|
|
you can simply refresh this page and the server will be started again.<br>
|
2020-08-02 20:11:52 +00:00
|
|
|
{% if room.last_port %}
|
|
|
|
You can connect to this room by using '/connect berserkermulti.world:{{ room.last_port }}'
|
|
|
|
in the <a href="https://github.com/Berserker66/MultiWorld-Utilities/releases">client</a>.<br>{% endif %}
|
|
|
|
{{ macros.list_patches_room(room.seed.patches, room) }}
|
2020-07-19 03:01:35 +00:00
|
|
|
{% if room.owner == session["_id"] %}
|
|
|
|
<form method=post>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="cmd"></label>
|
|
|
|
<input class="form-control" type="text" id="cmd" name="cmd"
|
|
|
|
placeholder="Server Command. /help to list them, list gets appended to log.">
|
|
|
|
</div>
|
|
|
|
</form>
|
2020-08-02 20:11:52 +00:00
|
|
|
|
|
|
|
Log:
|
2020-07-19 03:01:35 +00:00
|
|
|
<div id="logger"></div>
|
|
|
|
<script>
|
|
|
|
let xmlhttp = new XMLHttpRequest();
|
|
|
|
let url = '{{ url_for('display_log', room = room.id) }}';
|
2020-06-20 18:03:06 +00:00
|
|
|
|
2020-07-19 03:01:35 +00:00
|
|
|
xmlhttp.onreadystatechange = function () {
|
2020-08-02 20:11:52 +00:00
|
|
|
if (this.readyState === 4 && this.status === 200) {
|
2020-07-19 03:01:35 +00:00
|
|
|
document.getElementById("logger").innerText = this.responseText;
|
|
|
|
}
|
|
|
|
};
|
2020-06-20 18:03:06 +00:00
|
|
|
|
2020-07-19 03:01:35 +00:00
|
|
|
function request_new() {
|
|
|
|
xmlhttp.open("GET", url, true);
|
|
|
|
xmlhttp.send();
|
|
|
|
}
|
2020-06-20 18:03:06 +00:00
|
|
|
|
2020-07-19 03:01:35 +00:00
|
|
|
window.setTimeout(request_new, 1000);
|
2020-07-21 21:15:19 +00:00
|
|
|
window.setInterval(request_new, 10000);
|
2020-07-19 03:01:35 +00:00
|
|
|
</script>
|
2020-08-02 20:11:52 +00:00
|
|
|
{% endif %}
|
2020-07-19 03:01:35 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|