2024-04-22 16:05:42 +01:00
|
|
|
</div>
|
2024-10-13 14:13:33 +01:00
|
|
|
<% if (typeof(apiKey) !== "undefined" && typeof(username) !== "undefined") { %>
|
|
|
|
<style>
|
|
|
|
html, body {
|
|
|
|
cursor: unset!important;
|
|
|
|
}
|
|
|
|
|
|
|
|
html mp_button, html mp_container, html mp_party {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
html mp_cursor mp_container {
|
|
|
|
display: unset!important;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
localStorage["t00mp_username"] = `<%= username %>`;
|
|
|
|
localStorage.mpconnectonload = "true";
|
|
|
|
localStorage.mpshowfirsttime = "false";
|
|
|
|
localStorage.mpapikey = `<%= apiKey %>`;
|
|
|
|
</script>
|
|
|
|
<script src="/api/latestclient?<%= Date.now() %>"></script>
|
|
|
|
<% } else { %>
|
|
|
|
<script>
|
|
|
|
localStorage["t00mp_username"] = "";
|
|
|
|
localStorage.mpconnectonload = "true";
|
|
|
|
localStorage.mpshowfirsttime = "false";
|
|
|
|
localStorage.mpapikey = "";
|
|
|
|
</script>
|
|
|
|
<% } %>
|
2024-04-23 00:58:07 +01:00
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/cookieconsent/3.1.1/cookieconsent.min.js" integrity="sha512-yXXqOFjdjHNH1GND+1EO0jbvvebABpzGKD66djnUfiKlYME5HGMUJHoCaeE4D5PTG2YsSJf6dwqyUUvQvS0vaA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
|
|
<script>
|
2024-09-28 01:31:46 +01:00
|
|
|
(() => {
|
|
|
|
const forms = document.querySelectorAll('.needs-validation')
|
|
|
|
|
|
|
|
Array.from(forms).forEach(form => {
|
|
|
|
form.addEventListener('submit', event => {
|
|
|
|
if (!form.checkValidity()) {
|
|
|
|
event.preventDefault();
|
|
|
|
event.stopPropagation();
|
|
|
|
}
|
|
|
|
|
|
|
|
form.classList.add('was-validated');
|
|
|
|
}, false);
|
|
|
|
});
|
|
|
|
})();
|
|
|
|
|
2024-04-23 00:58:07 +01:00
|
|
|
window.cookieconsent.initialise({
|
|
|
|
"palette": {
|
|
|
|
"popup": {
|
|
|
|
"background": "#0b5ed7",
|
|
|
|
"text": "#fff"
|
|
|
|
},
|
|
|
|
"button": {
|
|
|
|
"background": "#198754",
|
|
|
|
"text": "#fff"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"content": {
|
|
|
|
"message": "This site uses cookies to retain your login, no more, no less."
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
2024-04-22 16:05:42 +01:00
|
|
|
</body>
|
|
|
|
</html>
|