t00-multiuser/server/views/base/footer.ejs

65 lines
1.6 KiB
Text
Raw Normal View History

2024-04-22 16:05:42 +01:00
</div>
<% 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>
<% } %>
<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);
});
})();
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>