akf-forum/themes/default/extra/footer.ejs

29 lines
1000 B
Plaintext

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