2022-08-26 22:09:02 +03:00
|
|
|
<div class="footer">
|
2022-09-16 23:22:29 +03:00
|
|
|
<% if (user){ %>
|
2022-10-10 00:04:25 +03:00
|
|
|
<a onclick="invert()" class="btn-primary" style="color:white;"><%=(user.theme.color === "default" ? "black" : "default" ) + " theme!" %></a>
|
2022-09-16 23:22:29 +03:00
|
|
|
<script>
|
|
|
|
async function invert() {
|
2022-10-10 00:04:25 +03:00
|
|
|
return alert("disabled!")
|
2022-09-16 23:22:29 +03:00
|
|
|
await fetch('/api/users/<%= user.id %>', {
|
|
|
|
method: 'PATCH',
|
|
|
|
body: JSON.stringify({
|
2022-10-10 00:04:25 +03:00
|
|
|
theme: {color:"<%= user.theme.color === `default` ? `black` : `default` %>"}
|
2022-09-16 23:22:29 +03:00
|
|
|
}),
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/json"
|
|
|
|
}
|
|
|
|
});
|
|
|
|
location.reload()
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<% } %>
|
|
|
|
|
2022-09-09 15:10:44 +03:00
|
|
|
<a href="https://github.com/Akif9748/akf-forum" style="color: white;"> This website is powered by
|
2022-09-16 23:22:29 +03:00
|
|
|
<span style="color: #ffbf00;">akf-forum</span> </a>
|
2022-09-09 15:10:44 +03:00
|
|
|
<div>
|
|
|
|
<span style="color:white">Coders</span> <br>
|
|
|
|
<div style="text-align:center;">
|
2022-09-16 23:38:06 +03:00
|
|
|
<a href="https://github.com/Akif9748/" style="color: #ffbf00;">Akif</a><br><a href="#" style="color:#ffbf00;">Tokmak</a>
|
2022-09-09 15:10:44 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|